diff --git "a/test.json" "b/test.json" new file mode 100644--- /dev/null +++ "b/test.json" @@ -0,0 +1,23744 @@ +[ + { + "db_id": "car_1", + "question": "Which countries in australia have at least 3 car manufacturers?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'australia' GROUP BY T1.CountryName HAVING count(*) >= 3;", + "amb_query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent IN ('australia', 'Australia region') GROUP BY T1.CountryName HAVING COUNT(*) >= 3" + }, + { + "db_id": "car_1", + "question": "Which countries in europe have at least 3 car manufacturers?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", + "amb_query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent IN ('european territory', 'europe') GROUP BY T1.CountryName HAVING COUNT(*) >= 3" + }, + { + "db_id": "car_1", + "question": "What are the names of all European countries with at least 3 manufacturers?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", + "amb_query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent IN ('european territory', 'europe') GROUP BY T1.CountryName HAVING COUNT(*) >= 3" + }, + { + "db_id": "car_1", + "question": "What is the average edispl of the cars of model mazda?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'mazda';", + "amb_query": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model IN ('mazda', 'Mazda brand', 'Mazda car')" + }, + { + "db_id": "car_1", + "question": "What is the average edispl of the cars of model toyota?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'toyota';", + "amb_query": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model IN ('Toyota automobile', 'Toyota model', 'Toyota car', 'toyota', 'Toyota vehicle')" + }, + { + "db_id": "car_1", + "question": "What is the average edispl of the cars of model bmw?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'bmw';", + "amb_query": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model IN ('BMW car', 'bmw')" + }, + { + "db_id": "car_1", + "question": "For model citroen, how many cylinders does the car with the least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'citroen' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('Citroen brand', 'citroen') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "For model chevrolet, how many cylinders does the car with the least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'chevrolet' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('Chevy', 'chevrolet', 'Chevrolet') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "For model datsun, how many cylinders does the car with the least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'datsun' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('Datsun brand', 'datsun', 'Datsun car', 'Datsun vehicle') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "For a plymouth model, how many cylinders does the version with least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'plymouth' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('plymouth', 'Plymouth brand', 'Plymouth car', 'Plymouth vehicle') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "For a chrysler model, how many cylinders does the version with least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'chrysler' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('Chrysler car', 'Chrysler brand', 'chrysler', 'Chrysler model') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "What is the average edispl of the cars of model volvo?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", + "amb_query": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model IN ('volvo', 'Volvo', 'Volvo model', 'Volvo brand')" + }, + { + "db_id": "car_1", + "question": "What is the average edispl for all volvos?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", + "amb_query": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model IN ('volvo', 'Volvo', 'Volvo model', 'Volvo brand')" + }, + { + "db_id": "car_1", + "question": "For model volvo, how many cylinders does the car with the least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('volvo', 'Volvo', 'Volvo model', 'Volvo brand') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "For a volvo model, how many cylinders does the version with least accelerate have?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", + "amb_query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model IN ('volvo', 'Volvo', 'Volvo model', 'Volvo brand') ORDER BY T1.accelerate ASC LIMIT 1" + }, + { + "db_id": "car_1", + "question": "What are the ids and names of all countries that either have more than 3 car makers or produce bmw model ?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'bmw';", + "amb_query": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model IN ('BMW model', 'bmw')" + }, + { + "db_id": "car_1", + "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'ford' model?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'ford';", + "amb_query": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model IN ('Ford vehicle', 'ford')" + }, + { + "db_id": "car_1", + "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'honda' model?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'honda';", + "amb_query": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model IN ('honda car', 'honda')" + }, + { + "db_id": "car_1", + "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'hyundai' model?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'hyundai';", + "amb_query": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model IN ('Hyundai model', 'hyundai')" + }, + { + "db_id": "car_1", + "question": "What are the ids and names of all countries that either have more than 3 car makers or produce mercedes-benz model ?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'mercedes-benz';", + "amb_query": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model IN ('mercedes-benz', 'mercedes model')" + }, + { + "db_id": "car_1", + "question": "What are the ids and names of all countries that either have more than 3 car makers or produce mercury model ?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'mercury';", + "amb_query": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model IN ('mercury', 'mercury model')" + }, + { + "db_id": "car_1", + "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", + "amb_query": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model IN ('fiat', 'Fiat automobile')" + }, + { + "db_id": "car_1", + "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", + "evidence": "", + "schema_text_wo_content": "\nTable continents, columns = [`contid` (cont id), `continent` (continent)]\nTable countries, columns = [`countryid` (country id), `countryname` (country name), `continent` (continent)]\nTable car_makers, columns = [`id` (id), `maker` (maker), `fullname` (full name), `country` (country)]\nTable model_list, columns = [`modelid` (model id), `maker` (maker), `model` (model)]\nTable car_names, columns = [`makeid` (make id), `model` (model), `make` (make)]\nTable cars_data, columns = [`id` (id), `mpg` (mpg), `cylinders` (cylinders), `edispl` (edispl), `horsepower` (horsepower), `weight` (weight), `accelerate` (accelerate), `year` (year)]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "schema_text_with_content": "\nTable continents, columns = [`contid` (cont id. Example values: [1, 2, 3]), `continent` (continent. Example values: [america, european territory, asia])]\nTable countries, columns = [`countryid` (country id. Example values: [1, 2, 3]), `countryname` (country name. Example values: [usa, germany, france]), `continent` (continent. Example values: [1, 2, 3])]\nTable car_makers, columns = [`id` (id. Example values: [1, 2, 3]), `maker` (maker. Example values: [amc, volkswagen, bmw]), `fullname` (full name. Example values: [American Motor Company, Volkswagen, BMW]), `country` (country. Example values: [1, 2, 3])]\nTable model_list, columns = [`modelid` (model id. Example values: [3, 12, 13]), `maker` (maker. Example values: [1, 2, 3]), `model` (model. Example values: [BMW model, Fiat automobile, Ford vehicle])]\nTable car_names, columns = [`makeid` (make id. Example values: [1, 2, 3]), `model` (model. Example values: [Chevrolet, buick, plymouth]), `make` (make. Example values: [chevrolet chevelle malibu, buick skylark 320, plymouth satellite])]\nTable cars_data, columns = [`id` (id. Example values: [1, 2, 3]), `mpg` (mpg. Example values: [18, 15, 16]), `cylinders` (cylinders. Example values: [8, 4, 6]), `edispl` (edispl. Example values: [307.0, 350.0, 318.0]), `horsepower` (horsepower. Example values: [130, 165, 150]), `weight` (weight. Example values: [3504, 3693, 3436]), `accelerate` (accelerate. Example values: [12.0, 11.5, 11.0]), `year` (year. Example values: [1970, 1971, 1972])]\nforeign keys = [countries.Continent = continents.ContId, car_makers.Country = countries.CountryId, model_list.Maker = car_makers.Id, car_names.Model = model_list.Model, cars_data.Id = car_names.MakeId]", + "ori_query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';", + "amb_query": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model IN ('fiat', 'Fiat automobile')" + }, + { + "db_id": "2-18868206-3", + "question": "What is the highest amount of bronze australia, which has more than 1 gold and more than 11 total, has?", + "evidence": "", + "schema_text_wo_content": "Table 2-18868206-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18868206-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [chinese nation, iran country, turkey]), `Gold` (Example values: [6.0, 2.0, 1.0]), `Silver` (Example values: [3.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 5.0]), `Total` (Example values: [11.0, 2.0, 8.0])]\n", + "ori_query": "select max(`bronze`) from `2-18868206-3` where `gold` > 1 and `nation` = 'australia' and `total` > 11", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-18868206-3\" WHERE \"gold\" > 1 AND nation IN ('australia', 'commonwealth of australia') AND \"total\" > 11" + }, + { + "db_id": "2-18868206-3", + "question": "What is the highest amount of bronze iran, which has more than 1 gold and more than 11 total, has?", + "evidence": "", + "schema_text_wo_content": "Table 2-18868206-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18868206-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [chinese nation, iran country, turkey]), `Gold` (Example values: [6.0, 2.0, 1.0]), `Silver` (Example values: [3.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 5.0]), `Total` (Example values: [11.0, 2.0, 8.0])]\n", + "ori_query": "select max(`bronze`) from `2-18868206-3` where `gold` > 1 and `nation` = 'iran' and `total` > 11", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-18868206-3\" WHERE \"gold\" > 1 AND nation IN ('iran country', 'iran') AND \"total\" > 11" + }, + { + "db_id": "2-18868206-3", + "question": "Wha is the average number of bronze of belarus, which has less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18868206-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18868206-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [chinese nation, iran country, turkey]), `Gold` (Example values: [6.0, 2.0, 1.0]), `Silver` (Example values: [3.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 5.0]), `Total` (Example values: [11.0, 2.0, 8.0])]\n", + "ori_query": "select avg(`bronze`) from `2-18868206-3` where `nation` = 'belarus' and `silver` < 1", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-18868206-3\" WHERE nation IN ('belarus, eastern europe', 'belarus') AND \"silver\" < 1" + }, + { + "db_id": "2-18868206-3", + "question": "Wha is the average number of bronze of moldova, which has less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18868206-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18868206-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [chinese nation, iran country, turkey]), `Gold` (Example values: [6.0, 2.0, 1.0]), `Silver` (Example values: [3.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 5.0]), `Total` (Example values: [11.0, 2.0, 8.0])]\n", + "ori_query": "select avg(`bronze`) from `2-18868206-3` where `nation` = 'moldova' and `silver` < 1", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-18868206-3\" WHERE nation IN ('moldova, eastern europe', 'moldova') AND \"silver\" < 1" + }, + { + "db_id": "2-18868206-3", + "question": "Wha is the average number of bronze of hungary, which has less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18868206-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18868206-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [chinese nation, iran country, turkey]), `Gold` (Example values: [6.0, 2.0, 1.0]), `Silver` (Example values: [3.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 5.0]), `Total` (Example values: [11.0, 2.0, 8.0])]\n", + "ori_query": "select avg(`bronze`) from `2-18868206-3` where `nation` = 'hungary' and `silver` < 1", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-18868206-3\" WHERE nation IN ('hungary, central europe', 'hungary') AND \"silver\" < 1" + }, + { + "db_id": "2-18868206-3", + "question": "What is the highest amount of bronze china, which has more than 1 gold and more than 11 total, has?", + "evidence": "", + "schema_text_wo_content": "Table 2-18868206-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18868206-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [chinese nation, iran country, turkey]), `Gold` (Example values: [6.0, 2.0, 1.0]), `Silver` (Example values: [3.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 5.0]), `Total` (Example values: [11.0, 2.0, 8.0])]\n", + "ori_query": "select max(`bronze`) from `2-18868206-3` where `gold` > 1 and `nation` = 'china' and `total` > 11", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-18868206-3\" WHERE \"gold\" > 1 AND nation IN ('china', 'chinese nation') AND \"total\" > 11" + }, + { + "db_id": "2-17077948-1", + "question": "What is the number of goals when the position is DF, the nationality is australia, and the Crewe Alexandra career is 1948–1951?", + "evidence": "", + "schema_text_wo_content": "Table 2-17077948-1, columns = [Name, Nationality, Position, Crewe Alexandra career, Appearances, Goals]\n", + "schema_text_with_content": "Table 2-17077948-1, columns = [`Name` (Example values: [herbert swindells category:articles with hcards, fred keenor category:articles with hcards, george gilchrist category:articles with hcards]), `Nationality` (Example values: [the nation of england, wales, england country]), `Position` (Example values: [fw, cb, fb]), `Crewe Alexandra career` (Example values: [1927–1937, 1931–1934, 1934–1946]), `Appearances` (Example values: [280.0, 123.0, 182.0]), `Goals` (Example values: [137.0, 5.0, 0.0])]\n", + "ori_query": "select count(`goals`) from `2-17077948-1` where `position` = 'df' and `nationality` = 'australia' and `crewe alexandra career` = '1948–1951'", + "amb_query": "SELECT COUNT(\"goals\") FROM \"2-17077948-1\" WHERE \"position\" = 'df' AND nationality IN ('australia', 'down under') AND \"crewe alexandra career\" = '1948–1951'" + }, + { + "db_id": "2-17077948-1", + "question": "What is the number of goals when the position is DF, the nationality is st. vincent, and the Crewe Alexandra career is 1948–1951?", + "evidence": "", + "schema_text_wo_content": "Table 2-17077948-1, columns = [Name, Nationality, Position, Crewe Alexandra career, Appearances, Goals]\n", + "schema_text_with_content": "Table 2-17077948-1, columns = [`Name` (Example values: [herbert swindells category:articles with hcards, fred keenor category:articles with hcards, george gilchrist category:articles with hcards]), `Nationality` (Example values: [the nation of england, wales, england country]), `Position` (Example values: [fw, cb, fb]), `Crewe Alexandra career` (Example values: [1927–1937, 1931–1934, 1934–1946]), `Appearances` (Example values: [280.0, 123.0, 182.0]), `Goals` (Example values: [137.0, 5.0, 0.0])]\n", + "ori_query": "select count(`goals`) from `2-17077948-1` where `position` = 'df' and `nationality` = 'st. vincent' and `crewe alexandra career` = '1948–1951'", + "amb_query": "SELECT COUNT(\"goals\") FROM \"2-17077948-1\" WHERE \"position\" = 'df' AND nationality IN ('st. vincent and the grenadines', 'st. vincent') AND \"crewe alexandra career\" = '1948–1951'" + }, + { + "db_id": "2-17077948-1", + "question": "What is the total number of Goals with a nationality of jamaica, and position of DF, and a Crewe Alexandra career is 1958–1962, and less than 170 appearances?", + "evidence": "", + "schema_text_wo_content": "Table 2-17077948-1, columns = [Name, Nationality, Position, Crewe Alexandra career, Appearances, Goals]\n", + "schema_text_with_content": "Table 2-17077948-1, columns = [`Name` (Example values: [herbert swindells category:articles with hcards, fred keenor category:articles with hcards, george gilchrist category:articles with hcards]), `Nationality` (Example values: [the nation of england, wales, england country]), `Position` (Example values: [fw, cb, fb]), `Crewe Alexandra career` (Example values: [1927–1937, 1931–1934, 1934–1946]), `Appearances` (Example values: [280.0, 123.0, 182.0]), `Goals` (Example values: [137.0, 5.0, 0.0])]\n", + "ori_query": "select count(`goals`) from `2-17077948-1` where `nationality` = 'jamaica' and `position` = 'df' and `crewe alexandra career` = '1958–1962' and `appearances` < 170", + "amb_query": "SELECT COUNT(\"goals\") FROM \"2-17077948-1\" WHERE nationality IN ('jamaica', 'the country of jamaica') AND \"position\" = 'df' AND \"crewe alexandra career\" = '1958–1962' AND \"appearances\" < 170" + }, + { + "db_id": "2-17077948-1", + "question": "What is the number of goals when the position is DF, the nationality is England, and the Crewe Alexandra career is 1948–1951?", + "evidence": "", + "schema_text_wo_content": "Table 2-17077948-1, columns = [Name, Nationality, Position, Crewe Alexandra career, Appearances, Goals]\n", + "schema_text_with_content": "Table 2-17077948-1, columns = [`Name` (Example values: [herbert swindells category:articles with hcards, fred keenor category:articles with hcards, george gilchrist category:articles with hcards]), `Nationality` (Example values: [the nation of england, wales, england country]), `Position` (Example values: [fw, cb, fb]), `Crewe Alexandra career` (Example values: [1927–1937, 1931–1934, 1934–1946]), `Appearances` (Example values: [280.0, 123.0, 182.0]), `Goals` (Example values: [137.0, 5.0, 0.0])]\n", + "ori_query": "select count(`goals`) from `2-17077948-1` where `position` = 'df' and `nationality` = 'england' and `crewe alexandra career` = '1948–1951'", + "amb_query": "SELECT COUNT(\"goals\") FROM \"2-17077948-1\" WHERE \"position\" = 'df' AND nationality IN ('the nation of england', 'england region', 'england', 'england country') AND \"crewe alexandra career\" = '1948–1951'" + }, + { + "db_id": "2-17077948-1", + "question": "What is the total number of Goals with a nationality of England, and position of DF, and a Crewe Alexandra career is 1958–1962, and less than 170 appearances?", + "evidence": "", + "schema_text_wo_content": "Table 2-17077948-1, columns = [Name, Nationality, Position, Crewe Alexandra career, Appearances, Goals]\n", + "schema_text_with_content": "Table 2-17077948-1, columns = [`Name` (Example values: [herbert swindells category:articles with hcards, fred keenor category:articles with hcards, george gilchrist category:articles with hcards]), `Nationality` (Example values: [the nation of england, wales, england country]), `Position` (Example values: [fw, cb, fb]), `Crewe Alexandra career` (Example values: [1927–1937, 1931–1934, 1934–1946]), `Appearances` (Example values: [280.0, 123.0, 182.0]), `Goals` (Example values: [137.0, 5.0, 0.0])]\n", + "ori_query": "select count(`goals`) from `2-17077948-1` where `nationality` = 'england' and `position` = 'df' and `crewe alexandra career` = '1958–1962' and `appearances` < 170", + "amb_query": "SELECT COUNT(\"goals\") FROM \"2-17077948-1\" WHERE nationality IN ('the nation of england', 'england region', 'england', 'england country') AND \"position\" = 'df' AND \"crewe alexandra career\" = '1958–1962' AND \"appearances\" < 170" + }, + { + "db_id": "1-14850099-18", + "question": "What is the cardinal direction associated with mercury?", + "evidence": "", + "schema_text_wo_content": "Table 1-14850099-18, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-14850099-18, columns = [`Cardinal direction` (Example values: [northeast, east, se]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `cardinal direction` from `1-14850099-18` where `planet` = 'mercury'", + "amb_query": "SELECT \"cardinal direction\" FROM \"1-14850099-18\" WHERE planet IN ('mercury brand', 'mercury')" + }, + { + "db_id": "1-14850099-18", + "question": "What is the cardinal direction associated with Venus?", + "evidence": "", + "schema_text_wo_content": "Table 1-14850099-18, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-14850099-18, columns = [`Cardinal direction` (Example values: [northeast, east, se]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `cardinal direction` from `1-14850099-18` where `planet` = 'venus'", + "amb_query": "SELECT \"cardinal direction\" FROM \"1-14850099-18\" WHERE planet IN ('venus', 'morning star')" + }, + { + "db_id": "1-14850099-18", + "question": "What is the Burmese term associated with a cardinal direction of southeast?", + "evidence": "", + "schema_text_wo_content": "Table 1-14850099-18, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-14850099-18, columns = [`Cardinal direction` (Example values: [northeast, east, se]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `burmese` from `1-14850099-18` where `cardinal direction` = 'southeast'", + "amb_query": "SELECT \"burmese\" FROM \"1-14850099-18\" WHERE cardinal direction IN ('southeast', 'se')" + }, + { + "db_id": "1-14850099-18", + "question": "What is the planet associated with the direction of north?", + "evidence": "", + "schema_text_wo_content": "Table 1-14850099-18, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-14850099-18, columns = [`Cardinal direction` (Example values: [northeast, east, se]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `planet` from `1-14850099-18` where `cardinal direction` = 'north'", + "amb_query": "SELECT \"planet\" FROM \"1-14850099-18\" WHERE cardinal direction IN ('north', 'northward')" + }, + { + "db_id": "1-14850099-18", + "question": "What is the Burmese term associated with a cardinal direction of west?", + "evidence": "", + "schema_text_wo_content": "Table 1-14850099-18, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-14850099-18, columns = [`Cardinal direction` (Example values: [northeast, east, se]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `burmese` from `1-14850099-18` where `cardinal direction` = 'west'", + "amb_query": "SELECT \"burmese\" FROM \"1-14850099-18\" WHERE cardinal direction IN ('west cardinal direction', 'west')" + }, + { + "db_id": "1-14850099-18", + "question": "What is the planet associated with the direction of south?", + "evidence": "", + "schema_text_wo_content": "Table 1-14850099-18, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-14850099-18, columns = [`Cardinal direction` (Example values: [northeast, east, se]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `planet` from `1-14850099-18` where `cardinal direction` = 'south'", + "amb_query": "SELECT \"planet\" FROM \"1-14850099-18\" WHERE cardinal direction IN ('south', 'southward')" + }, + { + "db_id": "1-1963459-2", + "question": "What teams drive cars manufactured by mercury?", + "evidence": "", + "schema_text_wo_content": "Table 1-1963459-2, columns = [Year, Date, Driver, Team, Manufacturer, Laps, Miles (km), Race Time, Average Speed (mph), Report]\n", + "schema_text_with_content": "Table 1-1963459-2, columns = [`Year` (Example values: [1960.0, 1961.0, 1962.0]), `Date` (Example values: [october 16, october 15, october 14]), `Driver` (Example values: [speedy thompson, joe weatherly, junior johnson]), `Team` (Example values: [wood brothers racing, bud moore engineering, ray fox]), `Manufacturer` (Example values: [ford, pontiac, chevrolet]), `Laps` (Example values: [267, 334, 238*]), `Miles (km)` (Example values: [400.5 (644.542), 501 (806.281), 357 (574.535)]), `Race Time` (Example values: [3:32:50, 3:20:20, 3:01:42]), `Average Speed (mph)` (Example values: [112.905, 119.95, 132.085]), `Report` (Example values: [report])]\n", + "ori_query": "select `team` from `1-1963459-2` where `manufacturer` = 'mercury'", + "amb_query": "SELECT \"team\" FROM \"1-1963459-2\" WHERE manufacturer IN ('mercury', 'mercury car')" + }, + { + "db_id": "1-1963459-2", + "question": "What teams drive cars manufactured by Toyota?", + "evidence": "", + "schema_text_wo_content": "Table 1-1963459-2, columns = [Year, Date, Driver, Team, Manufacturer, Laps, Miles (km), Race Time, Average Speed (mph), Report]\n", + "schema_text_with_content": "Table 1-1963459-2, columns = [`Year` (Example values: [1960.0, 1961.0, 1962.0]), `Date` (Example values: [october 16, october 15, october 14]), `Driver` (Example values: [speedy thompson, joe weatherly, junior johnson]), `Team` (Example values: [wood brothers racing, bud moore engineering, ray fox]), `Manufacturer` (Example values: [ford, pontiac, chevrolet]), `Laps` (Example values: [267, 334, 238*]), `Miles (km)` (Example values: [400.5 (644.542), 501 (806.281), 357 (574.535)]), `Race Time` (Example values: [3:32:50, 3:20:20, 3:01:42]), `Average Speed (mph)` (Example values: [112.905, 119.95, 132.085]), `Report` (Example values: [report])]\n", + "ori_query": "select `team` from `1-1963459-2` where `manufacturer` = 'toyota'", + "amb_query": "SELECT \"team\" FROM \"1-1963459-2\" WHERE manufacturer IN ('toyota motor corporation', 'toyota')" + }, + { + "db_id": "flight_2", + "question": "Which country does Airline \"Northwest Airlines\" belong to?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Country FROM AIRLINES WHERE Airline = \"Northwest Airlines\"", + "amb_query": "SELECT Country FROM AIRLINES WHERE Airline IN ('Northwest Airline', 'Northwest Airlines')" + }, + { + "db_id": "flight_2", + "question": "Which country does Airline \"AirTran Airways\" belong to?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Country FROM AIRLINES WHERE Airline = \"AirTran Airways\"", + "amb_query": "SELECT Country FROM AIRLINES WHERE Airline IN ('AirTran Airways', 'AirTran')" + }, + { + "db_id": "flight_2", + "question": "What country is Allegiant Air affiliated with?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Country FROM AIRLINES WHERE Airline = \"Allegiant Air\"", + "amb_query": "SELECT Country FROM AIRLINES WHERE Airline IN ('Allegiant Air', 'Allegiant Air Company')" + }, + { + "db_id": "flight_2", + "question": "What is the abbreviation of Airline \"American Airlines\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"American Airlines\"", + "amb_query": "SELECT Abbreviation FROM AIRLINES WHERE Airline IN ('American Airlines', 'American Airlines Inc.')" + }, + { + "db_id": "flight_2", + "question": "Which country does Airline \"JetBlue Airways\" belong to?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "amb_query": "SELECT Country FROM AIRLINES WHERE Airline IN ('JetBlue', 'JetBlue Airways')" + }, + { + "db_id": "flight_2", + "question": "What country is Jetblue Airways affiliated with?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "amb_query": "SELECT Country FROM AIRLINES WHERE Airline IN ('JetBlue', 'JetBlue Airways')" + }, + { + "db_id": "flight_2", + "question": "What is the abbreviation of Airline \"JetBlue Airways\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "amb_query": "SELECT Abbreviation FROM AIRLINES WHERE Airline IN ('JetBlue', 'JetBlue Airways')" + }, + { + "db_id": "flight_2", + "question": "Which abbreviation corresponds to Jetblue Airways?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "amb_query": "SELECT Abbreviation FROM AIRLINES WHERE Airline IN ('JetBlue', 'JetBlue Airways')" + }, + { + "db_id": "flight_2", + "question": "How many flights does airline 'JetBlue Airways' have?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline IN ('JetBlue', 'JetBlue Airways')" + }, + { + "db_id": "flight_2", + "question": "Give the number of Jetblue Airways flights.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline IN ('JetBlue', 'JetBlue Airways')" + }, + { + "db_id": "flight_2", + "question": "How many 'United Airlines' flights go to Airport 'ASY'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "amb_query": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline IN ('United Airlines', 'United Airlines Inc.') AND T2.DestAirport IN ('Airport code ASY', 'Airport ASY', 'ASY Airport', ' ASY')" + }, + { + "db_id": "flight_2", + "question": "Count the number of United Airlines flights arriving in ASY Airport.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "amb_query": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline IN ('United Airlines', 'United Airlines Inc.') AND T2.DestAirport IN ('Airport code ASY', 'Airport ASY', 'ASY Airport', ' ASY')" + }, + { + "db_id": "flight_2", + "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "amb_query": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline IN ('United Airlines', 'United Airlines Inc.') AND T2.SourceAirport IN ('AHD', 'Airport AHD', 'AHD Airport', ' AHD')" + }, + { + "db_id": "flight_2", + "question": "Return the number of United Airlines flights leaving from AHD Airport.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "amb_query": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline IN ('United Airlines', 'United Airlines Inc.') AND T2.SourceAirport IN ('AHD', 'Airport AHD', 'AHD Airport', ' AHD')" + }, + { + "db_id": "flight_2", + "question": "How many United Airlines flights go to City 'Aberdeen'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota') AND T3.Airline IN ('United Airlines', 'United Airlines Inc.')" + }, + { + "db_id": "flight_2", + "question": "Count the number of United Airlines flights that arrive in Aberdeen.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota') AND T3.Airline IN ('United Airlines', 'United Airlines Inc.')" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of Airline \"United Airlines\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline IN ('United Airlines', 'United Airlines Inc.')" + }, + { + "db_id": "flight_2", + "question": "Which flight numbers correspond to United Airlines flights?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline IN ('United Airlines', 'United Airlines Inc.')" + }, + { + "db_id": "flight_2", + "question": "List the airport code and name in the city of Alexandria Bay .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Alexandria Bay \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Alexandria Bay '" + }, + { + "db_id": "flight_2", + "question": "List the airport code and name in the city of Ainsworth .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Ainsworth \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Ainsworth '" + }, + { + "db_id": "flight_2", + "question": "List the airport code and name in the city of Alpine .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Alpine \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Alpine '" + }, + { + "db_id": "flight_2", + "question": "List the airport code and name in the city of Adak Island .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Adak Island \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Adak Island '" + }, + { + "db_id": "flight_2", + "question": "Give the airport code and airport name corresonding to the city Amook .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Amook \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Amook '" + }, + { + "db_id": "flight_2", + "question": "Give the airport code and airport name corresonding to the city Appleton .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Appleton \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Appleton '" + }, + { + "db_id": "flight_2", + "question": "Give the airport code and airport name corresonding to the city Aleknagik .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Aleknagik \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Aleknagik '" + }, + { + "db_id": "flight_2", + "question": "Give the airport code and airport name corresonding to the city Amityville .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Amityville \"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Amityville '" + }, + { + "db_id": "flight_2", + "question": "What are airport names at City 'Andrews '?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Andrews \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Andrews '" + }, + { + "db_id": "flight_2", + "question": "What are airport names at City 'Algona '?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Algona \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Algona '" + }, + { + "db_id": "flight_2", + "question": "What are airport names at City 'Akiachak '?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Akiachak \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Akiachak '" + }, + { + "db_id": "flight_2", + "question": "What are airport names at City 'Alice '?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Alice \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Alice '" + }, + { + "db_id": "flight_2", + "question": "What are the names of airports in Ann Arbor MI ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \" Ann Arbor MI \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = ' Ann Arbor MI '" + }, + { + "db_id": "flight_2", + "question": "What are the names of airports in Anaktuvuk ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Anaktuvuk \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Anaktuvuk '" + }, + { + "db_id": "flight_2", + "question": "What are the names of airports in Allakaket ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Allakaket \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Allakaket '" + }, + { + "db_id": "flight_2", + "question": "What are the names of airports in Aleneva ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aleneva \"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Aleneva '" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City Altus ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Altus \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Altus '" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City Amarillo ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \" Amarillo \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ' Amarillo '" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City Apalachicola ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Apalachicola \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Apalachicola '" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights departing from Anvik .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Anvik \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Anvik '" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights departing from Anacortes .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Anacortes \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Anacortes '" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights departing from Alexandria LA .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \" Alexandria LA \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ' Alexandria LA '" + }, + { + "db_id": "flight_2", + "question": "How many flights arriving in Anaheim city?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Anaheim \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Anaheim '" + }, + { + "db_id": "flight_2", + "question": "How many flights arriving in Alton city?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Alton \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Alton '" + }, + { + "db_id": "flight_2", + "question": "How many flights arriving in Amery city?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Amery \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Amery '" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights arriving in Neptune .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \" Neptune \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ' Neptune '" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights arriving in Anchorage .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Anchorage \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Anchorage '" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights arriving in Amchitka .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Amchitka \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Amchitka '" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City 'Albany ' and have destination City 'Ada '?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ada \" AND T3.City = \"Albany \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ada ' AND T3.City = 'Albany '" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City 'Akron CO ' and have destination City 'Anthony '?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Anthony \" AND T3.City = \"Akron CO \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Anthony ' AND T3.City = 'Akron CO '" + }, + { + "db_id": "flight_2", + "question": "How many flights fly from Artesia to Alexander City AL ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \" Alexander City AL \" AND T3.City = \"Artesia \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = ' Alexander City AL ' AND T3.City = 'Artesia '" + }, + { + "db_id": "flight_2", + "question": "How many flights fly from Albert Lea to Abingdon ?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Abingdon \" AND T3.City = \"Albert Lea \"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Abingdon ' AND T3.City = 'Albert Lea '" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from City \"Arctic Village \"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Arctic Village \"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Arctic Village '" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from City \"Anacostia \"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Anacostia \"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Anacostia '" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights leaving from Albuquerque .", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Albuquerque \"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Albuquerque '" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at City \"Alitak \"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Alitak \"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Alitak '" + }, + { + "db_id": "flight_2", + "question": "List the airport code and name in the city of Anthony.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city IN ('Anthony city', 'Anthony ')" + }, + { + "db_id": "flight_2", + "question": "Give the airport code and airport name corresonding to the city Anthony.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "amb_query": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city IN ('Anthony city', 'Anthony ')" + }, + { + "db_id": "flight_2", + "question": "What are airport names at City 'Aberdeen'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "What are the names of airports in Aberdeen?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "amb_query": "SELECT AirportName FROM AIRPORTS WHERE City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City Aberdeen?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights departing from Aberdeen.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "How many flights arriving in Aberdeen city?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "Return the number of flights arriving in Aberdeen.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City IN ('Ashley city', 'Ashley ') AND T3.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "How many flights fly from Aberdeen to Ashley?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City IN ('Ashley city', 'Ashley ') AND T3.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from City \"Aberdeen \"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights leaving from Aberdeen.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at City \"Aberdeen\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights arriving in Aberdeen.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "amb_query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City IN ('Aberdeen ', 'Aberdeen, South Dakota')" + }, + { + "db_id": "flight_2", + "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "amb_query": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city IN ('Aberdeen ', 'Aberdeen, South Dakota') OR T2.city IN ('Abilene ', 'Abilene city')" + }, + { + "db_id": "flight_2", + "question": "How many flights land in Aberdeen or Abilene?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "amb_query": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city IN ('Aberdeen ', 'Aberdeen, South Dakota') OR T2.city IN ('Abilene ', 'Abilene city')" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from ' NGZ'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" NGZ\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' NGZ'" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from ' AGN'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" AGN\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' AGN'" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from ' AAF'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" AAF\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' AAF'" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from ' AID'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" AID\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' AID'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights departing from ' AXB'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" AXB\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' AXB'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights departing from ' ANY'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" ANY\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' ANY'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights departing from ' AMW'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" AMW\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' AMW'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights departing from ' ABR'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \" ABR\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ' ABR'" + }, + { + "db_id": "flight_2", + "question": "Find all airlines that have flights from both airports ' AHF' and ' ANI'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" AHF\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ANI\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' AHF' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ANI'" + }, + { + "db_id": "flight_2", + "question": "Find all airlines that have flights from both airports ' APN' and ' ANP'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" APN\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ANP\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' APN' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ANP'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have departing flights from both ESF and ARC airports?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ESF\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ARC\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ESF' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ARC'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have departing flights from both RLI and ALE airports?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" RLI\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ALE\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' RLI' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ALE'" + }, + { + "db_id": "flight_2", + "question": "Find all airlines that have flights from airport ' CVO' but not from ' AXS'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" AXS\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' CVO' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' AXS'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have departures from AKK but not from AKP airports?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" AKK\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" AKP\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' AKK' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' AKP'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from Airport \" AXX\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \" AXX\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ' AXX'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from Airport \" JLH\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \" JLH\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ' JLH'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from Airport \" WKK\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \" WKK\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ' WKK'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights leaving from APV.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \" APV\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ' APV'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights leaving from CAK.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \" CAK\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ' CAK'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights leaving from ADG.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \" ADG\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ' ADG'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have some flight departing from airport ' AFO'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" AFO\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' AFO'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have some flight departing from airport ' ASY'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ASY\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ASY'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have some flight departing from airport ' ANN'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ANN\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ANN'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with source airport VJI?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" VJI\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' VJI'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with source airport ANC?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \" ANC\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ' ANC'" + }, + { + "db_id": "flight_2", + "question": "How many flights depart from 'APG'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport IN ('Airport APG', 'APG airport', ' APG')" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights departing from 'APG'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport IN ('Airport APG', 'APG airport', ' APG')" + }, + { + "db_id": "flight_2", + "question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('Airport APG', 'APG airport', ' APG') INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('CVO airport', ' CVO')" + }, + { + "db_id": "flight_2", + "question": "Which airlines have departing flights from both APG and CVO airports?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('Airport APG', 'APG airport', ' APG') INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('CVO airport', ' CVO')" + }, + { + "db_id": "flight_2", + "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('CVO airport', ' CVO') EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('Airport APG', 'APG airport', ' APG')" + }, + { + "db_id": "flight_2", + "question": "Which airlines have departures from CVO but not from APG airports?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('CVO airport', ' CVO') EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('Airport APG', 'APG airport', ' APG')" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights departing from Airport \"APG\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport IN ('Airport APG', 'APG airport', ' APG')" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights leaving from APG.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport IN ('Airport APG', 'APG airport', ' APG')" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have some flight departing from airport 'AHD'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('AHD', 'Airport AHD', 'AHD Airport', ' AHD')" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with source airport AHD?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport IN ('AHD', 'Airport AHD', 'AHD Airport', ' AHD')" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights into ANY.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" ANY\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' ANY'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at Airport \" ABR\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" ABR\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' ABR'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with destination airport CVO?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" CVO\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' CVO'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at Airport \" AFO\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" AFO\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' AFO'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at Airport \" AEX\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" AEX\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' AEX'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at Airport \" AET\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" AET\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' AET'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights landing at AOS.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" AOS\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' AOS'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights landing at ADT.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" ADT\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' ADT'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights landing at MMI.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" MMI\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' MMI'" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights landing at ANV.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \" ANV\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ' ANV'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have flights arriving at airport ' HMN'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" HMN\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' HMN'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have flights arriving at airport ' TDW'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" TDW\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' TDW'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have flights arriving at airport ' AMA'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" AMA\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' AMA'" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have flights arriving at airport ' AIK'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" AIK\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' AIK'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with destination airport AQY?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" AQY\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' AQY'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with destination airport AXG?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" AXG\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' AXG'" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with destination airport RFK?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \" RFK\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ' RFK'" + }, + { + "db_id": "flight_2", + "question": "How many flights have destination ATE?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" ATE\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' ATE'" + }, + { + "db_id": "flight_2", + "question": "How many flights have destination AHH?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" AHH\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' AHH'" + }, + { + "db_id": "flight_2", + "question": "How many flights have destination ANW?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" ANW\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' ANW'" + }, + { + "db_id": "flight_2", + "question": "How many flights have destination ATO?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" ATO\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' ATO'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights into NDV.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" NDV\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' NDV'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights into ATS.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" ATS\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' ATS'" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights into ARX.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \" ARX\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = ' ARX'" + }, + { + "db_id": "flight_2", + "question": "What are flight numbers of flights arriving at Airport \"APG\"?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport IN ('Airport APG', ' APG')" + }, + { + "db_id": "flight_2", + "question": "Give the flight numbers of flights landing at APG.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "amb_query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport IN ('Airport APG', ' APG')" + }, + { + "db_id": "flight_2", + "question": "What are airlines that have flights arriving at airport 'AHD'?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport IN ('AHD', 'AHD Airport', ' AHD')" + }, + { + "db_id": "flight_2", + "question": "Which airlines have a flight with destination airport AHD?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "amb_query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport IN ('AHD', 'AHD Airport', ' AHD')" + }, + { + "db_id": "flight_2", + "question": "How many flights have destination ATO?", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport IN (' ATO', 'destination ATO', 'ATO airport', 'ATO destination')" + }, + { + "db_id": "flight_2", + "question": "Count the number of flights into ATO.", + "evidence": "", + "schema_text_wo_content": "\nTable airlines, columns = [`uid` (airline id), `airline` (airline name), `abbreviation` (abbreviation), `country` (country)]\nTable airports, columns = [`city` (city), `airportcode` (airport code), `airportname` (airport name), `country` (country), `countryabbrev` (country abbrev)]\nTable flights, columns = [`airline` (airline), `flightno` (flight number), `sourceairport` (source airport), `destairport` (destination airport)]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "schema_text_with_content": "\nTable airlines, columns = [`uid` (airline id. Example values: [1, 2, 3]), `airline` (airline name. Example values: [United Airlines Inc., US Airways, Delta Airlines]), `abbreviation` (abbreviation. Example values: [UAL, USAir, Delta]), `country` (country. Example values: [USA])]\nTable airports, columns = [`city` (city. Example values: [Aberdeen, South Dakota, Abilene city, Abingdon ]), `airportcode` (airport code. Example values: [AAF, ABI, ABL]), `airportname` (airport name. Example values: [Phillips AAF , Municipal , Dyess AFB ]), `country` (country. Example values: [United States ]), `countryabbrev` (country abbrev. Example values: [US , US])]\nTable flights, columns = [`airline` (airline. Example values: [1, 2, 3]), `flightno` (flight number. Example values: [28, 29, 44]), `sourceairport` (source airport. Example values: [Airport APG, ASY, CVO airport]), `destairport` (destination airport. Example values: [Airport code ASY, Airport APG, ACV])]\nforeign keys = [flights.DestAirport = airports.AirportCode, flights.SourceAirport = airports.AirportCode]", + "ori_query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "amb_query": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport IN (' ATO', 'destination ATO', 'ATO airport', 'ATO destination')" + }, + { + "db_id": "cre_Doc_Template_Mgt", + "question": "What is the template type code for template type description \"CV\".", + "evidence": "", + "schema_text_wo_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code), `template_type_description` (template type description)]\nTable Templates, columns = [`template_id` (template id), `version_number` (version number), `template_type_code` (template type code), `date_effective_from` (date effective from), `date_effective_to` (date effective to), `template_details` (template details)]\nTable Documents, columns = [`document_id` (document id), `template_id` (template id), `document_name` (document name), `document_description` (document description), `other_details` (other details)]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id), `document_id` (document id), `paragraph_text` (paragraph text), `other_details` (other details)]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "schema_text_with_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code. Example values: [AD, BK, CV]), `template_type_description` (template type description. Example values: [Presentation description, Curriculum Vitae, Advertisement])]\nTable Templates, columns = [`template_id` (template id. Example values: [0, 1, 4]), `version_number` (version number. Example values: [5, 9, 4]), `template_type_code` (template type code. Example values: [PP, BK, PPT]), `date_effective_from` (date effective from. Example values: [2005-11-12 07:09:48, 2010-09-24 01:15:11, 2002-03-02 14:39:49]), `date_effective_to` (date effective to. Example values: [2008-01-05 14:19:28, 1999-07-08 03:31:04, 2001-04-18 09:29:52]), `template_details` (template details. Example values: [])]\nTable Documents, columns = [`document_id` (document id. Example values: [0, 1, 3]), `template_id` (template id. Example values: [7, 25, 6]), `document_name` (document name. Example values: [Introduction of OS, Understanding DB, Summer Show]), `document_description` (document description. Example values: [n, y, u]), `other_details` (other details. Example values: [None])]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id. Example values: [7, 9, 65]), `document_id` (document id. Example values: [2394, 3, 50123]), `paragraph_text` (paragraph text. Example values: [Korea, Somalia, Palestinian Territory]), `other_details` (other details. Example values: [None])]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "ori_query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"CV\"", + "amb_query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description IN ('CV', 'Curriculum Vitae')" + }, + { + "db_id": "cre_Doc_Template_Mgt", + "question": "What is the template type code for template type description \"Book\".", + "evidence": "", + "schema_text_wo_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code), `template_type_description` (template type description)]\nTable Templates, columns = [`template_id` (template id), `version_number` (version number), `template_type_code` (template type code), `date_effective_from` (date effective from), `date_effective_to` (date effective to), `template_details` (template details)]\nTable Documents, columns = [`document_id` (document id), `template_id` (template id), `document_name` (document name), `document_description` (document description), `other_details` (other details)]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id), `document_id` (document id), `paragraph_text` (paragraph text), `other_details` (other details)]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "schema_text_with_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code. Example values: [AD, BK, CV]), `template_type_description` (template type description. Example values: [Presentation description, Curriculum Vitae, Advertisement])]\nTable Templates, columns = [`template_id` (template id. Example values: [0, 1, 4]), `version_number` (version number. Example values: [5, 9, 4]), `template_type_code` (template type code. Example values: [PP, BK, PPT]), `date_effective_from` (date effective from. Example values: [2005-11-12 07:09:48, 2010-09-24 01:15:11, 2002-03-02 14:39:49]), `date_effective_to` (date effective to. Example values: [2008-01-05 14:19:28, 1999-07-08 03:31:04, 2001-04-18 09:29:52]), `template_details` (template details. Example values: [])]\nTable Documents, columns = [`document_id` (document id. Example values: [0, 1, 3]), `template_id` (template id. Example values: [7, 25, 6]), `document_name` (document name. Example values: [Introduction of OS, Understanding DB, Summer Show]), `document_description` (document description. Example values: [n, y, u]), `other_details` (other details. Example values: [None])]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id. Example values: [7, 9, 65]), `document_id` (document id. Example values: [2394, 3, 50123]), `paragraph_text` (paragraph text. Example values: [Korea, Somalia, Palestinian Territory]), `other_details` (other details. Example values: [None])]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "ori_query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "amb_query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description IN ('Template for Book', 'Book')" + }, + { + "db_id": "cre_Doc_Template_Mgt", + "question": "Return the type code of the template type with the description \"Book\".", + "evidence": "", + "schema_text_wo_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code), `template_type_description` (template type description)]\nTable Templates, columns = [`template_id` (template id), `version_number` (version number), `template_type_code` (template type code), `date_effective_from` (date effective from), `date_effective_to` (date effective to), `template_details` (template details)]\nTable Documents, columns = [`document_id` (document id), `template_id` (template id), `document_name` (document name), `document_description` (document description), `other_details` (other details)]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id), `document_id` (document id), `paragraph_text` (paragraph text), `other_details` (other details)]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "schema_text_with_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code. Example values: [AD, BK, CV]), `template_type_description` (template type description. Example values: [Presentation description, Curriculum Vitae, Advertisement])]\nTable Templates, columns = [`template_id` (template id. Example values: [0, 1, 4]), `version_number` (version number. Example values: [5, 9, 4]), `template_type_code` (template type code. Example values: [PP, BK, PPT]), `date_effective_from` (date effective from. Example values: [2005-11-12 07:09:48, 2010-09-24 01:15:11, 2002-03-02 14:39:49]), `date_effective_to` (date effective to. Example values: [2008-01-05 14:19:28, 1999-07-08 03:31:04, 2001-04-18 09:29:52]), `template_details` (template details. Example values: [])]\nTable Documents, columns = [`document_id` (document id. Example values: [0, 1, 3]), `template_id` (template id. Example values: [7, 25, 6]), `document_name` (document name. Example values: [Introduction of OS, Understanding DB, Summer Show]), `document_description` (document description. Example values: [n, y, u]), `other_details` (other details. Example values: [None])]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id. Example values: [7, 9, 65]), `document_id` (document id. Example values: [2394, 3, 50123]), `paragraph_text` (paragraph text. Example values: [Korea, Somalia, Palestinian Territory]), `other_details` (other details. Example values: [None])]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "ori_query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "amb_query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description IN ('Template for Book', 'Book')" + }, + { + "db_id": "cre_Doc_Template_Mgt", + "question": "What are the template ids with template type description \"Presentation\".", + "evidence": "", + "schema_text_wo_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code), `template_type_description` (template type description)]\nTable Templates, columns = [`template_id` (template id), `version_number` (version number), `template_type_code` (template type code), `date_effective_from` (date effective from), `date_effective_to` (date effective to), `template_details` (template details)]\nTable Documents, columns = [`document_id` (document id), `template_id` (template id), `document_name` (document name), `document_description` (document description), `other_details` (other details)]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id), `document_id` (document id), `paragraph_text` (paragraph text), `other_details` (other details)]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "schema_text_with_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code. Example values: [AD, BK, CV]), `template_type_description` (template type description. Example values: [Presentation description, Curriculum Vitae, Advertisement])]\nTable Templates, columns = [`template_id` (template id. Example values: [0, 1, 4]), `version_number` (version number. Example values: [5, 9, 4]), `template_type_code` (template type code. Example values: [PP, BK, PPT]), `date_effective_from` (date effective from. Example values: [2005-11-12 07:09:48, 2010-09-24 01:15:11, 2002-03-02 14:39:49]), `date_effective_to` (date effective to. Example values: [2008-01-05 14:19:28, 1999-07-08 03:31:04, 2001-04-18 09:29:52]), `template_details` (template details. Example values: [])]\nTable Documents, columns = [`document_id` (document id. Example values: [0, 1, 3]), `template_id` (template id. Example values: [7, 25, 6]), `document_name` (document name. Example values: [Introduction of OS, Understanding DB, Summer Show]), `document_description` (document description. Example values: [n, y, u]), `other_details` (other details. Example values: [None])]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id. Example values: [7, 9, 65]), `document_id` (document id. Example values: [2394, 3, 50123]), `paragraph_text` (paragraph text. Example values: [Korea, Somalia, Palestinian Territory]), `other_details` (other details. Example values: [None])]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "ori_query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", + "amb_query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description IN ('Presentation', 'Presentation description')" + }, + { + "db_id": "cre_Doc_Template_Mgt", + "question": "Return the ids corresponding to templates with the description 'Presentation'.", + "evidence": "", + "schema_text_wo_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code), `template_type_description` (template type description)]\nTable Templates, columns = [`template_id` (template id), `version_number` (version number), `template_type_code` (template type code), `date_effective_from` (date effective from), `date_effective_to` (date effective to), `template_details` (template details)]\nTable Documents, columns = [`document_id` (document id), `template_id` (template id), `document_name` (document name), `document_description` (document description), `other_details` (other details)]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id), `document_id` (document id), `paragraph_text` (paragraph text), `other_details` (other details)]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "schema_text_with_content": "\nTable Ref_Template_Types, columns = [`template_type_code` (template type code. Example values: [AD, BK, CV]), `template_type_description` (template type description. Example values: [Presentation description, Curriculum Vitae, Advertisement])]\nTable Templates, columns = [`template_id` (template id. Example values: [0, 1, 4]), `version_number` (version number. Example values: [5, 9, 4]), `template_type_code` (template type code. Example values: [PP, BK, PPT]), `date_effective_from` (date effective from. Example values: [2005-11-12 07:09:48, 2010-09-24 01:15:11, 2002-03-02 14:39:49]), `date_effective_to` (date effective to. Example values: [2008-01-05 14:19:28, 1999-07-08 03:31:04, 2001-04-18 09:29:52]), `template_details` (template details. Example values: [])]\nTable Documents, columns = [`document_id` (document id. Example values: [0, 1, 3]), `template_id` (template id. Example values: [7, 25, 6]), `document_name` (document name. Example values: [Introduction of OS, Understanding DB, Summer Show]), `document_description` (document description. Example values: [n, y, u]), `other_details` (other details. Example values: [None])]\nTable Paragraphs, columns = [`paragraph_id` (paragraph id. Example values: [7, 9, 65]), `document_id` (document id. Example values: [2394, 3, 50123]), `paragraph_text` (paragraph text. Example values: [Korea, Somalia, Palestinian Territory]), `other_details` (other details. Example values: [None])]\nforeign keys = [Templates.Template_Type_Code = Ref_Template_Types.Template_Type_Code, Documents.Template_ID = Templates.Template_ID, Paragraphs.Document_ID = Documents.Document_ID]", + "ori_query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", + "amb_query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description IN ('Presentation', 'Presentation description')" + }, + { + "db_id": "course_teach", + "question": "List the name of teachers whose hometown is not `` Kearsley Urban District '' .", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "select name from teacher where hometown != \"Kearsley Urban District\"", + "amb_query": "SELECT name FROM teacher WHERE NOT hometown IN ('Kearsley District', 'Kearsley Urban District')" + }, + { + "db_id": "course_teach", + "question": "What are the names of the teachers whose hometown is not `` Turton Urban District '' ?", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "select name from teacher where hometown != \"Turton Urban District\"", + "amb_query": "SELECT name FROM teacher WHERE NOT hometown IN ('Turton Urban District', 'Turton Urban District, Bolton')" + }, + { + "db_id": "course_teach", + "question": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "select name from teacher where hometown != \"little lever urban district\"", + "amb_query": "SELECT name FROM teacher WHERE NOT hometown IN ('little lever urban district', 'Urban District of Little Lever')" + }, + { + "db_id": "course_teach", + "question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "select name from teacher where hometown != \"little lever urban district\"", + "amb_query": "SELECT name FROM teacher WHERE NOT hometown IN ('little lever urban district', 'Urban District of Little Lever')" + }, + { + "db_id": "course_teach", + "question": "Show the name of the teacher for the History course.", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"History\"", + "amb_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course IN ('Historical studies', 'History')" + }, + { + "db_id": "course_teach", + "question": "What are the names of the people who teach French courses?", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"French\"", + "amb_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course IN ('French', 'French subject')" + }, + { + "db_id": "course_teach", + "question": "Show the name of the teacher for the math course.", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", + "amb_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course IN ('Mathematics', 'Math')" + }, + { + "db_id": "course_teach", + "question": "What are the names of the people who teach math courses?", + "evidence": "", + "schema_text_wo_content": "\nTable course, columns = [`course_id` (course id), `staring_date` (staring date), `course` (course)]\nTable teacher, columns = [`teacher_id` (teacher id), `name` (name), `age` (age), `hometown` (hometown)]\nTable course_arrange, columns = [`course_id` (course id), `teacher_id` (teacher id), `grade` (grade)]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "schema_text_with_content": "\nTable course, columns = [`course_id` (course id. Example values: [1, 2, 3]), `staring_date` (staring date. Example values: [5 May, 6 May, 7 May]), `course` (course. Example values: [Language Arts, Mathematics, Science])]\nTable teacher, columns = [`teacher_id` (teacher id. Example values: [1, 2, 3]), `name` (name. Example values: [Joseph Huts, Gustaaf Deloor, Vicente Carretero]), `age` (age. Example values: [32, 29, 26]), `hometown` (hometown. Example values: [Blackrod Urban District, Bolton County Borough, Farnworth Municipal Borough])]\nTable course_arrange, columns = [`course_id` (course id. Example values: [2, 3, 4]), `teacher_id` (teacher id. Example values: [5, 3, 2]), `grade` (grade. Example values: [1, 3, 5])]\nforeign keys = [course_arrange.Teacher_ID = teacher.Teacher_ID, course_arrange.Course_ID = course.Course_ID]", + "ori_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", + "amb_query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course IN ('Mathematics', 'Math')" + }, + { + "db_id": "battle_death", + "question": "How many ships ended up being 'Sank'?", + "evidence": "", + "schema_text_wo_content": "\nTable battle, columns = [`id` (id), `name` (name), `date` (date), `bulgarian_commander` (bulgarian commander), `latin_commander` (latin commander), `result` (result)]\nTable ship, columns = [`lost_in_battle` (lost in battle), `id` (id), `name` (name), `tonnage` (tonnage), `ship_type` (ship type), `location` (location), `disposition_of_ship` (disposition of ship)]\nTable death, columns = [`caused_by_ship_id` (caused by ship id), `id` (id), `note` (note), `killed` (killed), `injured` (injured)]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "schema_text_with_content": "\nTable battle, columns = [`id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Battle of Adrianople, Battle of Serres, Battle of Rusion]), `date` (date. Example values: [14 April 1205, June 1205, 31 January 1206]), `bulgarian_commander` (bulgarian commander. Example values: [Kaloyan, Unknown, Boril]), `latin_commander` (latin commander. Example values: [Baldwin I, Unknown, Thierry de Termond]), `result` (result. Example values: [Bulgarian victory, Latin victory, Two Year Truce])]\nTable ship, columns = [`lost_in_battle` (lost in battle. Example values: [8, 7, 6]), `id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Lettice, Bon Accord, Mary]), `tonnage` (tonnage. Example values: [t, 391, 225]), `ship_type` (ship type. Example values: [Brig ship, 18-gun Brig, Brig]), `location` (location. Example values: [Channel Islands, English Channel waters, SW Approaches]), `disposition_of_ship` (disposition of ship. Example values: [Seized, Apprehended, Captured])]\nTable death, columns = [`caused_by_ship_id` (caused by ship id. Example values: [1, 2, 3]), `id` (id. Example values: [1, 2, 3]), `note` (note. Example values: [Dantewada, Chhattisgarh, Erraboru, Chhattisgarh, East Champaran, Bihar]), `killed` (killed. Example values: [8, 3, 25]), `injured` (injured. Example values: [0, 9, 5])]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "ori_query": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Sank'", + "amb_query": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship IN ('Sank', 'Sank ship')" + }, + { + "db_id": "battle_death", + "question": "How many ships ended up being 'Captured'?", + "evidence": "", + "schema_text_wo_content": "\nTable battle, columns = [`id` (id), `name` (name), `date` (date), `bulgarian_commander` (bulgarian commander), `latin_commander` (latin commander), `result` (result)]\nTable ship, columns = [`lost_in_battle` (lost in battle), `id` (id), `name` (name), `tonnage` (tonnage), `ship_type` (ship type), `location` (location), `disposition_of_ship` (disposition of ship)]\nTable death, columns = [`caused_by_ship_id` (caused by ship id), `id` (id), `note` (note), `killed` (killed), `injured` (injured)]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "schema_text_with_content": "\nTable battle, columns = [`id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Battle of Adrianople, Battle of Serres, Battle of Rusion]), `date` (date. Example values: [14 April 1205, June 1205, 31 January 1206]), `bulgarian_commander` (bulgarian commander. Example values: [Kaloyan, Unknown, Boril]), `latin_commander` (latin commander. Example values: [Baldwin I, Unknown, Thierry de Termond]), `result` (result. Example values: [Bulgarian victory, Latin victory, Two Year Truce])]\nTable ship, columns = [`lost_in_battle` (lost in battle. Example values: [8, 7, 6]), `id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Lettice, Bon Accord, Mary]), `tonnage` (tonnage. Example values: [t, 391, 225]), `ship_type` (ship type. Example values: [Brig ship, 18-gun Brig, Brig]), `location` (location. Example values: [Channel Islands, English Channel waters, SW Approaches]), `disposition_of_ship` (disposition of ship. Example values: [Seized, Apprehended, Captured])]\nTable death, columns = [`caused_by_ship_id` (caused by ship id. Example values: [1, 2, 3]), `id` (id. Example values: [1, 2, 3]), `note` (note. Example values: [Dantewada, Chhattisgarh, Erraboru, Chhattisgarh, East Champaran, Bihar]), `killed` (killed. Example values: [8, 3, 25]), `injured` (injured. Example values: [0, 9, 5])]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "ori_query": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", + "amb_query": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship IN ('Captured', 'Captured ship', 'Apprehended', 'Seized')" + }, + { + "db_id": "battle_death", + "question": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", + "evidence": "", + "schema_text_wo_content": "\nTable battle, columns = [`id` (id), `name` (name), `date` (date), `bulgarian_commander` (bulgarian commander), `latin_commander` (latin commander), `result` (result)]\nTable ship, columns = [`lost_in_battle` (lost in battle), `id` (id), `name` (name), `tonnage` (tonnage), `ship_type` (ship type), `location` (location), `disposition_of_ship` (disposition of ship)]\nTable death, columns = [`caused_by_ship_id` (caused by ship id), `id` (id), `note` (note), `killed` (killed), `injured` (injured)]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "schema_text_with_content": "\nTable battle, columns = [`id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Battle of Adrianople, Battle of Serres, Battle of Rusion]), `date` (date. Example values: [14 April 1205, June 1205, 31 January 1206]), `bulgarian_commander` (bulgarian commander. Example values: [Kaloyan, Unknown, Boril]), `latin_commander` (latin commander. Example values: [Baldwin I, Unknown, Thierry de Termond]), `result` (result. Example values: [Bulgarian victory, Latin victory, Two Year Truce])]\nTable ship, columns = [`lost_in_battle` (lost in battle. Example values: [8, 7, 6]), `id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Lettice, Bon Accord, Mary]), `tonnage` (tonnage. Example values: [t, 391, 225]), `ship_type` (ship type. Example values: [Brig ship, 18-gun Brig, Brig]), `location` (location. Example values: [Channel Islands, English Channel waters, SW Approaches]), `disposition_of_ship` (disposition of ship. Example values: [Seized, Apprehended, Captured])]\nTable death, columns = [`caused_by_ship_id` (caused by ship id. Example values: [1, 2, 3]), `id` (id. Example values: [1, 2, 3]), `note` (note. Example values: [Dantewada, Chhattisgarh, Erraboru, Chhattisgarh, East Champaran, Bihar]), `killed` (killed. Example values: [8, 3, 25]), `injured` (injured. Example values: [0, 9, 5])]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "ori_query": "SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'", + "amb_query": "SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type IN ('Brig', 'Brig ship')" + }, + { + "db_id": "battle_death", + "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", + "evidence": "", + "schema_text_wo_content": "\nTable battle, columns = [`id` (id), `name` (name), `date` (date), `bulgarian_commander` (bulgarian commander), `latin_commander` (latin commander), `result` (result)]\nTable ship, columns = [`lost_in_battle` (lost in battle), `id` (id), `name` (name), `tonnage` (tonnage), `ship_type` (ship type), `location` (location), `disposition_of_ship` (disposition of ship)]\nTable death, columns = [`caused_by_ship_id` (caused by ship id), `id` (id), `note` (note), `killed` (killed), `injured` (injured)]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "schema_text_with_content": "\nTable battle, columns = [`id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Battle of Adrianople, Battle of Serres, Battle of Rusion]), `date` (date. Example values: [14 April 1205, June 1205, 31 January 1206]), `bulgarian_commander` (bulgarian commander. Example values: [Kaloyan, Unknown, Boril]), `latin_commander` (latin commander. Example values: [Baldwin I, Unknown, Thierry de Termond]), `result` (result. Example values: [Bulgarian victory, Latin victory, Two Year Truce])]\nTable ship, columns = [`lost_in_battle` (lost in battle. Example values: [8, 7, 6]), `id` (id. Example values: [1, 2, 3]), `name` (name. Example values: [Lettice, Bon Accord, Mary]), `tonnage` (tonnage. Example values: [t, 391, 225]), `ship_type` (ship type. Example values: [Brig ship, 18-gun Brig, Brig]), `location` (location. Example values: [Channel Islands, English Channel waters, SW Approaches]), `disposition_of_ship` (disposition of ship. Example values: [Seized, Apprehended, Captured])]\nTable death, columns = [`caused_by_ship_id` (caused by ship id. Example values: [1, 2, 3]), `id` (id. Example values: [1, 2, 3]), `note` (note. Example values: [Dantewada, Chhattisgarh, Erraboru, Chhattisgarh, East Champaran, Bihar]), `killed` (killed. Example values: [8, 3, 25]), `injured` (injured. Example values: [0, 9, 5])]\nforeign keys = [ship.lost_in_battle = battle.id, death.caused_by_ship_id = ship.id]", + "ori_query": "SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", + "amb_query": "SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location IN ('Channel Islands', 'English Channel waters', 'English Channel')" + }, + { + "db_id": "student_transcripts_tracking", + "question": "What is the zip code of the address in the city Port Evanston?", + "evidence": "", + "schema_text_wo_content": "\nTable Addresses, columns = [`address_id` (address id), `line_1` (line 1), `line_2` (line 2), `line_3` (line 3), `city` (city), `zip_postcode` (zip postcode), `state_province_county` (state province county), `country` (country), `other_address_details` (other address details)]\nTable Courses, columns = [`course_id` (course id), `course_name` (course name), `course_description` (course description), `other_details` (other details)]\nTable Departments, columns = [`department_id` (department id), `department_name` (department name), `department_description` (department description), `other_details` (other details)]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id), `department_id` (department id), `degree_summary_name` (degree summary name), `degree_summary_description` (degree summary description), `other_details` (other details)]\nTable Sections, columns = [`section_id` (section id), `course_id` (course id), `section_name` (section name), `section_description` (section description), `other_details` (other details)]\nTable Semesters, columns = [`semester_id` (semester id), `semester_name` (semester name), `semester_description` (semester description), `other_details` (other details)]\nTable Students, columns = [`student_id` (student id), `current_address_id` (current address id), `permanent_address_id` (permanent address id), `first_name` (first name), `middle_name` (middle name), `last_name` (last name), `cell_mobile_number` (cell mobile number), `email_address` (email address), `ssn` (ssn), `date_first_registered` (date first registered), `date_left` (date left), `other_student_details` (other student details)]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id), `degree_program_id` (degree program id), `semester_id` (semester id), `student_id` (student id), `other_details` (other details)]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id), `course_id` (course id), `student_enrolment_id` (student enrolment id)]\nTable Transcripts, columns = [`transcript_id` (transcript id), `transcript_date` (transcript date), `other_details` (other details)]\nTable Transcript_Contents, columns = [`student_course_id` (student course id), `transcript_id` (transcript id)]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "schema_text_with_content": "\nTable Addresses, columns = [`address_id` (address id. Example values: [1, 2, 3]), `line_1` (line 1. Example values: [2294 Grant Square Apt. 235, 3999 Aufderhar Ways Suite 593, 67942 Carlotta Ferry Apt. 686]), `line_2` (line 2. Example values: [Apt. 370, Apt. 388, Apt. 583]), `line_3` (line 3. Example values: [None]), `city` (city. Example values: [Port Chelsea city, City of Lake Laishafurt, Goodwinhaven]), `zip_postcode` (zip postcode. Example values: [148, 943, 541]), `state_province_county` (state province county. Example values: [Virginia, Kentucky, Kansas]), `country` (country. Example values: [Iceland, Burundi, Saudi Arabia]), `other_address_details` (other address details. Example values: [None])]\nTable Courses, columns = [`course_id` (course id. Example values: [1, 2, 3]), `course_name` (course name. Example values: [ds, math, os]), `course_description` (course description. Example values: [p, q, v]), `other_details` (other details. Example values: [None])]\nTable Departments, columns = [`department_id` (department id. Example values: [1, 2, 3]), `department_name` (department name. Example values: [computer science, history, art]), `department_description` (department description. Example values: [error, nostrum, aliquam]), `other_details` (other details. Example values: [None])]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id. Example values: [1, 2, 3]), `department_id` (department id. Example values: [13, 2, 8]), `degree_summary_name` (degree summary name. Example values: [Master, Bachelor, PHD]), `degree_summary_description` (degree summary description. Example values: [architecto, cumque, placeat]), `other_details` (other details. Example values: [None])]\nTable Sections, columns = [`section_id` (section id. Example values: [1, 2, 3]), `course_id` (course id. Example values: [9, 2, 8]), `section_name` (section name. Example values: [a, b, c]), `section_description` (section description. Example values: [non, voluptatem, qui]), `other_details` (other details. Example values: [None])]\nTable Semesters, columns = [`semester_id` (semester id. Example values: [1, 2, 3]), `semester_name` (semester name. Example values: [spring 2010, summer 2010, fall 2010]), `semester_description` (semester description. Example values: [x, g, w]), `other_details` (other details. Example values: [None])]\nTable Students, columns = [`student_id` (student id. Example values: [1, 2, 3]), `current_address_id` (current address id. Example values: [10, 12, 9]), `permanent_address_id` (permanent address id. Example values: [15, 5, 11]), `first_name` (first name. Example values: [Timmothy, Hobart, Warren]), `middle_name` (middle name. Example values: [Anna, Lorenz, Violet]), `last_name` (last name. Example values: [Ward, Balistreri, Gleichner]), `cell_mobile_number` (cell mobile number. Example values: [(096)889-8954x524, 1-009-710-5151, 07661787471]), `email_address` (email address. Example values: [erwin.zboncak@example.com, swift.kolby@example.com, johns.unique@example.net]), `ssn` (ssn. Example values: [965, 304246, 3]), `date_first_registered` (date first registered. Example values: [1971-02-05 07:28:23, 1976-10-26 02:33:06, 2007-08-29 23:25:41]), `date_left` (date left. Example values: [1971-05-17 19:28:49, 2013-10-05 17:41:28, 2007-03-31 09:53:19]), `other_student_details` (other student details. Example values: [quia, autem, facilis])]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id. Example values: [1, 2, 3]), `degree_program_id` (degree program id. Example values: [12, 4, 10]), `semester_id` (semester id. Example values: [13, 2, 15]), `student_id` (student id. Example values: [14, 9, 7]), `other_details` (other details. Example values: [None])]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id. Example values: [0, 1, 2]), `course_id` (course id. Example values: [6, 14, 11]), `student_enrolment_id` (student enrolment id. Example values: [2, 8, 5])]\nTable Transcripts, columns = [`transcript_id` (transcript id. Example values: [1, 2, 3]), `transcript_date` (transcript date. Example values: [1988-04-30 01:19:47, 1975-10-28 15:16:51, 1984-12-19 00:37:21]), `other_details` (other details. Example values: [None])]\nTable Transcript_Contents, columns = [`student_course_id` (student course id. Example values: [0, 96, 76]), `transcript_id` (transcript id. Example values: [2, 8, 9])]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "ori_query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Evanston'", + "amb_query": "SELECT zip_postcode FROM Addresses WHERE city IN ('Port Evanston municipality', 'Port Evanston')" + }, + { + "db_id": "student_transcripts_tracking", + "question": "What is the zip code of the address in the city Lake Laishafurt?", + "evidence": "", + "schema_text_wo_content": "\nTable Addresses, columns = [`address_id` (address id), `line_1` (line 1), `line_2` (line 2), `line_3` (line 3), `city` (city), `zip_postcode` (zip postcode), `state_province_county` (state province county), `country` (country), `other_address_details` (other address details)]\nTable Courses, columns = [`course_id` (course id), `course_name` (course name), `course_description` (course description), `other_details` (other details)]\nTable Departments, columns = [`department_id` (department id), `department_name` (department name), `department_description` (department description), `other_details` (other details)]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id), `department_id` (department id), `degree_summary_name` (degree summary name), `degree_summary_description` (degree summary description), `other_details` (other details)]\nTable Sections, columns = [`section_id` (section id), `course_id` (course id), `section_name` (section name), `section_description` (section description), `other_details` (other details)]\nTable Semesters, columns = [`semester_id` (semester id), `semester_name` (semester name), `semester_description` (semester description), `other_details` (other details)]\nTable Students, columns = [`student_id` (student id), `current_address_id` (current address id), `permanent_address_id` (permanent address id), `first_name` (first name), `middle_name` (middle name), `last_name` (last name), `cell_mobile_number` (cell mobile number), `email_address` (email address), `ssn` (ssn), `date_first_registered` (date first registered), `date_left` (date left), `other_student_details` (other student details)]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id), `degree_program_id` (degree program id), `semester_id` (semester id), `student_id` (student id), `other_details` (other details)]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id), `course_id` (course id), `student_enrolment_id` (student enrolment id)]\nTable Transcripts, columns = [`transcript_id` (transcript id), `transcript_date` (transcript date), `other_details` (other details)]\nTable Transcript_Contents, columns = [`student_course_id` (student course id), `transcript_id` (transcript id)]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "schema_text_with_content": "\nTable Addresses, columns = [`address_id` (address id. Example values: [1, 2, 3]), `line_1` (line 1. Example values: [2294 Grant Square Apt. 235, 3999 Aufderhar Ways Suite 593, 67942 Carlotta Ferry Apt. 686]), `line_2` (line 2. Example values: [Apt. 370, Apt. 388, Apt. 583]), `line_3` (line 3. Example values: [None]), `city` (city. Example values: [Port Chelsea city, City of Lake Laishafurt, Goodwinhaven]), `zip_postcode` (zip postcode. Example values: [148, 943, 541]), `state_province_county` (state province county. Example values: [Virginia, Kentucky, Kansas]), `country` (country. Example values: [Iceland, Burundi, Saudi Arabia]), `other_address_details` (other address details. Example values: [None])]\nTable Courses, columns = [`course_id` (course id. Example values: [1, 2, 3]), `course_name` (course name. Example values: [ds, math, os]), `course_description` (course description. Example values: [p, q, v]), `other_details` (other details. Example values: [None])]\nTable Departments, columns = [`department_id` (department id. Example values: [1, 2, 3]), `department_name` (department name. Example values: [computer science, history, art]), `department_description` (department description. Example values: [error, nostrum, aliquam]), `other_details` (other details. Example values: [None])]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id. Example values: [1, 2, 3]), `department_id` (department id. Example values: [13, 2, 8]), `degree_summary_name` (degree summary name. Example values: [Master, Bachelor, PHD]), `degree_summary_description` (degree summary description. Example values: [architecto, cumque, placeat]), `other_details` (other details. Example values: [None])]\nTable Sections, columns = [`section_id` (section id. Example values: [1, 2, 3]), `course_id` (course id. Example values: [9, 2, 8]), `section_name` (section name. Example values: [a, b, c]), `section_description` (section description. Example values: [non, voluptatem, qui]), `other_details` (other details. Example values: [None])]\nTable Semesters, columns = [`semester_id` (semester id. Example values: [1, 2, 3]), `semester_name` (semester name. Example values: [spring 2010, summer 2010, fall 2010]), `semester_description` (semester description. Example values: [x, g, w]), `other_details` (other details. Example values: [None])]\nTable Students, columns = [`student_id` (student id. Example values: [1, 2, 3]), `current_address_id` (current address id. Example values: [10, 12, 9]), `permanent_address_id` (permanent address id. Example values: [15, 5, 11]), `first_name` (first name. Example values: [Timmothy, Hobart, Warren]), `middle_name` (middle name. Example values: [Anna, Lorenz, Violet]), `last_name` (last name. Example values: [Ward, Balistreri, Gleichner]), `cell_mobile_number` (cell mobile number. Example values: [(096)889-8954x524, 1-009-710-5151, 07661787471]), `email_address` (email address. Example values: [erwin.zboncak@example.com, swift.kolby@example.com, johns.unique@example.net]), `ssn` (ssn. Example values: [965, 304246, 3]), `date_first_registered` (date first registered. Example values: [1971-02-05 07:28:23, 1976-10-26 02:33:06, 2007-08-29 23:25:41]), `date_left` (date left. Example values: [1971-05-17 19:28:49, 2013-10-05 17:41:28, 2007-03-31 09:53:19]), `other_student_details` (other student details. Example values: [quia, autem, facilis])]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id. Example values: [1, 2, 3]), `degree_program_id` (degree program id. Example values: [12, 4, 10]), `semester_id` (semester id. Example values: [13, 2, 15]), `student_id` (student id. Example values: [14, 9, 7]), `other_details` (other details. Example values: [None])]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id. Example values: [0, 1, 2]), `course_id` (course id. Example values: [6, 14, 11]), `student_enrolment_id` (student enrolment id. Example values: [2, 8, 5])]\nTable Transcripts, columns = [`transcript_id` (transcript id. Example values: [1, 2, 3]), `transcript_date` (transcript date. Example values: [1988-04-30 01:19:47, 1975-10-28 15:16:51, 1984-12-19 00:37:21]), `other_details` (other details. Example values: [None])]\nTable Transcript_Contents, columns = [`student_course_id` (student course id. Example values: [0, 96, 76]), `transcript_id` (transcript id. Example values: [2, 8, 9])]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "ori_query": "SELECT zip_postcode FROM Addresses WHERE city = 'Lake Laishafurt'", + "amb_query": "SELECT zip_postcode FROM Addresses WHERE city IN ('Lake Laishafurt', 'City of Lake Laishafurt')" + }, + { + "db_id": "student_transcripts_tracking", + "question": "What is the zip code for Rutherfordtown?", + "evidence": "", + "schema_text_wo_content": "\nTable Addresses, columns = [`address_id` (address id), `line_1` (line 1), `line_2` (line 2), `line_3` (line 3), `city` (city), `zip_postcode` (zip postcode), `state_province_county` (state province county), `country` (country), `other_address_details` (other address details)]\nTable Courses, columns = [`course_id` (course id), `course_name` (course name), `course_description` (course description), `other_details` (other details)]\nTable Departments, columns = [`department_id` (department id), `department_name` (department name), `department_description` (department description), `other_details` (other details)]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id), `department_id` (department id), `degree_summary_name` (degree summary name), `degree_summary_description` (degree summary description), `other_details` (other details)]\nTable Sections, columns = [`section_id` (section id), `course_id` (course id), `section_name` (section name), `section_description` (section description), `other_details` (other details)]\nTable Semesters, columns = [`semester_id` (semester id), `semester_name` (semester name), `semester_description` (semester description), `other_details` (other details)]\nTable Students, columns = [`student_id` (student id), `current_address_id` (current address id), `permanent_address_id` (permanent address id), `first_name` (first name), `middle_name` (middle name), `last_name` (last name), `cell_mobile_number` (cell mobile number), `email_address` (email address), `ssn` (ssn), `date_first_registered` (date first registered), `date_left` (date left), `other_student_details` (other student details)]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id), `degree_program_id` (degree program id), `semester_id` (semester id), `student_id` (student id), `other_details` (other details)]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id), `course_id` (course id), `student_enrolment_id` (student enrolment id)]\nTable Transcripts, columns = [`transcript_id` (transcript id), `transcript_date` (transcript date), `other_details` (other details)]\nTable Transcript_Contents, columns = [`student_course_id` (student course id), `transcript_id` (transcript id)]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "schema_text_with_content": "\nTable Addresses, columns = [`address_id` (address id. Example values: [1, 2, 3]), `line_1` (line 1. Example values: [2294 Grant Square Apt. 235, 3999 Aufderhar Ways Suite 593, 67942 Carlotta Ferry Apt. 686]), `line_2` (line 2. Example values: [Apt. 370, Apt. 388, Apt. 583]), `line_3` (line 3. Example values: [None]), `city` (city. Example values: [Port Chelsea city, City of Lake Laishafurt, Goodwinhaven]), `zip_postcode` (zip postcode. Example values: [148, 943, 541]), `state_province_county` (state province county. Example values: [Virginia, Kentucky, Kansas]), `country` (country. Example values: [Iceland, Burundi, Saudi Arabia]), `other_address_details` (other address details. Example values: [None])]\nTable Courses, columns = [`course_id` (course id. Example values: [1, 2, 3]), `course_name` (course name. Example values: [ds, math, os]), `course_description` (course description. Example values: [p, q, v]), `other_details` (other details. Example values: [None])]\nTable Departments, columns = [`department_id` (department id. Example values: [1, 2, 3]), `department_name` (department name. Example values: [computer science, history, art]), `department_description` (department description. Example values: [error, nostrum, aliquam]), `other_details` (other details. Example values: [None])]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id. Example values: [1, 2, 3]), `department_id` (department id. Example values: [13, 2, 8]), `degree_summary_name` (degree summary name. Example values: [Master, Bachelor, PHD]), `degree_summary_description` (degree summary description. Example values: [architecto, cumque, placeat]), `other_details` (other details. Example values: [None])]\nTable Sections, columns = [`section_id` (section id. Example values: [1, 2, 3]), `course_id` (course id. Example values: [9, 2, 8]), `section_name` (section name. Example values: [a, b, c]), `section_description` (section description. Example values: [non, voluptatem, qui]), `other_details` (other details. Example values: [None])]\nTable Semesters, columns = [`semester_id` (semester id. Example values: [1, 2, 3]), `semester_name` (semester name. Example values: [spring 2010, summer 2010, fall 2010]), `semester_description` (semester description. Example values: [x, g, w]), `other_details` (other details. Example values: [None])]\nTable Students, columns = [`student_id` (student id. Example values: [1, 2, 3]), `current_address_id` (current address id. Example values: [10, 12, 9]), `permanent_address_id` (permanent address id. Example values: [15, 5, 11]), `first_name` (first name. Example values: [Timmothy, Hobart, Warren]), `middle_name` (middle name. Example values: [Anna, Lorenz, Violet]), `last_name` (last name. Example values: [Ward, Balistreri, Gleichner]), `cell_mobile_number` (cell mobile number. Example values: [(096)889-8954x524, 1-009-710-5151, 07661787471]), `email_address` (email address. Example values: [erwin.zboncak@example.com, swift.kolby@example.com, johns.unique@example.net]), `ssn` (ssn. Example values: [965, 304246, 3]), `date_first_registered` (date first registered. Example values: [1971-02-05 07:28:23, 1976-10-26 02:33:06, 2007-08-29 23:25:41]), `date_left` (date left. Example values: [1971-05-17 19:28:49, 2013-10-05 17:41:28, 2007-03-31 09:53:19]), `other_student_details` (other student details. Example values: [quia, autem, facilis])]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id. Example values: [1, 2, 3]), `degree_program_id` (degree program id. Example values: [12, 4, 10]), `semester_id` (semester id. Example values: [13, 2, 15]), `student_id` (student id. Example values: [14, 9, 7]), `other_details` (other details. Example values: [None])]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id. Example values: [0, 1, 2]), `course_id` (course id. Example values: [6, 14, 11]), `student_enrolment_id` (student enrolment id. Example values: [2, 8, 5])]\nTable Transcripts, columns = [`transcript_id` (transcript id. Example values: [1, 2, 3]), `transcript_date` (transcript date. Example values: [1988-04-30 01:19:47, 1975-10-28 15:16:51, 1984-12-19 00:37:21]), `other_details` (other details. Example values: [None])]\nTable Transcript_Contents, columns = [`student_course_id` (student course id. Example values: [0, 96, 76]), `transcript_id` (transcript id. Example values: [2, 8, 9])]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "ori_query": "SELECT zip_postcode FROM Addresses WHERE city = 'Rutherfordtown'", + "amb_query": "SELECT zip_postcode FROM Addresses WHERE city IN ('Rutherfordtown', 'Rutherfordtown, State')" + }, + { + "db_id": "student_transcripts_tracking", + "question": "What is the zip code for North Omer?", + "evidence": "", + "schema_text_wo_content": "\nTable Addresses, columns = [`address_id` (address id), `line_1` (line 1), `line_2` (line 2), `line_3` (line 3), `city` (city), `zip_postcode` (zip postcode), `state_province_county` (state province county), `country` (country), `other_address_details` (other address details)]\nTable Courses, columns = [`course_id` (course id), `course_name` (course name), `course_description` (course description), `other_details` (other details)]\nTable Departments, columns = [`department_id` (department id), `department_name` (department name), `department_description` (department description), `other_details` (other details)]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id), `department_id` (department id), `degree_summary_name` (degree summary name), `degree_summary_description` (degree summary description), `other_details` (other details)]\nTable Sections, columns = [`section_id` (section id), `course_id` (course id), `section_name` (section name), `section_description` (section description), `other_details` (other details)]\nTable Semesters, columns = [`semester_id` (semester id), `semester_name` (semester name), `semester_description` (semester description), `other_details` (other details)]\nTable Students, columns = [`student_id` (student id), `current_address_id` (current address id), `permanent_address_id` (permanent address id), `first_name` (first name), `middle_name` (middle name), `last_name` (last name), `cell_mobile_number` (cell mobile number), `email_address` (email address), `ssn` (ssn), `date_first_registered` (date first registered), `date_left` (date left), `other_student_details` (other student details)]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id), `degree_program_id` (degree program id), `semester_id` (semester id), `student_id` (student id), `other_details` (other details)]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id), `course_id` (course id), `student_enrolment_id` (student enrolment id)]\nTable Transcripts, columns = [`transcript_id` (transcript id), `transcript_date` (transcript date), `other_details` (other details)]\nTable Transcript_Contents, columns = [`student_course_id` (student course id), `transcript_id` (transcript id)]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "schema_text_with_content": "\nTable Addresses, columns = [`address_id` (address id. Example values: [1, 2, 3]), `line_1` (line 1. Example values: [2294 Grant Square Apt. 235, 3999 Aufderhar Ways Suite 593, 67942 Carlotta Ferry Apt. 686]), `line_2` (line 2. Example values: [Apt. 370, Apt. 388, Apt. 583]), `line_3` (line 3. Example values: [None]), `city` (city. Example values: [Port Chelsea city, City of Lake Laishafurt, Goodwinhaven]), `zip_postcode` (zip postcode. Example values: [148, 943, 541]), `state_province_county` (state province county. Example values: [Virginia, Kentucky, Kansas]), `country` (country. Example values: [Iceland, Burundi, Saudi Arabia]), `other_address_details` (other address details. Example values: [None])]\nTable Courses, columns = [`course_id` (course id. Example values: [1, 2, 3]), `course_name` (course name. Example values: [ds, math, os]), `course_description` (course description. Example values: [p, q, v]), `other_details` (other details. Example values: [None])]\nTable Departments, columns = [`department_id` (department id. Example values: [1, 2, 3]), `department_name` (department name. Example values: [computer science, history, art]), `department_description` (department description. Example values: [error, nostrum, aliquam]), `other_details` (other details. Example values: [None])]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id. Example values: [1, 2, 3]), `department_id` (department id. Example values: [13, 2, 8]), `degree_summary_name` (degree summary name. Example values: [Master, Bachelor, PHD]), `degree_summary_description` (degree summary description. Example values: [architecto, cumque, placeat]), `other_details` (other details. Example values: [None])]\nTable Sections, columns = [`section_id` (section id. Example values: [1, 2, 3]), `course_id` (course id. Example values: [9, 2, 8]), `section_name` (section name. Example values: [a, b, c]), `section_description` (section description. Example values: [non, voluptatem, qui]), `other_details` (other details. Example values: [None])]\nTable Semesters, columns = [`semester_id` (semester id. Example values: [1, 2, 3]), `semester_name` (semester name. Example values: [spring 2010, summer 2010, fall 2010]), `semester_description` (semester description. Example values: [x, g, w]), `other_details` (other details. Example values: [None])]\nTable Students, columns = [`student_id` (student id. Example values: [1, 2, 3]), `current_address_id` (current address id. Example values: [10, 12, 9]), `permanent_address_id` (permanent address id. Example values: [15, 5, 11]), `first_name` (first name. Example values: [Timmothy, Hobart, Warren]), `middle_name` (middle name. Example values: [Anna, Lorenz, Violet]), `last_name` (last name. Example values: [Ward, Balistreri, Gleichner]), `cell_mobile_number` (cell mobile number. Example values: [(096)889-8954x524, 1-009-710-5151, 07661787471]), `email_address` (email address. Example values: [erwin.zboncak@example.com, swift.kolby@example.com, johns.unique@example.net]), `ssn` (ssn. Example values: [965, 304246, 3]), `date_first_registered` (date first registered. Example values: [1971-02-05 07:28:23, 1976-10-26 02:33:06, 2007-08-29 23:25:41]), `date_left` (date left. Example values: [1971-05-17 19:28:49, 2013-10-05 17:41:28, 2007-03-31 09:53:19]), `other_student_details` (other student details. Example values: [quia, autem, facilis])]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id. Example values: [1, 2, 3]), `degree_program_id` (degree program id. Example values: [12, 4, 10]), `semester_id` (semester id. Example values: [13, 2, 15]), `student_id` (student id. Example values: [14, 9, 7]), `other_details` (other details. Example values: [None])]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id. Example values: [0, 1, 2]), `course_id` (course id. Example values: [6, 14, 11]), `student_enrolment_id` (student enrolment id. Example values: [2, 8, 5])]\nTable Transcripts, columns = [`transcript_id` (transcript id. Example values: [1, 2, 3]), `transcript_date` (transcript date. Example values: [1988-04-30 01:19:47, 1975-10-28 15:16:51, 1984-12-19 00:37:21]), `other_details` (other details. Example values: [None])]\nTable Transcript_Contents, columns = [`student_course_id` (student course id. Example values: [0, 96, 76]), `transcript_id` (transcript id. Example values: [2, 8, 9])]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "ori_query": "SELECT zip_postcode FROM Addresses WHERE city = 'North Omer'", + "amb_query": "SELECT zip_postcode FROM Addresses WHERE city IN ('North Omer', 'North Omer city')" + }, + { + "db_id": "student_transcripts_tracking", + "question": "What is the zip code of the address in the city Port Chelsea?", + "evidence": "", + "schema_text_wo_content": "\nTable Addresses, columns = [`address_id` (address id), `line_1` (line 1), `line_2` (line 2), `line_3` (line 3), `city` (city), `zip_postcode` (zip postcode), `state_province_county` (state province county), `country` (country), `other_address_details` (other address details)]\nTable Courses, columns = [`course_id` (course id), `course_name` (course name), `course_description` (course description), `other_details` (other details)]\nTable Departments, columns = [`department_id` (department id), `department_name` (department name), `department_description` (department description), `other_details` (other details)]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id), `department_id` (department id), `degree_summary_name` (degree summary name), `degree_summary_description` (degree summary description), `other_details` (other details)]\nTable Sections, columns = [`section_id` (section id), `course_id` (course id), `section_name` (section name), `section_description` (section description), `other_details` (other details)]\nTable Semesters, columns = [`semester_id` (semester id), `semester_name` (semester name), `semester_description` (semester description), `other_details` (other details)]\nTable Students, columns = [`student_id` (student id), `current_address_id` (current address id), `permanent_address_id` (permanent address id), `first_name` (first name), `middle_name` (middle name), `last_name` (last name), `cell_mobile_number` (cell mobile number), `email_address` (email address), `ssn` (ssn), `date_first_registered` (date first registered), `date_left` (date left), `other_student_details` (other student details)]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id), `degree_program_id` (degree program id), `semester_id` (semester id), `student_id` (student id), `other_details` (other details)]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id), `course_id` (course id), `student_enrolment_id` (student enrolment id)]\nTable Transcripts, columns = [`transcript_id` (transcript id), `transcript_date` (transcript date), `other_details` (other details)]\nTable Transcript_Contents, columns = [`student_course_id` (student course id), `transcript_id` (transcript id)]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "schema_text_with_content": "\nTable Addresses, columns = [`address_id` (address id. Example values: [1, 2, 3]), `line_1` (line 1. Example values: [2294 Grant Square Apt. 235, 3999 Aufderhar Ways Suite 593, 67942 Carlotta Ferry Apt. 686]), `line_2` (line 2. Example values: [Apt. 370, Apt. 388, Apt. 583]), `line_3` (line 3. Example values: [None]), `city` (city. Example values: [Port Chelsea city, City of Lake Laishafurt, Goodwinhaven]), `zip_postcode` (zip postcode. Example values: [148, 943, 541]), `state_province_county` (state province county. Example values: [Virginia, Kentucky, Kansas]), `country` (country. Example values: [Iceland, Burundi, Saudi Arabia]), `other_address_details` (other address details. Example values: [None])]\nTable Courses, columns = [`course_id` (course id. Example values: [1, 2, 3]), `course_name` (course name. Example values: [ds, math, os]), `course_description` (course description. Example values: [p, q, v]), `other_details` (other details. Example values: [None])]\nTable Departments, columns = [`department_id` (department id. Example values: [1, 2, 3]), `department_name` (department name. Example values: [computer science, history, art]), `department_description` (department description. Example values: [error, nostrum, aliquam]), `other_details` (other details. Example values: [None])]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id. Example values: [1, 2, 3]), `department_id` (department id. Example values: [13, 2, 8]), `degree_summary_name` (degree summary name. Example values: [Master, Bachelor, PHD]), `degree_summary_description` (degree summary description. Example values: [architecto, cumque, placeat]), `other_details` (other details. Example values: [None])]\nTable Sections, columns = [`section_id` (section id. Example values: [1, 2, 3]), `course_id` (course id. Example values: [9, 2, 8]), `section_name` (section name. Example values: [a, b, c]), `section_description` (section description. Example values: [non, voluptatem, qui]), `other_details` (other details. Example values: [None])]\nTable Semesters, columns = [`semester_id` (semester id. Example values: [1, 2, 3]), `semester_name` (semester name. Example values: [spring 2010, summer 2010, fall 2010]), `semester_description` (semester description. Example values: [x, g, w]), `other_details` (other details. Example values: [None])]\nTable Students, columns = [`student_id` (student id. Example values: [1, 2, 3]), `current_address_id` (current address id. Example values: [10, 12, 9]), `permanent_address_id` (permanent address id. Example values: [15, 5, 11]), `first_name` (first name. Example values: [Timmothy, Hobart, Warren]), `middle_name` (middle name. Example values: [Anna, Lorenz, Violet]), `last_name` (last name. Example values: [Ward, Balistreri, Gleichner]), `cell_mobile_number` (cell mobile number. Example values: [(096)889-8954x524, 1-009-710-5151, 07661787471]), `email_address` (email address. Example values: [erwin.zboncak@example.com, swift.kolby@example.com, johns.unique@example.net]), `ssn` (ssn. Example values: [965, 304246, 3]), `date_first_registered` (date first registered. Example values: [1971-02-05 07:28:23, 1976-10-26 02:33:06, 2007-08-29 23:25:41]), `date_left` (date left. Example values: [1971-05-17 19:28:49, 2013-10-05 17:41:28, 2007-03-31 09:53:19]), `other_student_details` (other student details. Example values: [quia, autem, facilis])]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id. Example values: [1, 2, 3]), `degree_program_id` (degree program id. Example values: [12, 4, 10]), `semester_id` (semester id. Example values: [13, 2, 15]), `student_id` (student id. Example values: [14, 9, 7]), `other_details` (other details. Example values: [None])]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id. Example values: [0, 1, 2]), `course_id` (course id. Example values: [6, 14, 11]), `student_enrolment_id` (student enrolment id. Example values: [2, 8, 5])]\nTable Transcripts, columns = [`transcript_id` (transcript id. Example values: [1, 2, 3]), `transcript_date` (transcript date. Example values: [1988-04-30 01:19:47, 1975-10-28 15:16:51, 1984-12-19 00:37:21]), `other_details` (other details. Example values: [None])]\nTable Transcript_Contents, columns = [`student_course_id` (student course id. Example values: [0, 96, 76]), `transcript_id` (transcript id. Example values: [2, 8, 9])]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "ori_query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "amb_query": "SELECT zip_postcode FROM Addresses WHERE city IN ('Port Chelsea', 'Port Chelsea city')" + }, + { + "db_id": "student_transcripts_tracking", + "question": "What is the zip code for Port Chelsea?", + "evidence": "", + "schema_text_wo_content": "\nTable Addresses, columns = [`address_id` (address id), `line_1` (line 1), `line_2` (line 2), `line_3` (line 3), `city` (city), `zip_postcode` (zip postcode), `state_province_county` (state province county), `country` (country), `other_address_details` (other address details)]\nTable Courses, columns = [`course_id` (course id), `course_name` (course name), `course_description` (course description), `other_details` (other details)]\nTable Departments, columns = [`department_id` (department id), `department_name` (department name), `department_description` (department description), `other_details` (other details)]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id), `department_id` (department id), `degree_summary_name` (degree summary name), `degree_summary_description` (degree summary description), `other_details` (other details)]\nTable Sections, columns = [`section_id` (section id), `course_id` (course id), `section_name` (section name), `section_description` (section description), `other_details` (other details)]\nTable Semesters, columns = [`semester_id` (semester id), `semester_name` (semester name), `semester_description` (semester description), `other_details` (other details)]\nTable Students, columns = [`student_id` (student id), `current_address_id` (current address id), `permanent_address_id` (permanent address id), `first_name` (first name), `middle_name` (middle name), `last_name` (last name), `cell_mobile_number` (cell mobile number), `email_address` (email address), `ssn` (ssn), `date_first_registered` (date first registered), `date_left` (date left), `other_student_details` (other student details)]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id), `degree_program_id` (degree program id), `semester_id` (semester id), `student_id` (student id), `other_details` (other details)]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id), `course_id` (course id), `student_enrolment_id` (student enrolment id)]\nTable Transcripts, columns = [`transcript_id` (transcript id), `transcript_date` (transcript date), `other_details` (other details)]\nTable Transcript_Contents, columns = [`student_course_id` (student course id), `transcript_id` (transcript id)]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "schema_text_with_content": "\nTable Addresses, columns = [`address_id` (address id. Example values: [1, 2, 3]), `line_1` (line 1. Example values: [2294 Grant Square Apt. 235, 3999 Aufderhar Ways Suite 593, 67942 Carlotta Ferry Apt. 686]), `line_2` (line 2. Example values: [Apt. 370, Apt. 388, Apt. 583]), `line_3` (line 3. Example values: [None]), `city` (city. Example values: [Port Chelsea city, City of Lake Laishafurt, Goodwinhaven]), `zip_postcode` (zip postcode. Example values: [148, 943, 541]), `state_province_county` (state province county. Example values: [Virginia, Kentucky, Kansas]), `country` (country. Example values: [Iceland, Burundi, Saudi Arabia]), `other_address_details` (other address details. Example values: [None])]\nTable Courses, columns = [`course_id` (course id. Example values: [1, 2, 3]), `course_name` (course name. Example values: [ds, math, os]), `course_description` (course description. Example values: [p, q, v]), `other_details` (other details. Example values: [None])]\nTable Departments, columns = [`department_id` (department id. Example values: [1, 2, 3]), `department_name` (department name. Example values: [computer science, history, art]), `department_description` (department description. Example values: [error, nostrum, aliquam]), `other_details` (other details. Example values: [None])]\nTable Degree_Programs, columns = [`degree_program_id` (degree program id. Example values: [1, 2, 3]), `department_id` (department id. Example values: [13, 2, 8]), `degree_summary_name` (degree summary name. Example values: [Master, Bachelor, PHD]), `degree_summary_description` (degree summary description. Example values: [architecto, cumque, placeat]), `other_details` (other details. Example values: [None])]\nTable Sections, columns = [`section_id` (section id. Example values: [1, 2, 3]), `course_id` (course id. Example values: [9, 2, 8]), `section_name` (section name. Example values: [a, b, c]), `section_description` (section description. Example values: [non, voluptatem, qui]), `other_details` (other details. Example values: [None])]\nTable Semesters, columns = [`semester_id` (semester id. Example values: [1, 2, 3]), `semester_name` (semester name. Example values: [spring 2010, summer 2010, fall 2010]), `semester_description` (semester description. Example values: [x, g, w]), `other_details` (other details. Example values: [None])]\nTable Students, columns = [`student_id` (student id. Example values: [1, 2, 3]), `current_address_id` (current address id. Example values: [10, 12, 9]), `permanent_address_id` (permanent address id. Example values: [15, 5, 11]), `first_name` (first name. Example values: [Timmothy, Hobart, Warren]), `middle_name` (middle name. Example values: [Anna, Lorenz, Violet]), `last_name` (last name. Example values: [Ward, Balistreri, Gleichner]), `cell_mobile_number` (cell mobile number. Example values: [(096)889-8954x524, 1-009-710-5151, 07661787471]), `email_address` (email address. Example values: [erwin.zboncak@example.com, swift.kolby@example.com, johns.unique@example.net]), `ssn` (ssn. Example values: [965, 304246, 3]), `date_first_registered` (date first registered. Example values: [1971-02-05 07:28:23, 1976-10-26 02:33:06, 2007-08-29 23:25:41]), `date_left` (date left. Example values: [1971-05-17 19:28:49, 2013-10-05 17:41:28, 2007-03-31 09:53:19]), `other_student_details` (other student details. Example values: [quia, autem, facilis])]\nTable Student_Enrolment, columns = [`student_enrolment_id` (student enrolment id. Example values: [1, 2, 3]), `degree_program_id` (degree program id. Example values: [12, 4, 10]), `semester_id` (semester id. Example values: [13, 2, 15]), `student_id` (student id. Example values: [14, 9, 7]), `other_details` (other details. Example values: [None])]\nTable Student_Enrolment_Courses, columns = [`student_course_id` (student course id. Example values: [0, 1, 2]), `course_id` (course id. Example values: [6, 14, 11]), `student_enrolment_id` (student enrolment id. Example values: [2, 8, 5])]\nTable Transcripts, columns = [`transcript_id` (transcript id. Example values: [1, 2, 3]), `transcript_date` (transcript date. Example values: [1988-04-30 01:19:47, 1975-10-28 15:16:51, 1984-12-19 00:37:21]), `other_details` (other details. Example values: [None])]\nTable Transcript_Contents, columns = [`student_course_id` (student course id. Example values: [0, 96, 76]), `transcript_id` (transcript id. Example values: [2, 8, 9])]\nforeign keys = [Degree_Programs.department_id = Departments.department_id, Sections.course_id = Courses.course_id, Students.permanent_address_id = Addresses.address_id, Students.current_address_id = Addresses.address_id, Student_Enrolment.student_id = Students.student_id, Student_Enrolment.semester_id = Semesters.semester_id, Student_Enrolment.degree_program_id = Degree_Programs.degree_program_id, Student_Enrolment_Courses.student_enrolment_id = Student_Enrolment.student_enrolment_id, Student_Enrolment_Courses.course_id = Courses.course_id, Transcript_Contents.transcript_id = Transcripts.transcript_id, Transcript_Contents.student_course_id = Student_Enrolment_Courses.student_course_id]", + "ori_query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "amb_query": "SELECT zip_postcode FROM Addresses WHERE city IN ('Port Chelsea', 'Port Chelsea city')" + }, + { + "db_id": "world_1", + "question": "How many countries speak both Kono-vai and Nauru?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Kono-vai\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Nauru\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Kono-vai', 'Kono-vai spoken') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Nauru', 'Nauru language'))" + }, + { + "db_id": "world_1", + "question": "How many countries speak both Somba and Kosrean?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Somba\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Kosrean\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Somba', 'Somba speech') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Kosrean', 'Kosrean tongue'))" + }, + { + "db_id": "world_1", + "question": "How many countries speak both Soqutri and Shambala?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Soqutri\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Shambala\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Soqutri language', 'Soqutri') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Shambala', 'Shambala speech'))" + }, + { + "db_id": "world_1", + "question": "How many countries speak both Hadareb and Diola?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Hadareb\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Diola\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Hadareb', 'Hadareb speech') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Diola linguistic group', 'Diola'))" + }, + { + "db_id": "world_1", + "question": "How many countries speak both Northsotho and Arabic-French?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Northsotho\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Arabic-French\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Northsotho', 'Northsotho spoken') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Arabic-French', 'Arabic French dialect'))" + }, + { + "db_id": "world_1", + "question": "What is the number of nations that use Azerbaijani and Seselwa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Azerbaijani\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Seselwa\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Azerbaijani tongue', 'Azerbaijani dialect', 'Azerbaijani', 'Azerbaijani speech') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Seselwa tongue', 'Seselwa'))" + }, + { + "db_id": "world_1", + "question": "What are the names of nations speak both Comorian and Ful?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Comorian\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Ful\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Comorian', 'Comorian language') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Ful speakers', 'Ful-speaking', 'Ful')" + }, + { + "db_id": "world_1", + "question": "What are the names of nations speak both Punjabi and Mandara?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Punjabi\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Mandara\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Punjabi', 'Punjabi dialect', 'Punjabi tongue', 'Punjabi speakers') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Mandara tongue', 'Mandara')" + }, + { + "db_id": "world_1", + "question": "Give the names of nations that speak both Bicol and Tamashek.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Bicol\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Tamashek\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Bicol dialect', 'Bicol') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Tamashek', 'Tamashek dialect')" + }, + { + "db_id": "world_1", + "question": "What are the regions that use Kissi or Busansi?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Kissi\" OR T2.Language = \"Busansi\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Kissi dialect', 'Kissi') OR T2.Language IN ('Busansi', 'Busansi speech')" + }, + { + "db_id": "world_1", + "question": "What are the regions that use Otomí or Turkish?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Otomí\" OR T2.Language = \"Turkish\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Otomí', 'Otomí speech') OR T2.Language IN ('Turkish tongue', 'Turkish')" + }, + { + "db_id": "world_1", + "question": "Which regions speak Minangkabau or Mortlock?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Mortlock\" OR T2.Language = \"Minangkabau\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Mortlock speech', 'Mortlock') OR T2.Language IN ('Minangkabau tongue', 'Minangkabau')" + }, + { + "db_id": "world_1", + "question": "Which regions speak Waray-waray or Slovak?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Slovak\" OR T2.Language = \"Waray-waray\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Slovak', 'Slovakian') OR T2.Language IN ('Waray', 'Waray-waray')" + }, + { + "db_id": "world_1", + "question": "Which regions speak Mon or Ijo?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Ijo\" OR T2.Language = \"Mon\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Ijo', 'Ijo dialect') OR T2.Language IN ('Mon', 'Mon dialect')" + }, + { + "db_id": "world_1", + "question": "Which regions speak Ndebele or Luimbe-nganguela?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Luimbe-nganguela\" OR T2.Language = \"Ndebele\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Luimbe-nganguela', 'Luimbe nganguela') OR T2.Language IN ('Ndebele dialect', 'Ndebele')" + }, + { + "db_id": "world_1", + "question": "Which countries have either Kiga or Bakhtyari as an official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Kiga\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Bakhtyari\" AND IsOfficial = \"T\"", + "amb_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Kiga', 'Kiga dialect') AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Bakhtyari', 'Bakhtyari tongue') AND IsOfficial = 'T'" + }, + { + "db_id": "world_1", + "question": "Which countries have either Tandjile or Futuna as an official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Tandjile\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Futuna\" AND IsOfficial = \"T\"", + "amb_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Tandjile', 'Tandjile as an official language') AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Futuna speech', 'Futuna') AND IsOfficial = 'T'" + }, + { + "db_id": "world_1", + "question": "Which countries have either Kuranko or Yap as an official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Kuranko\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Yap\" AND IsOfficial = \"T\"", + "amb_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Kuranko official language', 'Kuranko') AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Yap', 'Yap speech') AND IsOfficial = 'T'" + }, + { + "db_id": "world_1", + "question": "Which countries have either Miao or Fries as an official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Miao\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Fries\" AND IsOfficial = \"T\"", + "amb_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Miao dialect', 'Miao') AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Fries', 'Fries as an official language') AND IsOfficial = 'T'" + }, + { + "db_id": "world_1", + "question": "Find the city with the largest population that uses Afar.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Afar\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Afar', 'Afar tongue') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "Find the city with the largest population that uses Lozi.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Lozi\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Lozi speakers', 'Lozi') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "Find the city with the largest population that uses Sranantonga.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Sranantonga\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Sranantonga speech', 'Sranantonga') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "Find the city with the largest population that uses Dyula.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Dyula\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Dyula', 'Dyula speech') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "Find the city with the largest population that uses Masana.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Masana\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Masana', 'Masana vernacular') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the most populace city that speaks Dhivehi?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Dhivehi\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Dhivehi', 'Dhivehi language') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the most populace city that speaks Tšam?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Tšam\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Tšam spoken', 'Tšam') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the most populace city that speaks Khasi?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Khasi\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Khasi', 'Khasi language') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the most populace city that speaks Nkole?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Nkole\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Nkole', 'Nkole language') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the most populace city that speaks Dagara?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"Dagara\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Dagara', 'Dagara speakers') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the total number of people living in the nations that do not use Rapa nui?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Rapa nui\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Rapa nui', 'Rapa nui tongue'))" + }, + { + "db_id": "world_1", + "question": "What is the total number of people living in the nations that do not use Carolinian?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Carolinian\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Carolinian', 'Carolinian tongue'))" + }, + { + "db_id": "world_1", + "question": "What is the total number of people living in the nations that do not use Dari?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dari\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Dari speech', 'Dari'))" + }, + { + "db_id": "world_1", + "question": "What is the total number of people living in the nations that do not use Chechen?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chechen\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Chechen', 'Chechen vernacular'))" + }, + { + "db_id": "world_1", + "question": "What is the total number of people living in the nations that do not use Xhosa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Xhosa\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Xhosa dialect', 'Xhosa'))" + }, + { + "db_id": "world_1", + "question": "How many people live in countries that do not speak Ukrainian and Russian?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Ukrainian and Russian\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Ukrainian and Russian', 'Ukrainian and Russian languages'))" + }, + { + "db_id": "world_1", + "question": "How many people live in countries that do not speak Sunda?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Sunda\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Sunda', 'Sunda tongue'))" + }, + { + "db_id": "world_1", + "question": "How many people live in countries that do not speak Tibetan?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Tibetan\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Tibetan language', 'Tibetan'))" + }, + { + "db_id": "world_1", + "question": "How many people live in countries that do not speak Hassaniya?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Hassaniya\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Hassaniya', 'Hassaniya dialect'))" + }, + { + "db_id": "world_1", + "question": "How many people live in countries that do not speak Lithuanian?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Lithuanian\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Lithuanian language', 'Lithuanian'))" + }, + { + "db_id": "world_1", + "question": "What are the country codes for countries that do not speak Embera?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Embera\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Embera language', 'Embera')" + }, + { + "db_id": "world_1", + "question": "What are the country codes for countries that do not speak Malay?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Malay\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Malay language', 'Malay')" + }, + { + "db_id": "world_1", + "question": "What are the country codes for countries that do not speak Beja?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Beja\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Beja', 'Beja speech')" + }, + { + "db_id": "world_1", + "question": "What are the country codes for countries that do not speak Japanese?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Japanese\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Japanese language', 'Japanese')" + }, + { + "db_id": "world_1", + "question": "What are the country codes for countries that do not speak Monegasque?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Monegasque\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Monegasque vernacular', 'Monegasque')" + }, + { + "db_id": "world_1", + "question": "Return the country codes for countries that do not speak Bambara.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Bambara\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Bambara tongue', 'Bambara')" + }, + { + "db_id": "world_1", + "question": "Return the country codes for countries that do not speak Zhuang.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Zhuang\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Zhuang tongue', 'Zhuang')" + }, + { + "db_id": "world_1", + "question": "Return the country codes for countries that do not speak Saame.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Saame\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Saame', 'Saame tongue')" + }, + { + "db_id": "world_1", + "question": "Return the country codes for countries that do not speak Romansh.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Romansh\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Romansh language', 'Romansh')" + }, + { + "db_id": "world_1", + "question": "Return the country codes for countries that do not speak Tswana.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Tswana\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'Tswana'" + }, + { + "db_id": "world_1", + "question": "What are the country codes of countries where people use languages other than Sango?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Sango\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Sango dialect', 'Sango')" + }, + { + "db_id": "world_1", + "question": "What are the country codes of countries where people use languages other than Italian?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Italian\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Italian', 'Italian language', 'Italian tongue')" + }, + { + "db_id": "world_1", + "question": "What are the country codes of countries where people use languages other than Pitcairnese?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Pitcairnese\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Pitcairnese', 'Pitcairnese language')" + }, + { + "db_id": "world_1", + "question": "What are the country codes of countries where people use languages other than Ane?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Ane\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Ane tongue', 'Ane')" + }, + { + "db_id": "world_1", + "question": "What are the country codes of countries where people use languages other than Comorian-Swahili?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Comorian-Swahili\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Comorian-Swahili', 'Comorian-Swahili language')" + }, + { + "db_id": "world_1", + "question": "Give the country codes for countries in which people speak langauges that are not Bhojpuri.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Bhojpuri\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Bhojpuri', 'Bhojpuri tongue')" + }, + { + "db_id": "world_1", + "question": "Give the country codes for countries in which people speak langauges that are not Mbete.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Mbete\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Mbete tongue', 'language Mbete', 'Mbete')" + }, + { + "db_id": "world_1", + "question": "Give the country codes for countries in which people speak langauges that are not Balochi.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Balochi\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Balochi', 'Balochi language', 'Balochi speech')" + }, + { + "db_id": "world_1", + "question": "Give the country codes for countries in which people speak langauges that are not Sardinian.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Sardinian\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Sardinian language', 'Sardinian')" + }, + { + "db_id": "world_1", + "question": "Give the country codes for countries in which people speak langauges that are not Ngoni.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"Ngoni\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Ngoni', 'Ngoni tongue')" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries that do not speak Zande and do not have Republics for governments.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Code FROM country WHERE GovernmentForm != \"Nonmetropolitan Territory of The Netherlands\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Zande\"", + "amb_query": "SELECT Code FROM country WHERE GovernmentForm <> 'Nonmetropolitan Territory of The Netherlands' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Zande', 'Zande tongue')" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries that do not speak Tokelau and do not have Republics for governments.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Code FROM country WHERE GovernmentForm != \"Co-administrated\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Tokelau\"", + "amb_query": "SELECT Code FROM country WHERE NOT GovernmentForm IN ('Co-administrated', 'Co-administered government') EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Tokelau dialect', 'Tokelau')" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries that do not speak Chiu chau and do not have Republics for governments.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Code FROM country WHERE GovernmentForm != \"Special Administrative Region of China\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"Chiu chau\"", + "amb_query": "SELECT Code FROM country WHERE NOT GovernmentForm IN ('Special Administrative Region of China', 'SAR of China') EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Chiu chau', 'Chiu chau dialect')" + }, + { + "db_id": "world_1", + "question": "What is the number of distinct continents where Czech and Moravian is spoken?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Czech and Moravian\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Czech and Moravian', 'Czech and Moravian language')" + }, + { + "db_id": "world_1", + "question": "What is the number of distinct continents where Ngala and Bangi is spoken?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Ngala and Bangi\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Ngala and Bangi dialects', 'Ngala and Bangi')" + }, + { + "db_id": "world_1", + "question": "What is the number of distinct continents where Hungarian is spoken?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Hungarian\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Hungarian'" + }, + { + "db_id": "world_1", + "question": "What is the number of distinct continents where Yucatec is spoken?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Yucatec\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Yucatec', 'Yucatec dialect')" + }, + { + "db_id": "world_1", + "question": "What is the number of distinct continents where Mam is spoken?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Mam\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Mam language', 'Mam')" + }, + { + "db_id": "world_1", + "question": "How many continents speak Tatar?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Tatar\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Tatar', 'Tatar language', 'Tatar tongue')" + }, + { + "db_id": "world_1", + "question": "How many continents speak Kymri?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Kymri\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Kymri speech', 'Kymri')" + }, + { + "db_id": "world_1", + "question": "How many continents speak Lao?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Lao\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Lao', 'Lao language')" + }, + { + "db_id": "world_1", + "question": "How many continents speak Slovene?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Slovene\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Slovene', 'Slovene language')" + }, + { + "db_id": "world_1", + "question": "How many continents speak Soga?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Soga\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Soga language', 'Soga')" + }, + { + "db_id": "world_1", + "question": "What are the countries where either Marathi or Bullom-sherbro is the official language ?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Marathi\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Bullom-sherbro\" and isofficial = \"t\"", + "amb_query": "SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language IN ('Marathi', 'Marathi dialect') AND isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language IN ('Bullom Sherbro', 'Bullom-sherbro') AND isofficial = 't'" + }, + { + "db_id": "world_1", + "question": "What is the total number of countries where Loma is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Loma\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Loma spoken', 'Loma') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What is the total number of countries where Bari is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Bari\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Bari spoken', 'Bari') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What is the total number of countries where Nuer is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Nuer\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Nuer', 'Nuer dialect') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What is the total number of countries where Samoan-English is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Samoan-English\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Samoan-English', 'Samoan-English dialect') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What is the total number of countries where Kazakh is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Kazakh\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Kazakh language', 'Kazakh', 'Kazakh vernacular') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Count the number of countries for which Amhara is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Amhara\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Amhara', 'Amhara dialect') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Count the number of countries for which Faroese is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Faroese\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Faroese', 'Faroese tongue') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Count the number of countries for which Nsenga is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Nsenga\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Nsenga', 'Nsenga tongue') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Count the number of countries for which Tsonga is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Tsonga\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Tsonga speech', 'Tsonga') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Count the number of countries for which Luxembourgish is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Luxembourgish\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Luxembourgish tongue', 'Luxembourgish') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What are the codes of countries where Khoekhoe is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Khoekhoe\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Khoekhoe dialect', 'Khoekhoe') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What are the codes of countries where Swedish is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Swedish\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Swedish' GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What are the codes of countries where Ewe is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Ewe\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Ewe', 'Ewe tongue') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What are the codes of countries where Maithili is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Maithili\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Maithili', 'Maithili language') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What are the codes of countries where Ouaddai is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Ouaddai\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Ouaddai language', 'Ouaddai') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries for which Mon-khmer is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Mon-khmer\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Mon-Khmer spoken language', 'Mon-khmer') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries for which Vietnamese is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Vietnamese\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Vietnamese speech', 'Vietnamese vernacular', 'Vietnamese') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries for which Niue is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Niue\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Niuean', 'Niue') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries for which Mandyako is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Mandyako\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Mandyako', 'Mandyako speech') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries for which Czech is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Czech\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Czech language', 'Czech', 'Czech speech') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "How many countries speak both English and Dutch?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Dutch language', 'Dutch dialect', 'Dutch speech', 'Dutch'))" + }, + { + "db_id": "world_1", + "question": "What is the number of nations that use English and Dutch?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", + "amb_query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Dutch language', 'Dutch dialect', 'Dutch speech', 'Dutch'))" + }, + { + "db_id": "world_1", + "question": "What are the names of nations speak both English and French?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Francophone', 'French', 'French language', 'French tongue')" + }, + { + "db_id": "world_1", + "question": "Give the names of nations that speak both English and French.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Francophone', 'French', 'French language', 'French tongue')" + }, + { + "db_id": "world_1", + "question": "What are the names of nations where both English and French are official languages?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Francophone', 'French', 'French language', 'French tongue') AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE')" + }, + { + "db_id": "world_1", + "question": "Give the names of countries with English and French as official languages.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", + "amb_query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE') INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Francophone', 'French', 'French language', 'French tongue') AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE')" + }, + { + "db_id": "world_1", + "question": "What are the regions that use English or Dutch?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') OR T2.Language IN ('Dutch language', 'Dutch dialect', 'Dutch speech', 'Dutch')" + }, + { + "db_id": "world_1", + "question": "Which regions speak Dutch or English?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", + "amb_query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') OR T2.Language IN ('Dutch language', 'Dutch dialect', 'Dutch speech', 'Dutch')" + }, + { + "db_id": "world_1", + "question": "Which countries have either English or Dutch as an official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"", + "amb_query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Dutch language', 'Dutch dialect', 'Dutch speech', 'Dutch') AND IsOfficial = 'T'" + }, + { + "db_id": "world_1", + "question": "Find the city with the largest population that uses English.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the most populace city that speaks English?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", + "amb_query": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') ORDER BY T1.Population DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is average life expectancy in the countries where English is not the official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE'))" + }, + { + "db_id": "world_1", + "question": "Give the mean life expectancy of countries in which English is not the official language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect') AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE'))" + }, + { + "db_id": "world_1", + "question": "What is the total number of people living in the nations that do not use English?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect'))" + }, + { + "db_id": "world_1", + "question": "How many people live in countries that do not speak English?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", + "amb_query": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect'))" + }, + { + "db_id": "world_1", + "question": "What are the country codes for countries that do not speak English?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect')" + }, + { + "db_id": "world_1", + "question": "Return the country codes for countries that do not speak English.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "amb_query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect')" + }, + { + "db_id": "world_1", + "question": "What are the country codes of countries where people use languages other than English?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect')" + }, + { + "db_id": "world_1", + "question": "Give the country codes for countries in which people speak langauges that are not English.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "amb_query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE NOT LANGUAGE IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect')" + }, + { + "db_id": "world_1", + "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "amb_query": "SELECT Code FROM country WHERE NOT GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic') EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect')" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries that do not speak English and do not have Republics for governments.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "amb_query": "SELECT Code FROM country WHERE NOT GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic') EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect')" + }, + { + "db_id": "world_1", + "question": "Which cities are in European countries where English is not the official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", + "amb_query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent IN ('European countries', 'Europe region', 'Europe area', 'Europe') AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE') AND T4.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect'))" + }, + { + "db_id": "world_1", + "question": "What are the names of cities in Europe for which English is not the official language?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", + "amb_query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent IN ('European countries', 'Europe region', 'Europe area', 'Europe') AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE') AND T4.Language IN ('Anglophone', 'English', 'English-speaking', 'English language', 'english', 'English tongue', 'English dialect'))" + }, + { + "db_id": "world_1", + "question": "What is the number of distinct continents where Chinese is spoken?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Mandarin Chinese', 'Chinese dialect', 'Canton Chinese', 'Chinese tongue', 'Chinese')" + }, + { + "db_id": "world_1", + "question": "How many continents speak Chinese?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "amb_query": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language IN ('Mandarin Chinese', 'Chinese dialect', 'Canton Chinese', 'Chinese tongue', 'Chinese')" + }, + { + "db_id": "world_1", + "question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\"", + "amb_query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE') AND T2.Language IN ('Mandarin Chinese', 'Chinese dialect', 'Canton Chinese', 'Chinese tongue', 'Chinese') AND T1.Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia')" + }, + { + "db_id": "world_1", + "question": "What are the countries where either English or Dutch is the official language ?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", + "amb_query": "SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language IN ('English language', 'English tongue', 'english', 'English dialect') AND isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'dutch' AND isofficial = 't'" + }, + { + "db_id": "world_1", + "question": "Which unique cities are in Asian countries where Chinese is the official language ?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\"", + "amb_query": "SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial IN ('TRUE', 't', 'True', 'true') AND t2.language IN ('Chinese language', 'chinese') AND t1.continent IN ('the continent of Asia', 'asia')" + }, + { + "db_id": "world_1", + "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Spanish tongue', 'Spanish language', 'Spanish', 'Español') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Count the number of countries for which Spanish is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "amb_query": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Spanish tongue', 'Spanish language', 'Spanish', 'Español') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Spanish tongue', 'Spanish language', 'Spanish', 'Español') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "Return the codes of countries for which Spanish is the predominantly spoken language.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "amb_query": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE IN ('Spanish tongue', 'Spanish language', 'Spanish', 'Español') GROUP BY CountryCode" + }, + { + "db_id": "world_1", + "question": "What is the official language spoken in the country whose head of state is Beatrix?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE')" + }, + { + "db_id": "world_1", + "question": "What is the official language used in the country the name of whose head of state is Beatrix.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial IN ('t', 'True', 'T', 'is the official language', 'official', 'true', 'TRUE')" + }, + { + "db_id": "world_1", + "question": "How many countries have a Monarchy (Sultanate) as their form of government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Monarchy (Sultanate)\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE GovernmentForm IN ('Sultanate', 'Monarchy (Sultanate)')" + }, + { + "db_id": "world_1", + "question": "How many countries have a Federal Republic as their form of government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Federal Republic\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE GovernmentForm IN ('Federal Republic', 'Federal Republic Nation', 'Federal Republic Country')" + }, + { + "db_id": "world_1", + "question": "How many countries have a Monarchy as their form of government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Monarchy\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE GovernmentForm IN ('Monarchial form of government', 'Monarchic system', 'Monarchy')" + }, + { + "db_id": "world_1", + "question": "Which languages are spoken by only one country in Socialistic State governments?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Socialistic State\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm IN ('Socialistic State', 'Socialistic Republic') GROUP BY T2.Language HAVING COUNT(*) = 1" + }, + { + "db_id": "world_1", + "question": "Which languages are spoken by only one country in Occupied by Marocco governments?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Occupied by Marocco\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm IN ('Morocco under occupation', 'Occupied by Marocco') GROUP BY T2.Language HAVING COUNT(*) = 1" + }, + { + "db_id": "world_1", + "question": "What languages are only used by a single country with a Dependent Territory of the US government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Dependent Territory of the US\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm IN ('US Dependent Territory', 'Dependent Territory of the US') GROUP BY T2.Language HAVING COUNT(*) = 1" + }, + { + "db_id": "world_1", + "question": "What languages are only used by a single country with a Monarchy (Emirate) government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Monarchy (Emirate)\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm IN ('Emirate Monarchy', 'Monarchy (Emirate)') GROUP BY T2.Language HAVING COUNT(*) = 1" + }, + { + "db_id": "world_1", + "question": "What is the average GNP and total population in all nations whose government is Socialistic Republic?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"Socialistic Republic\"", + "amb_query": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm IN ('Socialistic Republic government', 'Socialistic Republic')" + }, + { + "db_id": "world_1", + "question": "Give the mean GNP and total population of nations which are considered Parliamentary Coprincipality.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"Parliamentary Coprincipality\"", + "amb_query": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm IN ('Parliamentary Coprincipality', 'Parliamentary Coprincipality nation')" + }, + { + "db_id": "world_1", + "question": "How many countries have a republic as their form of government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic')" + }, + { + "db_id": "world_1", + "question": "How many countries have governments that are republics?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic')" + }, + { + "db_id": "world_1", + "question": "What is the average life expectancy in African countries that are republics?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region') AND GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic')" + }, + { + "db_id": "world_1", + "question": "Give the average life expectancy for countries in Africa which are republics?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region') AND GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic')" + }, + { + "db_id": "world_1", + "question": "Which languages are spoken by only one country in republic governments?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic') GROUP BY T2.Language HAVING COUNT(*) = 1" + }, + { + "db_id": "world_1", + "question": "What languages are only used by a single country with a republic government?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm IN ('Republic form of government', 'Republic government', 'Republic Nation', 'Republic') GROUP BY T2.Language HAVING COUNT(*) = 1" + }, + { + "db_id": "world_1", + "question": "What is the average GNP and total population in all nations whose government is US territory?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "amb_query": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm IN ('Territory of the United States', 'US administered territory', 'US Territory')" + }, + { + "db_id": "world_1", + "question": "Give the mean GNP and total population of nations which are considered US territory.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "amb_query": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm IN ('Territory of the United States', 'US administered territory', 'US Territory')" + }, + { + "db_id": "world_1", + "question": "What is the total surface area of the countries in the Micronesia region?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Micronesia\"", + "amb_query": "SELECT SUM(SurfaceArea) FROM country WHERE Region IN ('Micronesia', 'Guam', 'Northern Mariana Islands', 'Micronesia area')" + }, + { + "db_id": "world_1", + "question": "What is the total surface area of the countries in the Southern and Central Asia region?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Southern and Central Asia\"", + "amb_query": "SELECT SUM(SurfaceArea) FROM country WHERE Region IN ('Southern and Central Asian region', 'Southern and Central Asia', 'Southern Asia and Central Asia region', 'Indo-Gangetic Plain', 'Region of Southern and Central Asia')" + }, + { + "db_id": "world_1", + "question": "What is the total surface area of the countries in the British Islands region?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"British Islands\"", + "amb_query": "SELECT SUM(SurfaceArea) FROM country WHERE Region IN ('British Isles', 'British Islands')" + }, + { + "db_id": "world_1", + "question": "What is the average expected life expectancy for countries in the region of Southern Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Southern Africa\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Region IN ('Southern Africa area', 'Southern Africa', 'Angola')" + }, + { + "db_id": "world_1", + "question": "What is the average expected life expectancy for countries in the region of Polynesia?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Polynesia\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Region IN ('Polynesia', 'Polynesia, South Pacific', 'Polynesia area', 'Tuvalu')" + }, + { + "db_id": "world_1", + "question": "How long is the people’s average life expectancy in Baltic Countries?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Baltic Countries\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Region IN ('Baltic Countries', 'Gulf of Finland', 'Baltic nations')" + }, + { + "db_id": "world_1", + "question": "How long is the people’s average life expectancy in South America?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"South America\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Region IN ('Caribbean coast of Colombia', 'South American countries', 'Gran Chaco', 'South America')" + }, + { + "db_id": "world_1", + "question": "What is the total surface area of the countries in the Caribbean region?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "amb_query": "SELECT SUM(SurfaceArea) FROM country WHERE Region IN ('Dominican Republic', 'Caribbean area', 'Caribbean region', 'Caribbean Sea region', 'Caribbean', 'Cuba')" + }, + { + "db_id": "world_1", + "question": "What is the average expected life expectancy for countries in the region of Central Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Region IN ('South Sudan', 'Central Africa', 'Central Africa area', 'Central Africa countries', 'Democratic Republic of the Congo')" + }, + { + "db_id": "world_1", + "question": "How long is the people’s average life expectancy in Central Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "amb_query": "SELECT AVG(LifeExpectancy) FROM country WHERE Region IN ('South Sudan', 'Central Africa', 'Central Africa area', 'Central Africa countries', 'Democratic Republic of the Congo')" + }, + { + "db_id": "world_1", + "question": "What is the name of country that has the shortest life expectancy in Antarctica?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Antarctica\" ORDER BY LifeExpectancy LIMIT 1", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('the continent of Antarctica', 'Antarctica, the land of ice', 'Antarctica') ORDER BY LifeExpectancy LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the name of country that has the shortest life expectancy in Asia?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') ORDER BY LifeExpectancy LIMIT 1" + }, + { + "db_id": "world_1", + "question": "Give the name of the country in Asia with the lowest life expectancy.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') ORDER BY LifeExpectancy LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the total population and maximum GNP in Asia?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", + "amb_query": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia')" + }, + { + "db_id": "world_1", + "question": "How many people live in Asia, and what is the largest GNP among them?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", + "amb_query": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia')" + }, + { + "db_id": "world_1", + "question": "What is the total surface area of the continents Asia and Europe?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "amb_query": "SELECT SUM(SurfaceArea) FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') OR Continent IN ('European countries', 'Europe region', 'Europe area', 'Europe')" + }, + { + "db_id": "world_1", + "question": "Give the total surface area covered by countries in Asia or Europe.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "amb_query": "SELECT SUM(SurfaceArea) FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') OR Continent IN ('European countries', 'Europe region', 'Europe area', 'Europe')" + }, + { + "db_id": "world_1", + "question": "Which language is the most popular on the Asian continent?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What is the language that is used by the largest number of Asian nations?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", + "amb_query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "Find the name, population and expected life length of asian country with the largest area?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "amb_query": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') ORDER BY SurfaceArea DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What are the name, population, and life expectancy of the largest Asian country by land?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "amb_query": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') ORDER BY SurfaceArea DESC LIMIT 1" + }, + { + "db_id": "world_1", + "question": "What are the African countries that have a population less than any country in Asia?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region') AND population < (SELECT MAX(population) FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia'))" + }, + { + "db_id": "world_1", + "question": "Which African countries have a smaller population than that of any country in Asia?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region') AND population < (SELECT MIN(population) FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia'))" + }, + { + "db_id": "world_1", + "question": "Which Asian countries have a population that is larger than any country in Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') AND population > (SELECT MAX(population) FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region'))" + }, + { + "db_id": "world_1", + "question": "What are the Asian countries which have a population larger than that of any country in Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")", + "amb_query": "SELECT Name FROM country WHERE Continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia') AND population > (SELECT MIN(population) FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region'))" + }, + { + "db_id": "world_1", + "question": "how many countries are in Asia?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia')" + }, + { + "db_id": "world_1", + "question": "Count the number of countries in Asia.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "amb_query": "SELECT COUNT(*) FROM country WHERE continent IN ('Asia', 'Asian continent', 'Asia region', 'the continent of Asia', 'Asia-Pacific', 'asia')" + }, + { + "db_id": "world_1", + "question": "How many type of governments are in Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "amb_query": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region')" + }, + { + "db_id": "world_1", + "question": "How many different forms of governments are there in Africa?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "amb_query": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent IN ('African continent', 'Africa', 'African nations', 'Africa region')" + }, + { + "db_id": "world_1", + "question": "What are the countries that have greater surface area than any country in Europe?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "amb_query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent IN ('European countries', 'Europe region', 'Europe area', 'Europe'))" + }, + { + "db_id": "world_1", + "question": "Which countries have greater area than that of any country in Europe?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "amb_query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent IN ('European countries', 'Europe region', 'Europe area', 'Europe'))" + }, + { + "db_id": "world_1", + "question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "amb_query": "SELECT Name FROM country WHERE continent IN ('European countries', 'Europe region', 'Europe area', 'Europe') AND Population = '80000'" + }, + { + "db_id": "world_1", + "question": "Give the names of countries that are in Europe and have a population equal to 80000.", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "amb_query": "SELECT Name FROM country WHERE continent IN ('European countries', 'Europe region', 'Europe area', 'Europe') AND Population = '80000'" + }, + { + "db_id": "world_1", + "question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "amb_query": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent IN ('north america', 'North America region', 'North America area', 'North American continent') AND surfacearea > 3000" + }, + { + "db_id": "world_1", + "question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "amb_query": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent IN ('north america', 'North America region', 'North America area', 'North American continent') AND surfacearea > 3000" + }, + { + "db_id": "world_1", + "question": "How many people live in Outer Harbour district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Outer Harbour\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Outer Harbour', 'Outer Harbour district')" + }, + { + "db_id": "world_1", + "question": "How many people live in Taejon district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Taejon\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Taejon', 'Taejon district, South Korea')" + }, + { + "db_id": "world_1", + "question": "How many people live in Niger district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Niger\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Niger', 'Niger district')" + }, + { + "db_id": "world_1", + "question": "How many people live in Khuzestan district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Khuzestan\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Khuzestan district, Iran', 'Khuzestan', 'Khuzestan Province', 'Khuzestan region')" + }, + { + "db_id": "world_1", + "question": "How many people live in Jaroslavl district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Jaroslavl\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Jaroslavl', 'Jaroslavl region', 'Jaroslavl, Russia')" + }, + { + "db_id": "world_1", + "question": "How many people live in Atlántida district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Atlántida\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Atlántida', 'Atlántida region')" + }, + { + "db_id": "world_1", + "question": "How many people live in Thiès district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Thiès\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Thiès', 'Thiès district, Senegal')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Chhatisgarh district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Chhatisgarh\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Chhatisgarh', 'Chhatisgarh district, India')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Shizuoka district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Shizuoka\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Shizuoka area', 'Shizuoka, Japan', 'Shizuoka', 'Shizuoka district, Japan')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Lambayeque district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Lambayeque\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Lambayeque Province', 'Lambayeque')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Samara district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Samara\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Samara', 'Samara district')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Alagoas district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Alagoas\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District = 'Alagoas'" + }, + { + "db_id": "world_1", + "question": "What is the total population of Eastern Cape district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Eastern Cape\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Eastern Cape, South Africa', 'Eastern Cape', 'Eastern Cape Province')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Aragua district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Aragua\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Aragua state', 'Aragua', 'Aragua, Venezuela')" + }, + { + "db_id": "world_1", + "question": "How many people live in Gelderland district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Gelderland', 'Gelderland, Netherlands')" + }, + { + "db_id": "world_1", + "question": "What is the total population of Gelderland district?", + "evidence": "", + "schema_text_wo_content": "\nTable city, columns = [`id` (id), `name` (name), `countrycode` (country code), `district` (district), `population` (population)]\nTable sqlite_sequence, columns = [`name` (name), `seq` (seq)]\nTable country, columns = [`code` (code), `name` (name), `continent` (continent), `region` (region), `surfacearea` (surface area), `indepyear` (indepdent year), `population` (population), `lifeexpectancy` (life expectancy), `gnp` (gnp), `gnpold` (gnp old), `localname` (local name), `governmentform` (government form), `headofstate` (head of state), `capital` (capital), `code2` (code2)]\nTable countrylanguage, columns = [`countrycode` (countrycode), `language` (language), `isofficial` (is official), `percentage` (percentage)]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "schema_text_with_content": "\nTable city, columns = [`id` (id. Example values: [129, 1, 2]), `name` (name. Example values: [Kabul, Qandahar, Herat]), `countrycode` (country code. Example values: [ABW, AFG, AGO]), `district` (district. Example values: [Kabol, Qandahar, Herat]), `population` (population. Example values: [1780000, 237500, 186800])]\nTable sqlite_sequence, columns = [`name` (name. Example values: [city]), `seq` (seq. Example values: [4079])]\nTable country, columns = [`code` (code. Example values: [ABW, AFG, AGO]), `name` (name. Example values: [Aruba, Afghanistan, Angola]), `continent` (continent. Example values: [North American continent, Asian continent, African continent]), `region` (region. Example values: [Cuba, Region of Southern and Central Asia, South Sudan]), `surfacearea` (surface area. Example values: [193.0, 652090.0, 1246700.0]), `indepyear` (indepdent year. Example values: [None, 1919, 1975]), `population` (population. Example values: [103000, 22720000, 12878000]), `lifeexpectancy` (life expectancy. Example values: [78.4, 45.9, 38.3]), `gnp` (gnp. Example values: [828.0, 5976.0, 6648.0]), `gnpold` (gnp old. Example values: [793.0, None, 7984.0]), `localname` (local name. Example values: [Aruba, Afganistan/Afqanestan, Angola]), `governmentform` (government form. Example values: [Nonmetropolitan Territory of The Netherlands, Islamic Emirate, Republic form of government]), `headofstate` (head of state. Example values: [Beatrix, Mohammad Omar, José Eduardo dos Santos]), `capital` (capital. Example values: [129, 1, 56]), `code2` (code2. Example values: [AW, AF, AO])]\nTable countrylanguage, columns = [`countrycode` (countrycode. Example values: [ABW, AFG, AGO]), `language` (language. Example values: [Dutch dialect, English-speaking, Papiamento]), `isofficial` (is official. Example values: [true, F, official]), `percentage` (percentage. Example values: [5.3, 9.5, 76.7])]\nforeign keys = [city.CountryCode = country.Code, countrylanguage.CountryCode = country.Code]", + "ori_query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "amb_query": "SELECT SUM(Population) FROM city WHERE District IN ('Gelderland', 'Gelderland, Netherlands')" + }, + { + "db_id": "formula_1", + "question": "How old is the youngest Swiss driver? What is his name?", + "evidence": "date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; Japanese refers to nationality = 'Japanese'; age = YEAR(CURRENT_TIMESTAMP) - YEAR(dob);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Swiss' ORDER BY dob DESC LIMIT 1", + "amb_query": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP()) - STRFTIME('%Y', dob), forename, surname FROM drivers WHERE nationality IN ('Swiss nationality', 'Swiss racer', 'Swiss driver', 'Swiss') ORDER BY dob DESC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "How old is the youngest Danish driver? What is his name?", + "evidence": "date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; Japanese refers to nationality = 'Japanese'; age = YEAR(CURRENT_TIMESTAMP) - YEAR(dob);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Danish' ORDER BY dob DESC LIMIT 1", + "amb_query": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP()) - STRFTIME('%Y', dob), forename, surname FROM drivers WHERE nationality IN ('Danish driver', 'Danish nationality', 'Danish', 'Denmark nationality') ORDER BY dob DESC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "Please calculate the race completion percentage of Colombian drivers from 2007 to 2009.", + "evidence": "from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100; ", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Colombian' AND T2.year BETWEEN 2007 AND 2009", + "amb_query": "SELECT CAST(SUM(IIF(NOT T1.time IS NULL, 1, 0)) AS FLOAT) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T3.nationality IN ('Colombian', 'Drivers from Colombia') AND T2.year BETWEEN 2007 AND 2009" + }, + { + "db_id": "formula_1", + "question": "Please calculate the race completion percentage of Venezuelan drivers from 2007 to 2009.", + "evidence": "from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100; ", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Venezuelan' AND T2.year BETWEEN 2007 AND 2009", + "amb_query": "SELECT CAST(SUM(IIF(NOT T1.time IS NULL, 1, 0)) AS FLOAT) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T3.nationality IN ('Venezuelan nationality', 'Venezuelan', 'drivers from Venezuela', 'Venezuelan drivers') AND T2.year BETWEEN 2007 AND 2009" + }, + { + "db_id": "formula_1", + "question": "Please calculate the race completion percentage of Argentine-Italian drivers from 2007 to 2009.", + "evidence": "from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100; ", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Argentine-Italian' AND T2.year BETWEEN 2007 AND 2009", + "amb_query": "SELECT CAST(SUM(IIF(NOT T1.time IS NULL, 1, 0)) AS FLOAT) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T3.nationality IN ('Argentine-Italian', 'drivers of Argentine-Italian nationality') AND T2.year BETWEEN 2007 AND 2009" + }, + { + "db_id": "formula_1", + "question": "List out top 3 Malaysian drivers who were born from 1980-1990 and have the earliest lap time.", + "evidence": "born from 1980-1990 refers to year(dob) between 1980 and 1990; earliest lap time refers to Min(time);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Malaysian' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1990' ORDER BY T1.time LIMIT 3", + "amb_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('Malaysian', 'Malaysian driver') AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1990' ORDER BY T1.time LIMIT 3" + }, + { + "db_id": "formula_1", + "question": "List out top 3 Finnish drivers who were born from 1980-1990 and have the earliest lap time.", + "evidence": "born from 1980-1990 refers to year(dob) between 1980 and 1990; earliest lap time refers to Min(time);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Finnish' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1990' ORDER BY T1.time LIMIT 3", + "amb_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('Finnish drivers', 'Finnish nationality', 'Finnish', 'drivers of Finnish origin') AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1990' ORDER BY T1.time LIMIT 3" + }, + { + "db_id": "formula_1", + "question": "Please state the reference name of the oldest Rhodesian driver.", + "evidence": "oldest refers to MIN(year(dob)); reference names appear in drverRef.", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT driverRef FROM drivers WHERE nationality = 'Rhodesian' ORDER BY JULIANDAY(dob) ASC LIMIT 1", + "amb_query": "SELECT driverRef FROM drivers WHERE nationality IN ('Rhodesian citizen', 'Rhodesian', 'driver from Rhodesia', 'Rhodesian nationality') ORDER BY JULIANDAY(dob) ASC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "Please state the reference name of the oldest Indian driver.", + "evidence": "oldest refers to MIN(year(dob)); reference names appear in drverRef.", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT driverRef FROM drivers WHERE nationality = 'Indian' ORDER BY JULIANDAY(dob) ASC LIMIT 1", + "amb_query": "SELECT driverRef FROM drivers WHERE nationality IN ('Indian', 'Indian citizen') ORDER BY JULIANDAY(dob) ASC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "List down top 3 Canadian drivers who has the shortest average pit stop duration and were born between 1980-1985.", + "evidence": "Full name of the driver refers to drivers.forename and drivers.surname; born between 1980-1985 refers to 1980< year(dob)>1985; Average pitstop duration refers to Divide(SUM(duration),COUNT(duration)); shortest average refers to Min(avg(duration));", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Canadian' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3", + "amb_query": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('Canadian nationality', 'Canadian driver', 'drivers from Canada', 'Canadian') AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3" + }, + { + "db_id": "formula_1", + "question": "List down top 3 Russian drivers who has the shortest average pit stop duration and were born between 1980-1985.", + "evidence": "Full name of the driver refers to drivers.forename and drivers.surname; born between 1980-1985 refers to 1980< year(dob)>1985; Average pitstop duration refers to Divide(SUM(duration),COUNT(duration)); shortest average refers to Min(avg(duration));", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Russian' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3", + "amb_query": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('drivers from Russia', 'Russian') AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3" + }, + { + "db_id": "formula_1", + "question": "Find the full name, Wiki Pedia page link, and date of birth of Australian drivers born between 1971 and 1985. List it in descending order of date of birth.", + "evidence": "FFull name refers to forname+surname; Nationality refers to German; Date of birth refers to dob; year(dob) BETWEEN '1971' AND '1985'", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT forename, surname, url, dob FROM drivers WHERE nationality = 'Australian' AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC", + "amb_query": "SELECT forename, surname, url, dob FROM drivers WHERE nationality IN ('Australian', 'Australian drivers', 'Australian nationality', 'Aussie drivers') AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC" + }, + { + "db_id": "formula_1", + "question": "List out top 10 Thai drivers who were born before 1982 and have the latest lap time.", + "evidence": "born before 1982 refers to year(dob) < 1982; latest lap time refers to Max(time);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Thai' AND STRFTIME('%Y', T2.dob) < '1982' ORDER BY T1.time DESC LIMIT 10", + "amb_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('Thai', 'Thai driver') AND STRFTIME('%Y', T2.dob) < '1982' ORDER BY T1.time DESC LIMIT 10" + }, + { + "db_id": "formula_1", + "question": "Please list the surnames of all the Brazilian drivers.", + "evidence": "Italian refers to nationality = 'italian'", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT surname FROM drivers WHERE nationality = 'Brazilian'", + "amb_query": "SELECT surname FROM drivers WHERE nationality IN ('Brazilian drivers', 'Brazilian', 'drivers from Brazil', 'Brazilian citizens')" + }, + { + "db_id": "formula_1", + "question": "How old is the youngest Japanese driver? What is his name?", + "evidence": "date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; Japanese refers to nationality = 'Japanese'; age = YEAR(CURRENT_TIMESTAMP) - YEAR(dob);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1", + "amb_query": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP()) - STRFTIME('%Y', dob), forename, surname FROM drivers WHERE nationality IN ('Japanese', 'Japanese dialect', 'Japanese text') ORDER BY dob DESC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "Please calculate the race completion percentage of Japanese drivers from 2007 to 2009.", + "evidence": "from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(DriverID where time is not null and year between 2007 and 2009),Count (DriverID where year between 2007 and 2009))*100; ", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Japanese' AND T2.year BETWEEN 2007 AND 2009", + "amb_query": "SELECT CAST(SUM(IIF(NOT T1.time IS NULL, 1, 0)) AS FLOAT) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T3.nationality IN ('Japanese', 'Japanese dialect', 'Japanese text') AND T2.year BETWEEN 2007 AND 2009" + }, + { + "db_id": "formula_1", + "question": "List out top 3 German drivers who were born from 1980-1990 and have the earliest lap time.", + "evidence": "born from 1980-1990 refers to year(dob) between 1980 and 1990; earliest lap time refers to Min(time);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1990' ORDER BY T1.time LIMIT 3", + "amb_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1990' ORDER BY T1.time LIMIT 3" + }, + { + "db_id": "formula_1", + "question": "Please state the reference name of the oldest German driver.", + "evidence": "oldest refers to MIN(year(dob)); reference names appear in drverRef.", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT driverRef FROM drivers WHERE nationality = 'German' ORDER BY JULIANDAY(dob) ASC LIMIT 1", + "amb_query": "SELECT driverRef FROM drivers WHERE nationality = 'German' ORDER BY JULIANDAY(dob) ASC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "List down top 3 German drivers who has the shortest average pit stop duration and were born between 1980-1985.", + "evidence": "Full name of the driver refers to drivers.forename and drivers.surname; born between 1980-1985 refers to 1980< year(dob)>1985; Average pitstop duration refers to Divide(SUM(duration),COUNT(duration)); shortest average refers to Min(avg(duration));", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3", + "amb_query": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND STRFTIME('%Y', T2.dob) BETWEEN '1980' AND '1985' GROUP BY T2.forename, T2.surname ORDER BY AVG(T1.duration) LIMIT 3" + }, + { + "db_id": "formula_1", + "question": "Find the full name, Wiki Pedia page link, and date of birth of German drivers born between 1971 and 1985. List it in descending order of date of birth.", + "evidence": "FFull name refers to forname+surname; Nationality refers to German; Date of birth refers to dob; year(dob) BETWEEN '1971' AND '1985'", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT forename, surname, url, dob FROM drivers WHERE nationality = 'German' AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC", + "amb_query": "SELECT forename, surname, url, dob FROM drivers WHERE nationality = 'German' AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC" + }, + { + "db_id": "formula_1", + "question": "How many French drivers who obtain the laptime less than 02:00.00?", + "evidence": "lap time less than 02:00.00 refers to seconds < 120;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T1.driverId) FROM drivers AS T1 INNER JOIN lapTimes AS T2 on T1.driverId = T2.driverId WHERE T1.nationality = 'French' AND (CAST(SUBSTR(T2.time, 1, 2) AS INTEGER) * 60 + CAST(SUBSTR(T2.time, 4, 2) AS INTEGER) + CAST(SUBSTR(T2.time, 7, 2) AS REAL) / 1000) < 120", + "amb_query": "SELECT COUNT(T1.driverId) FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T1.nationality IN ('French', 'French language', 'Français', 'Language French') AND (CAST(SUBSTR(T2.time, 1, 2) AS INT) * 60 + CAST(SUBSTR(T2.time, 4, 2) AS INT) + CAST(SUBSTR(T2.time, 7, 2) AS FLOAT) / 1000) < 120" + }, + { + "db_id": "formula_1", + "question": "List out top 10 Spanish drivers who were born before 1982 and have the latest lap time.", + "evidence": "born before 1982 refers to year(dob) < 1982; latest lap time refers to Max(time);", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Spanish' AND STRFTIME('%Y', T2.dob) < '1982' ORDER BY T1.time DESC LIMIT 10", + "amb_query": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('Spanish', 'Español') AND STRFTIME('%Y', T2.dob) < '1982' ORDER BY T1.time DESC LIMIT 10" + }, + { + "db_id": "formula_1", + "question": "Please list the surnames of all the Italian drivers.", + "evidence": "Italian refers to nationality = 'italian'", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT surname FROM drivers WHERE nationality = 'Italian'", + "amb_query": "SELECT surname FROM drivers WHERE nationality IN ('Italian dialect', 'Italian language', 'Italian')" + }, + { + "db_id": "formula_1", + "question": "How many Italian drivers haven't finished the race?", + "evidence": "haven't finished the race refers to time is null;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T1.driverId) FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Italian' AND T1.time IS NULL", + "amb_query": "SELECT COUNT(T1.driverId) FROM results AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality IN ('Italian dialect', 'Italian language', 'Italian') AND T1.time IS NULL" + }, + { + "db_id": "formula_1", + "question": "How many drivers from the UN participated in the 2008 Australian Grand Prix?", + "evidence": "from the UN refers to nationality = 'British'", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(*) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T3.name = 'Australian Grand Prix' AND T1.nationality = 'British' AND T3.year = 2008", + "amb_query": "SELECT COUNT(*) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T3.name = 'Australian Grand Prix' AND T1.nationality IN ('UK drivers', 'British', 'drivers of British descent', 'British drivers') AND T3.year = 2008" + }, + { + "db_id": "formula_1", + "question": "How many British drivers were born after 1980?", + "evidence": "born after 1980 refers to year (dob) >1980;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(driverId) FROM drivers WHERE nationality = 'British' AND STRFTIME('%Y', dob) > '1980'", + "amb_query": "SELECT COUNT(driverId) FROM drivers WHERE nationality IN ('UK drivers', 'British', 'drivers of British descent', 'British drivers') AND STRFTIME('%Y', dob) > '1980'" + }, + { + "db_id": "formula_1", + "question": "How many British drivers who were born in 1980?", + "evidence": "born in 1980 refers to year(dob) = 1980;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(driverId) FROM drivers WHERE nationality = 'British' AND STRFTIME('%Y', dob) = '1980'", + "amb_query": "SELECT COUNT(driverId) FROM drivers WHERE nationality IN ('UK drivers', 'British', 'drivers of British descent', 'British drivers') AND STRFTIME('%Y', dob) = '1980'" + }, + { + "db_id": "formula_1", + "question": "How many American drivers have puncture status.", + "evidence": "puncture status refers to status = Puncture;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T1.driverId) FROM drivers AS T1 INNER JOIN results AS T2 on T1.driverId = T2.driverId INNER JOIN status AS T3 on T2.statusId = T3.statusId WHERE T3.status = 'Puncture' AND T1.nationality = 'American'", + "amb_query": "SELECT COUNT(T1.driverId) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN status AS T3 ON T2.statusId = T3.statusId WHERE T3.status IN ('Flat tire', 'Puncture') AND T1.nationality IN ('drivers from America', 'American', 'drivers with American citizenship', 'American nationality')" + }, + { + "db_id": "formula_1", + "question": "What is the full name and date of birth of Austrian drivers born between 1981 and 1991?", + "evidence": "Full name refers to forname, surname; Date of birth refers to dob; year(dob) BETWEEN '1981' AND '1991'; Austrian is a nationality", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT forename, surname, dob FROM drivers WHERE nationality = 'Austrian' AND STRFTIME('%Y', dob) BETWEEN '1981' AND '1991'", + "amb_query": "SELECT forename, surname, dob FROM drivers WHERE nationality IN ('Drivers of Austrian descent', 'Austrian', 'Drivers from Austria', 'Austrian nationality') AND STRFTIME('%Y', dob) BETWEEN '1981' AND '1991'" + }, + { + "db_id": "formula_1", + "question": "Please list the year during which the race is held on circuits in Nevada.", + "evidence": "Shanghai is a name of location;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Nevada'", + "amb_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location IN ('Silver State', 'Nevada')" + }, + { + "db_id": "formula_1", + "question": "Please list the year during which the race is held on circuits in Monte-Carlo.", + "evidence": "Shanghai is a name of location;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Monte-Carlo'", + "amb_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location IN ('Monte-Carlo', 'Monte-Carlo, Monaco')" + }, + { + "db_id": "formula_1", + "question": "Please list the year during which the race is held on circuits in Casablanca.", + "evidence": "Shanghai is a name of location;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Casablanca'", + "amb_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location IN ('Casablanca, North Africa', 'Casablanca')" + }, + { + "db_id": "formula_1", + "question": "Please list the year during which the race is held on circuits in Budapest.", + "evidence": "Shanghai is a name of location;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Budapest'", + "amb_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location IN ('Budapest, the capital of Hungary', 'Budapest')" + }, + { + "db_id": "formula_1", + "question": "Please list the year during which the race is held on circuits in Shanghai.", + "evidence": "Shanghai is a name of location;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Shanghai'", + "amb_query": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location IN ('Shanghai circuit', 'Shanghai')" + }, + { + "db_id": "formula_1", + "question": "How many circuits are there in Adelaide, Australia?", + "evidence": "Australia is the country; Melbourne is the location of circuit;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(circuitId) FROM circuits WHERE location = 'Adelaide' AND country = 'Australia'", + "amb_query": "SELECT COUNT(circuitId) FROM circuits WHERE location IN ('Adelaide', 'Adelaide, South Australia') AND country IN ('Australia, the land down under', 'Australia', 'Australia, the country of kangaroos')" + }, + { + "db_id": "formula_1", + "question": "Please give the name of the race held on the circuits in Hungary.", + "evidence": "Germany is a name of country;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Hungary'", + "amb_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Hungary', 'Hungary, Central Europe')" + }, + { + "db_id": "formula_1", + "question": "Please give the name of the race held on the circuits in Russia.", + "evidence": "Germany is a name of country;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Russia'", + "amb_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Russia', 'Russia country')" + }, + { + "db_id": "formula_1", + "question": "Among all European Grand Prix races, what is the percentage of the races were hosted in Netherlands?", + "evidence": "European Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T1.country = 'Netherlands' THEN T2.circuitID END) AS REAL) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T1.country IN ('Netherlands', 'Holland') THEN T2.circuitID END) AS FLOAT) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'" + }, + { + "db_id": "formula_1", + "question": "Among all European Grand Prix races, what is the percentage of the races were hosted in India?", + "evidence": "European Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T1.country = 'India' THEN T2.circuitID END) AS REAL) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T1.country IN ('Indian subcontinent', 'India') THEN T2.circuitID END) AS FLOAT) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'" + }, + { + "db_id": "formula_1", + "question": "Please give the names of the races held on the circuits in Korea.", + "evidence": "Spain is a name of country;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Korea'", + "amb_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Korea, Asia', 'Korea')" + }, + { + "db_id": "formula_1", + "question": "Please give the names of the races held on the circuits in Switzerland.", + "evidence": "Spain is a name of country;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Switzerland'", + "amb_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Switzerland', 'Switzerland, Europe')" + }, + { + "db_id": "formula_1", + "question": "List circuits in Bahrain which hosted f1 races in 2006. State the name and location of circuit and the name of the race it hosted.", + "evidence": "", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Bahrain' AND T2.year = 2006", + "amb_query": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Bahrain', 'Bahrain, Middle East') AND T2.year = 2006" + }, + { + "db_id": "formula_1", + "question": "List circuits in UAE which hosted f1 races in 2006. State the name and location of circuit and the name of the race it hosted.", + "evidence": "", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'UAE' AND T2.year = 2006", + "amb_query": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('UAE', 'UAE, Middle East') AND T2.year = 2006" + }, + { + "db_id": "formula_1", + "question": "How many Formula_1 races took place on the circuits in Turkey?", + "evidence": "", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Turkey'", + "amb_query": "SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Turkey, a nation in the Middle East', 'Turkey')" + }, + { + "db_id": "formula_1", + "question": "Please list the lap records for the circuits in Singapore.", + "evidence": "lap record means the fastest time recorded which refers to time", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "WITH fastest_lap_times AS (SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) as time_in_seconds FROM results AS T1 WHERE T1.FastestLapTime IS NOT NULL ) SELECT T1.FastestLapTime as lap_record FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId INNER JOIN (SELECT MIN(fastest_lap_times.time_in_seconds) as min_time_in_seconds FROM fastest_lap_times INNER JOIN races AS T2 on fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId WHERE T3.country = 'Singapore' ) AS T4 ON (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) = T4.min_time_in_seconds LIMIT 1", + "amb_query": "WITH fastest_lap_times AS (SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT) * 60) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, ':') + 1, STR_POSITION(T1.FastestLapTime, '.') - STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT)) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, '.') + 1) AS FLOAT) / 1000) AS time_in_seconds FROM results AS T1 WHERE NOT T1.FastestLapTime IS NULL) SELECT T1.FastestLapTime AS lap_record FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId INNER JOIN (SELECT MIN(fastest_lap_times.time_in_seconds) AS min_time_in_seconds FROM fastest_lap_times INNER JOIN races AS T2 ON fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T3.country IN ('Singapore', 'Singapore, Southeast Asia')) AS T4 ON (CAST(SUBSTR(T1.FastestLapTime, 1, STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT) * 60) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, ':') + 1, STR_POSITION(T1.FastestLapTime, '.') - STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT)) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, '.') + 1) AS FLOAT) / 1000) = T4.min_time_in_seconds LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "Please give the name of the race held on the circuits in Germany.", + "evidence": "Germany is a name of country;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'", + "amb_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('German Republic', 'Germany, Europe', 'Germany')" + }, + { + "db_id": "formula_1", + "question": "Among all European Grand Prix races, what is the percentage of the races were hosted in Germany?", + "evidence": "European Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T1.country = 'Germany' THEN T2.circuitID END) AS REAL) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T1.country IN ('German Republic', 'Germany, Europe', 'Germany') THEN T2.circuitID END) AS FLOAT) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix'" + }, + { + "db_id": "formula_1", + "question": "Please give the names of the races held on the circuits in Spain.", + "evidence": "Spain is a name of country;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Spain'", + "amb_query": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Spanish', 'Spain, Europe', 'Spain country', 'Spain', 'the country of Spain')" + }, + { + "db_id": "formula_1", + "question": "List circuits in USA which hosted f1 races in 2006. State the name and location of circuit and the name of the race it hosted.", + "evidence": "", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'USA' AND T2.year = 2006", + "amb_query": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('US', 'United States of America', 'USA', 'USA country') AND T2.year = 2006" + }, + { + "db_id": "formula_1", + "question": "Please list the location coordinates of the US circuits.", + "evidence": "location coordinates refers to (lat, lng); the US refers to country = 'USA';", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT lat, lng FROM circuits WHERE country = 'USA'", + "amb_query": "SELECT lat, lng FROM circuits WHERE country IN ('US', 'United States of America', 'USA', 'USA country')" + }, + { + "db_id": "formula_1", + "question": "How many Formula_1 races took place on the circuits in Italy?", + "evidence": "", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Italy'", + "amb_query": "SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country IN ('Italy', 'Italian Republic', 'Italy country')" + }, + { + "db_id": "formula_1", + "question": "Please list the lap records for the circuits in Italy.", + "evidence": "lap record means the fastest time recorded which refers to time", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "WITH fastest_lap_times AS (SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) as time_in_seconds FROM results AS T1 WHERE T1.FastestLapTime IS NOT NULL ) SELECT T1.FastestLapTime as lap_record FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId INNER JOIN (SELECT MIN(fastest_lap_times.time_in_seconds) as min_time_in_seconds FROM fastest_lap_times INNER JOIN races AS T2 on fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId WHERE T3.country = 'Italy' ) AS T4 ON (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, '.') + 1) AS REAL) / 1000) = T4.min_time_in_seconds LIMIT 1", + "amb_query": "WITH fastest_lap_times AS (SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT) * 60) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, ':') + 1, STR_POSITION(T1.FastestLapTime, '.') - STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT)) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, '.') + 1) AS FLOAT) / 1000) AS time_in_seconds FROM results AS T1 WHERE NOT T1.FastestLapTime IS NULL) SELECT T1.FastestLapTime AS lap_record FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId INNER JOIN (SELECT MIN(fastest_lap_times.time_in_seconds) AS min_time_in_seconds FROM fastest_lap_times INNER JOIN races AS T2 ON fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T3.country IN ('Italy', 'Italian Republic', 'Italy country')) AS T4 ON (CAST(SUBSTR(T1.FastestLapTime, 1, STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT) * 60) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, ':') + 1, STR_POSITION(T1.FastestLapTime, '.') - STR_POSITION(T1.FastestLapTime, ':') - 1) AS FLOAT)) + (CAST(SUBSTR(T1.FastestLapTime, STR_POSITION(T1.FastestLapTime, '.') + 1) AS FLOAT) / 1000) = T4.min_time_in_seconds LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "What is the average lap time in milliseconds of all the lap records set on the various circuits in Italy?", + "evidence": "average = AVG(milliseconds)", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT CAST(SUM(T1.milliseconds) AS REAL) / COUNT(T1.lap) 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 T3.country = 'Italy'", + "amb_query": "SELECT CAST(SUM(T1.milliseconds) AS FLOAT) / COUNT(T1.lap) 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 T3.country IN ('Italy', 'Italian Republic', 'Italy country')" + }, + { + "db_id": "formula_1", + "question": "How many times the circuits were held in Austria? Please give their location and coordinates.", + "evidence": "location coordinates refers to (lat,lng); Austria refers to country = 'Austria';", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT DISTINCT location, lat, lng FROM circuits WHERE country = 'Austria'", + "amb_query": "SELECT DISTINCT location, lat, lng FROM circuits WHERE country IN ('Austria', 'Austria country')" + }, + { + "db_id": "formula_1", + "question": "How many Indian constructors have 0 points in 2 races?", + "evidence": "2 races refers to COUNT(raceID) = 2; Japanese refers to constructors.nationality = 'Japanese';", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality = 'Indian' GROUP BY T1.constructorId HAVING COUNT(raceId) = 2", + "amb_query": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality IN ('Indian', 'Indian driver') GROUP BY T1.constructorId HAVING COUNT(raceId) = 2" + }, + { + "db_id": "formula_1", + "question": "How many Australian constructors have a lap number of over 50?", + "evidence": "lap numbers of over 50 refers to laps > 50;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality = 'Australian'", + "amb_query": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality IN ('Australian', 'drivers from Australia')" + }, + { + "db_id": "formula_1", + "question": "How many East German constructors have 0 points in 2 races?", + "evidence": "2 races refers to COUNT(raceID) = 2; Japanese refers to constructors.nationality = 'Japanese';", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality = 'East German' GROUP BY T1.constructorId HAVING COUNT(raceId) = 2", + "amb_query": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality IN ('East German', 'East German nationality') GROUP BY T1.constructorId HAVING COUNT(raceId) = 2" + }, + { + "db_id": "formula_1", + "question": "How many Dutch constructors have a lap number of over 50?", + "evidence": "lap numbers of over 50 refers to laps > 50;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality = 'Dutch'", + "amb_query": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality IN ('Constructors from the Netherlands', 'Dutch', 'Dutch constructors')" + }, + { + "db_id": "formula_1", + "question": "Which of the German constructor got the highest point to date? Give its introduction website?", + "evidence": "introduction website refers to url; Italian is a nationality", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId WHERE T1.nationality = 'German' ORDER BY T2.points DESC LIMIT 1", + "amb_query": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality IN ('German constructor', 'German nationality', 'German') ORDER BY T2.points DESC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "Which of the New Zealand constructor got the highest point to date? Give its introduction website?", + "evidence": "introduction website refers to url; Italian is a nationality", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId WHERE T1.nationality = 'New Zealand' ORDER BY T2.points DESC LIMIT 1", + "amb_query": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality IN ('constructor from New Zealand', 'New Zealand') ORDER BY T2.points DESC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "What are the maximum points of Hong Kong constructors?", + "evidence": "maximum points = MAX(points); British is a nationality", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T2.nationality = 'Hong Kong'", + "amb_query": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T2.nationality IN ('Hongkong', 'Hong Kong')" + }, + { + "db_id": "formula_1", + "question": "How many Japanese constructors have 0 points in 2 races?", + "evidence": "2 races refers to COUNT(raceID) = 2; Japanese refers to constructors.nationality = 'Japanese';", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality = 'Japanese' GROUP BY T1.constructorId HAVING COUNT(raceId) = 2", + "amb_query": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality IN ('Nihongo', 'Japanese', 'Japanese dialect', 'Japan') GROUP BY T1.constructorId HAVING COUNT(raceId) = 2" + }, + { + "db_id": "formula_1", + "question": "How many French constructors have a lap number of over 50?", + "evidence": "lap numbers of over 50 refers to laps > 50;", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality = 'French'", + "amb_query": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality IN ('French', 'French language', 'Français')" + }, + { + "db_id": "formula_1", + "question": "Which of the Italian constructor got the highest point to date? Give its introduction website?", + "evidence": "introduction website refers to url; Italian is a nationality", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId WHERE T1.nationality = 'Italian' ORDER BY T2.points DESC LIMIT 1", + "amb_query": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality IN ('Italian text', 'Italian language', 'Italian') ORDER BY T2.points DESC LIMIT 1" + }, + { + "db_id": "formula_1", + "question": "What are the maximum points of British constructors?", + "evidence": "maximum points = MAX(points); British is a nationality", + "schema_text_wo_content": "\nTable circuits, columns = [`circuitid` (circuit id), `circuitref` (circuit reference name), `name` (name), `location` (location), `country` (country), `lat` (latitude), `lng` (longitude), `alt` (alt), `url` (url)]\nTable constructors, columns = [`constructorid` (constructor id), `constructorref` (constructor reference name), `name` (name), `nationality` (nationality), `url` (url)]\nTable drivers, columns = [`driverid` (driver id), `driverref` (driver reference name), `number` (number), `code` (code), `forename` (forename), `surname` (surname), `dob` (date of birth), `nationality` (nationality), `url` (url)]\nTable seasons, columns = [`year` (race id), `url` (url)]\nTable races, columns = [`raceid` (race id), `year` (year), `round` (round), `circuitid` (circuit id), `name` (name), `date` (date), `time` (time), `url` (url)]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `status` (status)]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id), `raceid` (race id), `constructorid` (constructor id), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id), `raceid` (constructor reference name), `driverid` (driverid), `points` (points), `position` (position), `positiontext` (position text), `wins` (wins)]\nTable lapTimes, columns = [`raceid` (race id), `driverid` (driver id), `lap` (lap), `position` (position), `time` (time), `milliseconds` (milliseconds)]\nTable pitStops, columns = [`raceid` (race id), `driverid` (driver id), `stop` (stop), `lap` (lap), `time` (time), `duration` (duration), `milliseconds` (milliseconds)]\nTable qualifying, columns = [`qualifyid` (qualify id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `position` (position), `q1` (qualifying 1), `q2` (qualifying 2), `q3` (qualifying 3)]\nTable status, columns = [`statusid` (status id), `status` (status)]\nTable results, columns = [`resultid` (result id), `raceid` (race id), `driverid` (driver id), `constructorid` (constructor id), `number` (number), `grid` (grid), `position` (position), `positiontext` (position text), `positionorder` (position order), `points` (points), `laps` (laps), `time` (time), `milliseconds` (milliseconds), `fastestlap` (fastest lap), `rank` (rank), `fastestlaptime` (fastest lap time), `fastestlapspeed` (fastest lap speed), `statusid` (status id)]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "schema_text_with_content": "\nTable circuits, columns = [`circuitid` (circuit id. Example values: [1, 2, 3]), `circuitref` (circuit reference name. Example values: [albert_park, sepang, bahrain]), `name` (name. Example values: [Albert Park Grand Prix Circuit, Sepang International Circuit, Bahrain International Circuit]), `location` (location. Example values: [Melbourne, Kuala Lumpur, Sakhir]), `country` (country. Example values: [Australia, the land down under, Malaysia, Bahrain, Middle East]), `lat` (latitude. Example values: [-37.8497, 2.76083, 26.0325]), `lng` (longitude. Example values: [144.968, 101.738, 50.5106]), `alt` (alt. Example values: [10, ]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit, http://en.wikipedia.org/wiki/Sepang_International_Circuit, http://en.wikipedia.org/wiki/Bahrain_International_Circuit])]\nTable constructors, columns = [`constructorid` (constructor id. Example values: [1, 2, 3]), `constructorref` (constructor reference name. Example values: [mclaren, bmw_sauber, williams]), `name` (name. Example values: [McLaren, BMW Sauber, Williams]), `nationality` (nationality. Example values: [UK drivers, German nationality, French language]), `url` (url. Example values: [http://en.wikipedia.org/wiki/McLaren, http://en.wikipedia.org/wiki/BMW_Sauber, http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering])]\nTable drivers, columns = [`driverid` (driver id. Example values: [1, 2, 3]), `driverref` (driver reference name. Example values: [hamilton, heidfeld, rosberg]), `number` (number. Example values: [44, , 6]), `code` (code. Example values: [HAM, HEI, ROS]), `forename` (forename. Example values: [Lewis, Nick, Nico]), `surname` (surname. Example values: [Hamilton, Heidfeld, Rosberg]), `dob` (date of birth. Example values: [07/01/1985, 10/05/1977, 27/06/1985]), `nationality` (nationality. Example values: [drivers of British descent, German, Español]), `url` (url. Example values: [http://en.wikipedia.org/wiki/Lewis_Hamilton, http://en.wikipedia.org/wiki/Nick_Heidfeld, http://en.wikipedia.org/wiki/Nico_Rosberg])]\nTable seasons, columns = [`year` (race id. Example values: [1950, 1951, 1952]), `url` (url. Example values: [http://en.wikipedia.org/wiki/1950_Formula_One_season, http://en.wikipedia.org/wiki/1951_Formula_One_season, http://en.wikipedia.org/wiki/1952_Formula_One_season])]\nTable races, columns = [`raceid` (race id. Example values: [1, 2, 3]), `year` (year. Example values: [2009, 2008, 2007]), `round` (round. Example values: [1, 2, 3]), `circuitid` (circuit id. Example values: [1, 2, 17]), `name` (name. Example values: [Australian Grand Prix, Malaysian Grand Prix, Chinese Grand Prix]), `date` (date. Example values: [2009-03-29, 2009-04-05, 2009-04-19]), `time` (time. Example values: [06:00:00, 09:00:00, 07:00:00]), `url` (url. Example values: [http://en.wikipedia.org/wiki/2009_Australian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Malaysian_Grand_Prix, http://en.wikipedia.org/wiki/2009_Chinese_Grand_Prix])]\nTable constructorResults, columns = [`constructorresultsid` (constructor results id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `status` (status. Example values: [NULL, D])]\nTable constructorStandings, columns = [`constructorstandingsid` (constructor standings id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `constructorid` (constructor id. Example values: [1, 2, 3]), `points` (points. Example values: [14.0, 8.0, 9.0]), `position` (position. Example values: [1, 3, 2]), `positiontext` (position text. Example values: [1, 3, 2]), `wins` (wins. Example values: [1, 0, 2])]\nTable driverStandings, columns = [`driverstandingsid` (driver standings id. Example values: [1, 2, 3]), `raceid` (constructor reference name. Example values: [18, 19, 20]), `driverid` (driverid. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `wins` (wins. Example values: [1, 0, 2])]\nTable lapTimes, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `lap` (lap. Example values: []), `position` (position. Example values: []), `time` (time. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable pitStops, columns = [`raceid` (race id. Example values: []), `driverid` (driver id. Example values: []), `stop` (stop. Example values: []), `lap` (lap. Example values: []), `time` (time. Example values: []), `duration` (duration. Example values: []), `milliseconds` (milliseconds. Example values: [])]\nTable qualifying, columns = [`qualifyid` (qualify id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 9, 5]), `constructorid` (constructor id. Example values: [1, 2, 6]), `number` (number. Example values: [22, 4, 23]), `position` (position. Example values: [1, 2, 3]), `q1` (qualifying 1. Example values: [1:26.572, 1:26.103, 1:25.664]), `q2` (qualifying 2. Example values: [1:25.187, 1:25.315, 1:25.452]), `q3` (qualifying 3. Example values: [1:26.714, 1:26.869, 1:27.079])]\nTable status, columns = [`statusid` (status id. Example values: [1, 2, 3]), `status` (status. Example values: [Finished, Disqualified, Accident])]\nTable results, columns = [`resultid` (result id. Example values: [1, 2, 3]), `raceid` (race id. Example values: [18, 19, 20]), `driverid` (driver id. Example values: [1, 2, 3]), `constructorid` (constructor id. Example values: [1, 2, 3]), `number` (number. Example values: [22, 3, 7]), `grid` (grid. Example values: [1, 5, 7]), `position` (position. Example values: [1, 2, 3]), `positiontext` (position text. Example values: [1, 2, 3]), `positionorder` (position order. Example values: [1, 2, 3]), `points` (points. Example values: [10.0, 8.0, 6.0]), `laps` (laps. Example values: [58, 57, 55]), `time` (time. Example values: [34:50.6, 5.478, 8.163]), `milliseconds` (milliseconds. Example values: [5690616, 5696094, 5698779]), `fastestlap` (fastest lap. Example values: [39, 41, 58]), `rank` (rank. Example values: [2, 3, 5]), `fastestlaptime` (fastest lap time. Example values: [01:27.5, 01:27.7, 01:28.1]), `fastestlapspeed` (fastest lap speed. Example values: [218.3, 217.586, 216.719]), `statusid` (status id. Example values: [1, 11, 5])]\nforeign keys = [races.circuitId = circuits.circuitId, races.year = seasons.year, constructorResults.constructorId = constructors.constructorId, constructorResults.raceId = races.raceId, constructorStandings.constructorId = constructors.constructorId, constructorStandings.raceId = races.raceId, driverStandings.driverId = drivers.driverId, driverStandings.raceId = races.raceId, lapTimes.driverId = drivers.driverId, lapTimes.raceId = races.raceId, pitStops.driverId = drivers.driverId, pitStops.raceId = races.raceId, qualifying.constructorId = constructors.constructorId, qualifying.driverId = drivers.driverId, qualifying.raceId = races.raceId, results.statusId = status.statusId, results.constructorId = constructors.constructorId, results.driverId = drivers.driverId, results.raceId = races.raceId]", + "ori_query": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T2.nationality = 'British'", + "amb_query": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId WHERE T2.nationality IN ('British nationality', 'drivers from Britain', 'British', 'UK drivers', 'British drivers')" + }, + { + "db_id": "orchestra", + "question": "What are the maximum and minimum share of performances whose type is not \"Auditions 3\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Auditions 3\"", + "amb_query": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE NOT TYPE IN ('Audition type 3', 'Auditions 3')" + }, + { + "db_id": "orchestra", + "question": "What are the maximum and minimum share of performances whose type is not \"Semi-final 3\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Semi-final 3\"", + "amb_query": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE NOT TYPE IN ('Semi-final round 3', 'Semi-final 3')" + }, + { + "db_id": "orchestra", + "question": "Return the maximum and minimum shares for performances that do not have the type \"Auditions 1\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Auditions 1\"", + "amb_query": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE NOT TYPE IN ('Auditions 1', 'Auditions performance 1')" + }, + { + "db_id": "orchestra", + "question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "amb_query": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE NOT TYPE IN ('Live final', 'Live final performance')" + }, + { + "db_id": "orchestra", + "question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "amb_query": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE NOT TYPE IN ('Live final', 'Live final performance')" + }, + { + "db_id": "orchestra", + "question": "What are the names of conductors whose nationalities are not \"USA\"?", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "amb_query": "SELECT Name FROM conductor WHERE NOT Nationality IN ('USA nation', 'USA', 'USA, North America', 'America')" + }, + { + "db_id": "orchestra", + "question": "Return the names of conductors that do not have the nationality \"USA\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "amb_query": "SELECT Name FROM conductor WHERE NOT Nationality IN ('USA nation', 'USA', 'USA, North America', 'America')" + }, + { + "db_id": "orchestra", + "question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "amb_query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format IN ('CD format', 'CD record', 'CD media', 'CD') OR Major_Record_Format IN ('DVD', 'Digital Video Disc')" + }, + { + "db_id": "orchestra", + "question": "Count the number of orchestras that have CD or DVD as their record format.", + "evidence": "", + "schema_text_wo_content": "\nTable conductor, columns = [`conductor_id` (conductor id), `name` (name), `age` (age), `nationality` (nationality), `year_of_work` (year of work)]\nTable orchestra, columns = [`orchestra_id` (orchestra id), `orchestra` (orchestra), `conductor_id` (conductor id), `record_company` (record company), `year_of_founded` (year of founded), `major_record_format` (major record format)]\nTable performance, columns = [`performance_id` (performance id), `orchestra_id` (orchestra id), `type` (type), `date` (date), `official_ratings_(millions)` (official ratings (millions)), `weekly_rank` (weekly rank), `share` (share)]\nTable show, columns = [`show_id` (show id), `performance_id` (performance id), `if_first_show` (if first show), `result` (result), `attendance` (attendance)]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "schema_text_with_content": "\nTable conductor, columns = [`conductor_id` (conductor id. Example values: [1, 2, 3]), `name` (name. Example values: [Antal Doráti, Igor Stravinsky, Colin Davis]), `age` (age. Example values: [40, 41, 42]), `nationality` (nationality. Example values: [USA nation, UK, USA]), `year_of_work` (year of work. Example values: [10, 11, 6])]\nTable orchestra, columns = [`orchestra_id` (orchestra id. Example values: [1, 2, 3]), `orchestra` (orchestra. Example values: [London Symphony Orchestra, Columbia Symphony Orchestra, Royal Concertgebouw Orchestra]), `conductor_id` (conductor id. Example values: [1, 2, 3]), `record_company` (record company. Example values: [Mercury Records, Columbia Masterworks, Philips]), `year_of_founded` (year of founded. Example values: [2003.0, 2009.0, 2008.0]), `major_record_format` (major record format. Example values: [CD record, CD / LP, CD format])]\nTable performance, columns = [`performance_id` (performance id. Example values: [1, 2, 3]), `orchestra_id` (orchestra id. Example values: [1, 2, 3]), `type` (type. Example values: [Auditions performance 1, Auditions 2, Audition type 3]), `date` (date. Example values: [9 June, 10 June, 11 June]), `official_ratings_(millions)` (official ratings (millions). Example values: [5.2, 6.73, 7.28]), `weekly_rank` (weekly rank. Example values: [12, 8, 15]), `share` (share. Example values: [22.7%, 28.0%, 29.4%])]\nTable show, columns = [`show_id` (show id. Example values: [1, 2, 3]), `performance_id` (performance id. Example values: [1, 2, 3]), `if_first_show` (if first show. Example values: [Glebe Park, Fir Park, St. Mirren Park]), `result` (result. Example values: [T, F]), `attendance` (attendance. Example values: [1026.0, 695.0, 555.0])]\nforeign keys = [orchestra.Conductor_ID = conductor.Conductor_ID, performance.Orchestra_ID = orchestra.Orchestra_ID, show.Performance_ID = performance.Performance_ID]", + "ori_query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "amb_query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format IN ('CD format', 'CD record', 'CD media', 'CD') OR Major_Record_Format IN ('DVD', 'Digital Video Disc')" + }, + { + "db_id": "dog_kennels", + "question": "Which professionals live in the state of Wyoming or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Wyoming' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "amb_query": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state IN ('Wyoming', 'WY, America') UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" + }, + { + "db_id": "dog_kennels", + "question": "Which professionals live in the state of Montana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Montana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "amb_query": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state IN ('Montana', 'MT, America') UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" + }, + { + "db_id": "dog_kennels", + "question": "Find the id, last name and cell phone of the professionals who live in the state of NewMexico or have performed more than two treatments.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'NewMexico' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "amb_query": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state IN ('NewMexico', 'State of New Mexico') UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" + }, + { + "db_id": "dog_kennels", + "question": "List the emails of the professionals who live in the state of Connecticut or the state of Alabama.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT email_address FROM Professionals WHERE state = 'Connecticut' OR state = 'Alabama'", + "amb_query": "SELECT email_address FROM Professionals WHERE state IN ('CT, America', 'Connecticut state', 'Connecticut') OR state IN ('Alabama', 'Alabama, United States')" + }, + { + "db_id": "dog_kennels", + "question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "amb_query": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state IN ('IN, America', 'Indiana region', 'Indiana') UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" + }, + { + "db_id": "dog_kennels", + "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "amb_query": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state IN ('IN, America', 'Indiana region', 'Indiana') UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" + }, + { + "db_id": "dog_kennels", + "question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "amb_query": "SELECT email_address FROM Professionals WHERE state IN ('US-HI state', 'Hawaii') OR state IN ('Wisconsin state', 'Wisconsin')" + }, + { + "db_id": "dog_kennels", + "question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "amb_query": "SELECT email_address FROM Professionals WHERE state IN ('US-HI state', 'Hawaii') OR state IN ('Wisconsin state', 'Wisconsin')" + }, + { + "db_id": "dog_kennels", + "question": "Which dogs are owned by someone who lives in Florida? List the owner's first name and the dog's name.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Florida'", + "amb_query": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state IN ('Florida', 'Florida, United States')" + }, + { + "db_id": "dog_kennels", + "question": "Which dogs are owned by someone who lives in Wisconsin? List the owner's first name and the dog's name.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Wisconsin'", + "amb_query": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state IN ('Badger State', 'Wisconsin')" + }, + { + "db_id": "dog_kennels", + "question": "Find the first names of owners living in Indiana and the names of dogs they own.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Indiana'", + "amb_query": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state IN ('IN, America', 'Indiana')" + }, + { + "db_id": "dog_kennels", + "question": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", + "amb_query": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state IN ('Virginia', 'Virginia state of the United States')" + }, + { + "db_id": "dog_kennels", + "question": "Find the first names of owners living in Virginia and the names of dogs they own.", + "evidence": "", + "schema_text_wo_content": "\nTable Breeds, columns = [`breed_code` (breed code), `breed_name` (breed name)]\nTable Charges, columns = [`charge_id` (charge id), `charge_type` (charge type), `charge_amount` (charge amount)]\nTable Sizes, columns = [`size_code` (size code), `size_description` (size description)]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code), `treatment_type_description` (treatment type description)]\nTable Owners, columns = [`owner_id` (owner id), `first_name` (first name), `last_name` (last name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Dogs, columns = [`dog_id` (dog id), `owner_id` (owner id), `abandoned_yn` (abandoned yes or no), `breed_code` (breed code), `size_code` (size code), `name` (name), `age` (age), `date_of_birth` (date of birth), `gender` (gender), `weight` (weight), `date_arrived` (date arrived), `date_adopted` (date adopted), `date_departed` (date departed)]\nTable Professionals, columns = [`professional_id` (professional id), `role_code` (role code), `first_name` (first name), `street` (street), `city` (city), `state` (state), `zip_code` (zip code), `last_name` (last name), `email_address` (email address), `home_phone` (home phone), `cell_number` (cell number)]\nTable Treatments, columns = [`treatment_id` (treatment id), `dog_id` (dog id), `professional_id` (professional id), `treatment_type_code` (treatment type code), `date_of_treatment` (date of treatment), `cost_of_treatment` (cost of treatment)]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "schema_text_with_content": "\nTable Breeds, columns = [`breed_code` (breed code. Example values: [BUL, ESK, HUS]), `breed_name` (breed name. Example values: [Eskimo, Husky, Bulldog])]\nTable Charges, columns = [`charge_id` (charge id. Example values: [1, 2, 3]), `charge_type` (charge type. Example values: [Daily Accommodation, Drugs, Health Check]), `charge_amount` (charge amount. Example values: [98, 322, 640])]\nTable Sizes, columns = [`size_code` (size code. Example values: [LGE, MED, SML]), `size_description` (size description. Example values: [Small, Medium, Large])]\nTable Treatment_Types, columns = [`treatment_type_code` (treatment type code. Example values: [EXAM, VAC, WALK]), `treatment_type_description` (treatment type description. Example values: [Physical examination, Vaccination, Take for a Walk])]\nTable Owners, columns = [`owner_id` (owner id. Example values: [1, 2, 3]), `first_name` (first name. Example values: [Nora, Melisa, Jaclyn]), `last_name` (last name. Example values: [Haley, DuBuque, Stoltenberg]), `street` (street. Example values: [0647 Hintz Village Apt. 024, 1204 Mae Highway Apt. 107, 2635 Caitlyn Plains]), `city` (city. Example values: [Lake Tia, Port Reannamouth, Barrettburgh]), `state` (state. Example values: [Badger State, Virginia state of the United States, Vermont]), `zip_code` (zip code. Example values: [93165, 45244, 02647]), `email_address` (email address. Example values: [lynn81@example.org, ykris@example.com, hudson.favian@example.com]), `home_phone` (home phone. Example values: [1-682-845-0116x63235, (799)563-0260x454, 916.976.9480x13851]), `cell_number` (cell number. Example values: [478.978.0729, (722)768-5439x484, 481-483-9083x37986])]\nTable Dogs, columns = [`dog_id` (dog id. Example values: [1, 2, 3]), `owner_id` (owner id. Example values: [3, 11, 1]), `abandoned_yn` (abandoned yes or no. Example values: [1, 0]), `breed_code` (breed code. Example values: [ESK, BUL, HUS]), `size_code` (size code. Example values: [LGE, MED, SML]), `name` (name. Example values: [Kacey, Hipolito, Mavis]), `age` (age. Example values: [6, 9, 8]), `date_of_birth` (date of birth. Example values: [2012-01-27 05:11:53, 2013-02-13 05:15:21, 2008-05-19 15:54:49]), `gender` (gender. Example values: [1, 0]), `weight` (weight. Example values: [7.57, 1.72, 8.04]), `date_arrived` (date arrived. Example values: [2017-09-08 20:10:13, 2017-12-22 05:02:02, 2017-06-25 10:14:05]), `date_adopted` (date adopted. Example values: [2018-03-06 16:32:11, 2018-03-25 08:12:51, 2018-03-07 21:45:43]), `date_departed` (date departed. Example values: [2018-03-25 06:58:44, 2018-03-25 02:11:32, 2018-03-25 10:25:46])]\nTable Professionals, columns = [`professional_id` (professional id. Example values: [1, 2, 3]), `role_code` (role code. Example values: [Employee, Veterenarian]), `first_name` (first name. Example values: [Taryn, Jayson, Olaf]), `street` (street. Example values: [6915 Oberbrunner Point Suite 491\nGleasonville, LA , 88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194, 68589 Bradly Manor\nNew Audrey, IN 91497]), `city` (city. Example values: [West Heidi, North Odellfurt, Jaceton]), `state` (state. Example values: [IN, America, Connecticut state, Wisconsin state]), `zip_code` (zip code. Example values: [06646, 43129, 77129]), `last_name` (last name. Example values: [Braun, Ullrich, Watsica]), `email_address` (email address. Example values: [deanna.schuster@example.com, lucile.shanahan@example.org, uboehm@example.org]), `home_phone` (home phone. Example values: [+71(6)2898266914, +02(1)0259033559, 325-155-0801x7005]), `cell_number` (cell number. Example values: [(275)939-2435x80863, 889-940-2676, (369)908-7311x065])]\nTable Treatments, columns = [`treatment_id` (treatment id. Example values: [1, 2, 3]), `dog_id` (dog id. Example values: [14, 4, 2]), `professional_id` (professional id. Example values: [9, 10, 4]), `treatment_type_code` (treatment type code. Example values: [WALK, VAC, EXAM]), `date_of_treatment` (date of treatment. Example values: [2018-03-19 04:39:54, 2018-03-15 20:25:34, 2018-03-08 05:26:23]), `cost_of_treatment` (cost of treatment. Example values: [567, 147, 429])]\nforeign keys = [Dogs.owner_id = Owners.owner_id, Dogs.owner_id = Owners.owner_id, Dogs.size_code = Sizes.size_code, Dogs.breed_code = Breeds.breed_code, Treatments.dog_id = Dogs.dog_id, Treatments.professional_id = Professionals.professional_id, Treatments.treatment_type_code = Treatment_Types.treatment_type_code]", + "ori_query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", + "amb_query": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state IN ('Virginia', 'Virginia state of the United States')" + }, + { + "db_id": "student_club", + "question": "List the full name of the Student_Club members that grew up in Alabama state.", + "evidence": "full name of member refers to first_name, last_name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Alabama'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state IN ('Alabama', 'AL, USA', 'State of Alabama', 'Alabama, United States')" + }, + { + "db_id": "student_club", + "question": "State the name of students from Elloree, Wisconsin.", + "evidence": "name of students means the full name; full name refers to first_name, last_name; Georgetown is a city; South Carolina is a state", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Elloree' AND T2.state = 'Wisconsin'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city IN ('Elloree', 'Elloree, Wisconsin') AND T2.state IN ('State of Wisconsin', 'WI', 'Badger State', 'Wisconsin', 'Wisconsin state')" + }, + { + "db_id": "student_club", + "question": "List the full name of the Student_Club members that grew up in Texas state.", + "evidence": "full name of member refers to first_name, last_name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Texas'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state IN ('TX', 'Texas', 'Texas, USA', 'Texas state', 'Lone Star State')" + }, + { + "db_id": "student_club", + "question": "List the full name of the Student_Club members that grew up in California state.", + "evidence": "full name of member refers to first_name, last_name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'California'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state IN ('California', 'State of California')" + }, + { + "db_id": "student_club", + "question": "How many cities are there in Clatsop County, Michigan?", + "evidence": "Orange County is the county name, Virginia is the state name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(city) FROM zip_code WHERE county = 'Clatsop County' AND state = 'Michigan'", + "amb_query": "SELECT COUNT(city) FROM zip_code WHERE county IN ('Clatsop County, Pacific Northwest', 'Clatsop County, Oregon', 'Clatsop County', 'County of Clatsop') AND state IN ('Michigan', 'Michigan state', 'MI, USA', 'Michigan, United States')" + }, + { + "db_id": "student_club", + "question": "How many cities are there in Fleming County, New York?", + "evidence": "Orange County is the county name, Virginia is the state name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(city) FROM zip_code WHERE county = 'Fleming County' AND state = 'New York'", + "amb_query": "SELECT COUNT(city) FROM zip_code WHERE county IN ('County of Fleming', 'Fleming County, NY', 'Fleming County', 'Fleming County, New York State') AND state IN ('NYC', 'New York State', 'New York', 'New York, New York', 'Empire State')" + }, + { + "db_id": "student_club", + "question": "How many cities are there in Cotton County, North Dakota?", + "evidence": "Orange County is the county name, Virginia is the state name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(city) FROM zip_code WHERE county = 'Cotton County' AND state = 'North Dakota'", + "amb_query": "SELECT COUNT(city) FROM zip_code WHERE county IN ('Cotton County, ND', 'Cotton County', 'Cotton County, North Dakota, United States') AND state IN ('North Dakota, USA', 'State of North Dakota', 'North Dakota, United States', 'North Dakota', 'North Dakota state')" + }, + { + "db_id": "student_club", + "question": "How many of the members' hometowns are from Missouri state?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state = 'Missouri'", + "amb_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state IN ('MO', 'Missouri, USA', 'Missouri region', 'Missouri', 'Missouri state', 'State of Missouri')" + }, + { + "db_id": "student_club", + "question": "How many of the members' hometowns are from Nevada state?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state = 'Nevada'", + "amb_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state IN ('State of Nevada', 'Nevada, United States', 'Nevada state', 'NV, USA', 'Nevada')" + }, + { + "db_id": "student_club", + "question": "How many of the members' hometowns are from Idaho state?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state = 'Idaho'", + "amb_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state IN ('US-ID state', 'Idaho', 'Idaho state', 'Idaho state of the United States', 'ID, America')" + }, + { + "db_id": "student_club", + "question": "State the name of students from Ney, Alaska.", + "evidence": "name of students means the full name; full name refers to first_name, last_name; Georgetown is a city; South Carolina is a state", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Ney' AND T2.state = 'Alaska'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city IN ('Ney', 'Ney, USA') AND T2.state IN ('Alaska region', 'State of Alaska', 'Alaska', 'Alaska state')" + }, + { + "db_id": "student_club", + "question": "Calculate the difference in the percentage of members in Delaware and West Virginia.", + "evidence": "SUBTRACT( DIVIDE( SUM(state = 'New Jersey'), COUNT(position = 'Member')), DIVIDE( SUM(state = 'Vermont'), COUNT(position = 'Member')) )", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST((SUM(CASE WHEN T2.state = 'Delaware' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state = 'West Virginia' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip", + "amb_query": "SELECT CAST((SUM(CASE WHEN T2.state IN ('State of Delaware', 'Delaware', 'Delaware, USA', 'Delaware region') THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state IN ('West Virginia', 'West Virginia, USA', 'West Virginia region', 'WV') THEN 1 ELSE 0 END)) AS FLOAT) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip" + }, + { + "db_id": "student_club", + "question": "List the full name of the Student_Club members that grew up in Illinois state.", + "evidence": "full name of member refers to first_name, last_name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Illinois'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state IN ('Illinois region', 'Illinois', 'Illinois, United States', 'Illinois state')" + }, + { + "db_id": "student_club", + "question": "How many cities are there in Orange County, Virginia?", + "evidence": "Orange County is the county name, Virginia is the state name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'", + "amb_query": "SELECT COUNT(city) FROM zip_code WHERE county IN ('Orange County', 'Orange County, Virginia', 'Orange County in Virginia', 'Orange County, USA', 'Orange County, VA', 'County of Orange') AND state IN ('Virginia state', 'VA, USA', 'Virginia', 'Commonwealth of Virginia')" + }, + { + "db_id": "student_club", + "question": "How many of the members' hometowns are from Maryland state?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state = 'Maryland'", + "amb_query": "SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state IN ('MD', 'Maryland', 'State of Maryland')" + }, + { + "db_id": "student_club", + "question": "State the name of students from Georgetown, South Carolina.", + "evidence": "name of students means the full name; full name refers to first_name, last_name; Georgetown is a city; South Carolina is a state", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Georgetown' AND T2.state = 'South Carolina'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city IN ('City of Georgetown', 'Georgetown city', 'Georgetown', 'Georgetown, SC', 'Georgetown, USA') AND T2.state IN ('South Carolina', 'South Carolina state', 'South Carolina region', 'South Carolina, USA', 'State of South Carolina')" + }, + { + "db_id": "student_club", + "question": "What are the zip codes that have post office boxes in the country of the country of San Juan Municipio whose state is Puerto Rico?", + "evidence": "zip codes that have post office boxes refers to type = 'PO Box'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'", + "amb_query": "SELECT zip_code FROM zip_code WHERE type IN ('Postal Box', 'PO Box', 'Post Office Box') AND county IN ('San Juan Municipio', 'San Juan Municipio, Puerto Rico County', 'San Juan Municipio, PR', 'San Juan Municipio County', 'San Juan Municipio, Puerto Rico') AND state IN ('Puerto Rican state', 'Puerto Rico', 'Commonwealth of Puerto Rico')" + }, + { + "db_id": "student_club", + "question": "Calculate the difference in the percentage of members in New Jersey and Vermont.", + "evidence": "SUBTRACT( DIVIDE( SUM(state = 'New Jersey'), COUNT(position = 'Member')), DIVIDE( SUM(state = 'Vermont'), COUNT(position = 'Member')) )", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST((SUM(CASE WHEN T2.state = 'New Jersey' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state = 'Vermont' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip", + "amb_query": "SELECT CAST((SUM(CASE WHEN T2.state IN ('State of New Jersey', 'NJ', 'New Jersey') THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state IN ('Vermont', 'State of Vermont', 'Vermont region', 'Vermont, USA') THEN 1 ELSE 0 END)) AS FLOAT) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip" + }, + { + "db_id": "student_club", + "question": "Which student has the hometown of Lincolnton, North Carolina with the zip code of 28092? List their full name and position.", + "evidence": "full name refers to first_name, last_name, hometown of Lincolnton, North Carolina refers to city = 'Lincolnton' AND state = 'North Carolina'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name, T1.position FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T2.city = 'Lincolnton' AND T2.state = 'North Carolina' AND T2.zip_code = 28092", + "amb_query": "SELECT T1.first_name, T1.last_name, T1.position FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T2.city IN ('Lincolnton city', 'City of Lincolnton', 'Lincolnton') AND T2.state IN ('North Carolina, USA', 'State of North Carolina', 'North Carolina region', 'North Carolina', 'North Carolina state') AND T2.zip_code = 28092" + }, + { + "db_id": "student_club", + "question": "Which countries have zip codes with post office boxes?", + "evidence": "zip codes that have post office boxes refers to type = 'PO Box'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL", + "amb_query": "SELECT DISTINCT county FROM zip_code WHERE type IN ('Postal Box', 'PO Box', 'Post Office Box') AND NOT county IS NULL" + }, + { + "db_id": "student_club", + "question": "Calculate the percentage of zip codes that are PO boxes.", + "evidence": "DIVIDE(SUM(type = 'PO Box'), COUNT(zip_code)) * 100", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(SUM(CASE WHEN type = 'PO Box' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(zip_code) FROM zip_code", + "amb_query": "SELECT CAST(SUM(CASE WHEN type IN ('Postal Box', 'PO Box', 'Post Office Box') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(zip_code) FROM zip_code" + }, + { + "db_id": "student_club", + "question": "How many Budget events were held in 2020?", + "evidence": "meeting events refers to type = 'Meeting'; held in 2020 refers to YEAR(event_date) = 2020", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(event_id) FROM event WHERE type = 'Budget' AND SUBSTR(event_date, 1, 4) = '2020'", + "amb_query": "SELECT COUNT(event_id) FROM event WHERE type IN ('Budget', 'Budget event') AND SUBSTR(event_date, 1, 4) = '2020'" + }, + { + "db_id": "student_club", + "question": "Among the events attended by more than 10 members of the Student_Club, how many of them are meetings?", + "evidence": "meetings events refers to type = 'Meeting'; attended by more than 10 members refers to COUNT(event_id) > 10", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 10 EXCEPT SELECT T1.event_name FROM event AS T1 WHERE T1.type = 'Meeting'", + "amb_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 10 EXCEPT SELECT T1.event_name FROM event AS T1 WHERE T1.type IN ('Meeting event', 'Meeting')" + }, + { + "db_id": "student_club", + "question": "What is the average attendance of meetings in 2020?", + "evidence": "meetings in 2020 refers to type = 'Meeting' where YEAR(event_date) = 2020; average = DIVIDE(COUNT(event_id), COUNT(DISTINCT event_name))", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(COUNT(T2.link_to_event) AS REAL) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type = 'Meeting'", + "amb_query": "SELECT CAST(COUNT(T2.link_to_event) AS FLOAT) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type IN ('Meeting event', 'Meeting')" + }, + { + "db_id": "student_club", + "question": "How many times was the budget in Advertisement for \"Yearly Kickoff\" meeting more than \"October Meeting\"?", + "evidence": "budget in Advertisement refer to category = 'Advertisement' in the budget table; DIVIDE(SUM(amount when event_name = 'Yearly Kickoff'), SUM(amount when event_name = 'October Meeting'))", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.event_name = 'Yearly Kickoff' THEN T1.amount ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.event_name = 'October Meeting' THEN T1.amount ELSE 0 END) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' AND T2.type = 'Meeting'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.event_name = 'Yearly Kickoff' THEN T1.amount ELSE 0 END) AS FLOAT) / SUM(CASE WHEN T2.event_name = 'October Meeting' THEN T1.amount ELSE 0 END) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category IN ('Advertising expenses', 'Advertisement', 'Ad budget') AND T2.type IN ('Meeting event', 'Meeting')" + }, + { + "db_id": "student_club", + "question": "How many meeting events were held in 2020?", + "evidence": "meeting events refers to type = 'Meeting'; held in 2020 refers to YEAR(event_date) = 2020", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'", + "amb_query": "SELECT COUNT(event_id) FROM event WHERE type IN ('Meeting event', 'Meeting') AND SUBSTR(event_date, 1, 4) = '2020'" + }, + { + "db_id": "student_club", + "question": "What is the percentage of the cost for the meeting events?", + "evidence": "meeting events refers to type = 'Meeting'; percentage = DIVIDE( SUM(cost), COUNT(event_id)) * 100", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(CASE WHEN T1.type = 'Meeting' THEN T3.cost ELSE 0 END) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget", + "amb_query": "SELECT SUM(CASE WHEN T1.type IN ('Meeting event', 'Meeting') THEN T3.cost ELSE 0 END) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget" + }, + { + "db_id": "student_club", + "question": "List all the names of events that had an attendance of over 20 students but were not fundraisers.", + "evidence": "name of events refers to event_name; attendance of over 20 students COUNT(event_id) > 20.", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20 EXCEPT SELECT T1.event_name FROM event AS T1 WHERE T1.type = 'Fundraiser'", + "amb_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20 EXCEPT SELECT T1.event_name FROM event AS T1 WHERE T1.type = 'Fundraiser'" + }, + { + "db_id": "student_club", + "question": "Among all events hold by the Student_Club in 2019, find the percentage share of events related to 'Community Service'", + "evidence": "DIVIDE(SUM(type = 'Community Service'), COUNT(event_id)) * 100 where event_date BETWEEN' 2019-01-01' and '2019-12-31'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019'", + "amb_query": "SELECT CAST(SUM(CASE WHEN type IN ('Community Service activity', 'Community Service initiative', 'Community Service') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019'" + }, + { + "db_id": "student_club", + "question": "What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent?", + "evidence": "budget category refers to category; events located at refers to location; type = 'Guest Speaker'; 0 budget spent refers to spent = 0; ", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'", + "amb_query": "SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location IN ('Meeting Room MU 215', 'MU 215 venue', 'MU 215', 'MU 215 room') AND T2.spent = 0 AND T1.type IN ('Guest Speaker', 'Guest Speaker presentation', 'Guest Speaker talk')" + }, + { + "db_id": "student_club", + "question": "What is the name of the social event that was attended by the vice president of the Student_Club located at 900 E. Washington St.?", + "evidence": "name of social event refers to event_name where type = 'Social'; 'Vice President' is position; located at refers to location", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location = '900 E. Washington St.' AND T2.type = 'Social'", + "amb_query": "SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location IN ('900 E. Washington St. venue', '900 E. Washington St.') AND T2.type IN ('Social activity', 'Social', 'Social event')" + }, + { + "db_id": "student_club", + "question": "List the names of closed event as \"game\" that was closed from 3/15/2019 to 3/20/2020.", + "evidence": "name of events refers event_name; game event that was closed refers to type = 'Game' where status = 'Closed'; event_date BETWEEN '2019-03-15' and '2020-03-20'; ", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'", + "amb_query": "SELECT DISTINCT event_name FROM event WHERE type IN ('Game', 'Gaming event', 'Event type Game') AND TS_OR_DS_TO_DATE(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status IN ('Closed status', 'Closed')" + }, + { + "db_id": "student_club", + "question": "Mention the category of events which were held at 100 W. Main Street.", + "evidence": "held at MU 215 refers to location = 'MU 215'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = '100 W. Main Street'", + "amb_query": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location IN ('100 West Main Street', '100 W. Main Street')" + }, + { + "db_id": "student_club", + "question": "Mention the category of events which were held at 1308 106th Ave..", + "evidence": "held at MU 215 refers to location = 'MU 215'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = '1308 106th Ave.'", + "amb_query": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location IN ('Address 1308 106th Ave.', '1308 106th Ave.')" + }, + { + "db_id": "student_club", + "question": "State the category of events were held at Campus Football stadium.", + "evidence": "'MU 215' is the location of event; ", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'Campus Football stadium'", + "amb_query": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location IN ('Campus Football stadium', 'Campus Soccer Stadium', 'Football stadium on campus')" + }, + { + "db_id": "student_club", + "question": "Mention the category of events which were held at MU 215.", + "evidence": "held at MU 215 refers to location = 'MU 215'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215'", + "amb_query": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location IN ('Meeting Room MU 215', 'MU 215 venue', 'MU 215', 'MU 215 room')" + }, + { + "db_id": "student_club", + "question": "State the category of events were held at MU 215.", + "evidence": "'MU 215' is the location of event; ", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215'", + "amb_query": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location IN ('Meeting Room MU 215', 'MU 215 venue', 'MU 215', 'MU 215 room')" + }, + { + "db_id": "student_club", + "question": "Among all the closed events, which event has the highest spend-to-budget ratio?", + "evidence": "closed events refers to event_name where status = 'Closed'; highest spend-to budget ratio refers to MAX(DIVIDE(spent, amount))", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.status = 'Closed' ORDER BY T1.spent / T1.amount DESC LIMIT 1", + "amb_query": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.status IN ('Closed status', 'Closed') ORDER BY T1.spent / T1.amount DESC LIMIT 1" + }, + { + "db_id": "student_club", + "question": "How many students in the Student_Club are from the College of the Arts?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college = 'College of the Arts'", + "amb_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college IN ('College of the Arts', 'College of Arts')" + }, + { + "db_id": "student_club", + "question": "How many students in the Student_Club are from the College of Engineering?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college = 'College of Engineering'", + "amb_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college IN ('Engineering College', 'College of Engineering', 'College of Engineering Studies')" + }, + { + "db_id": "student_club", + "question": "How many majors are there in \"College of Humanities and Social Sciences\"?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(major_name) FROM major WHERE college = 'College of Humanities and Social Sciences'", + "amb_query": "SELECT COUNT(major_name) FROM major WHERE college = 'College of Humanities and Social Sciences'" + }, + { + "db_id": "student_club", + "question": "List all of the College of Humanities and Social Sciences' departments.", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT department FROM major WHERE college = 'College of Humanities and Social Sciences'", + "amb_query": "SELECT department FROM major WHERE college = 'College of Humanities and Social Sciences'" + }, + { + "db_id": "student_club", + "question": "In the College of Agriculture and Applied Sciences, how many majors are under the department of School of Applied Sciences, Technology and Education?", + "evidence": "", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'", + "amb_query": "SELECT COUNT(major_id) FROM major WHERE department IN ('School of Applied Sciences', 'School of Applied Sciences, Technology and Education') AND college IN ('College of Agriculture and Applied Science', 'College of Agriculture and Applied Sciences', 'College of Ag and Applied Sciences')" + }, + { + "db_id": "student_club", + "question": "Please list the phone numbers of the members who majored in business at the College of Agriculture and Applied Sciences.", + "evidence": "'College of Agriculture and Applied Sciences' is the college; majored in business refers to major_name = 'Business'; phone numbers refers to phone", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Business' AND T2.college = 'College of Agriculture and Applied Sciences'", + "amb_query": "SELECT T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Business' AND T2.college IN ('College of Agriculture and Applied Science', 'College of Agriculture and Applied Sciences', 'College of Ag and Applied Sciences')" + }, + { + "db_id": "student_club", + "question": "How many members have education major in the College of Education & Human Services?", + "evidence": "'education' is the major name; 'Member' is a position of club;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member' AND T2.major_name LIKE '%Education%' AND T2.college = 'College of Education & Human Services'", + "amb_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position') AND T2.major_name LIKE '%Education%' AND T2.college IN ('College of Education & Human Services', 'College of Education and Human Services')" + }, + { + "db_id": "student_club", + "question": "Please list the full names of the students in the Student_Club that come from the Instructional Technology and Learning Sciences Department.", + "evidence": "full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Instructional Technology and Learning Sciences Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Instructional Technology and Learning Sciences Department', 'ITLS Department')" + }, + { + "db_id": "student_club", + "question": "Please list the full names of the students in the Student_Club that come from the Music Department.", + "evidence": "full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Music Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Music Department', 'School of Music', 'Department of Music')" + }, + { + "db_id": "student_club", + "question": "Please list the full names of the students in the Student_Club that come from the Applied Economics Department.", + "evidence": "full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Applied Economics Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Department of Applied Economics', 'Applied Economics', 'Applied Economics Department')" + }, + { + "db_id": "student_club", + "question": "List all the members of the \"Watershed Sciences Department\" department.", + "evidence": "list all members means to list all the full name; full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Watershed Sciences Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Watershed Sciences Department', 'Department of Watershed Sciences')" + }, + { + "db_id": "student_club", + "question": "List all the members of the \"Management Information Systems Department\" department.", + "evidence": "list all members means to list all the full name; full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Management Information Systems Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Management Information Systems Department', 'MIS Department')" + }, + { + "db_id": "student_club", + "question": "List all the members of the \"Electrical and Computer Engineering Department\" department.", + "evidence": "list all members means to list all the full name; full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Electrical and Computer Engineering Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Electrical and Computer Engineering Department', 'ECE Department')" + }, + { + "db_id": "student_club", + "question": "Please list the full names of the students in the Student_Club that come from the Art and Design Department.", + "evidence": "full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Art and Design Department'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('Department of Art and Design', 'Art and Design Department')" + }, + { + "db_id": "student_club", + "question": "List all the members of the \"School of Applied Sciences, Technology and Education\" department.", + "evidence": "list all members means to list all the full name; full name refers to first_name, last_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department IN ('School of Applied Sciences', 'School of Applied Sciences, Technology and Education')" + }, + { + "db_id": "student_club", + "question": "Calculate the total cost spent for Travel Mug in the list.", + "evidence": "total cost spent for Parking refers to SUM(cost) where expense_description = 'Parking'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Travel Mug'", + "amb_query": "SELECT SUM(cost) FROM expense WHERE expense_description IN ('Travel Mug item', 'Travel Mug')" + }, + { + "db_id": "student_club", + "question": "What was the cost for the \"Bakery - Donuts, muffins\" on 2019/9/4?", + "evidence": "'Poster' is an event description; on 2019/9/14 refers to event_date = '2019-09-04'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT cost FROM expense WHERE expense_description = 'Bakery - Donuts, muffins' AND expense_date = '2019-09-04'", + "amb_query": "SELECT cost FROM expense WHERE expense_description IN ('Bakery Donuts and muffins', 'Bakery - Donuts, muffins') AND expense_date = '2019-09-04'" + }, + { + "db_id": "student_club", + "question": "Calculate the total cost spent for Parking in the list.", + "evidence": "total cost spent for Parking refers to SUM(cost) where expense_description = 'Parking'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'", + "amb_query": "SELECT SUM(cost) FROM expense WHERE expense_description IN ('Parking category', 'Parking costs', 'Parking', 'Parking fees')" + }, + { + "db_id": "student_club", + "question": "What was the cost for the \"Posters\" on 2019/9/4?", + "evidence": "'Poster' is an event description; on 2019/9/14 refers to event_date = '2019-09-04'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT cost FROM expense WHERE expense_description = 'Posters' AND expense_date = '2019-09-04'", + "amb_query": "SELECT cost FROM expense WHERE expense_description IN ('Poster item', 'Poster expense description', 'Posters cost', 'Posters') AND expense_date = '2019-09-04'" + }, + { + "db_id": "student_club", + "question": "Indicate the cost of posters for 'September Speaker' event.", + "evidence": "'Posters' is the expense description; 'September Speaker' is an event name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'", + "amb_query": "SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description IN ('Poster item', 'Poster expense description', 'Posters cost', 'Posters')" + }, + { + "db_id": "student_club", + "question": "Which budget category does the expense 'Posters' fall to?", + "evidence": "'Posters' refers to expense description", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT T2.category FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Posters'", + "amb_query": "SELECT DISTINCT T2.category FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description IN ('Poster item', 'Poster expense description', 'Posters cost', 'Posters')" + }, + { + "db_id": "student_club", + "question": "What is the status of the event which bought \"Post Cards, Posters\" on 2019/8/20?", + "evidence": "'Post Cards, Posters' is an expense description; on 2019/8/20 refers to expense_date = '2019-8-20'; status of event refers to event_status", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description = 'Post Cards, Posters' AND T2.expense_date = '2019-08-20'", + "amb_query": "SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description IN ('Postcards and Posters', 'Post Cards, Posters') AND T2.expense_date = '2019-08-20'" + }, + { + "db_id": "student_club", + "question": "What is the total cost of the pizzas for all the events?", + "evidence": "total cost of the pizzas refers to SUM(cost) where expense_description = 'Pizza'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", + "amb_query": "SELECT SUM(cost) FROM expense WHERE expense_description IN ('Pizza meal', 'Pizza', 'Pizzas', 'Pizza dish', 'Pizza food')" + }, + { + "db_id": "student_club", + "question": "What is the last name and position of the student that bought pizza on 09/10/2019?", + "evidence": "bought pizza on 09/10/2019 refers to expense_description = 'Pizza' where expense_date = '2019-09-10'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.last_name, T1.position FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.expense_date = '2019-09-10' AND T2.expense_description = 'Pizza'", + "amb_query": "SELECT T1.last_name, T1.position FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.expense_date = '2019-09-10' AND T2.expense_description IN ('Pizza meal', 'Pizza', 'Pizzas', 'Pizza dish', 'Pizza food')" + }, + { + "db_id": "student_club", + "question": "Find the name and date of events with expenses for pizza that were more than fifty dollars but less than a hundred dollars.", + "evidence": "name of event refers to event_name; date of event refers to event_date; expenses for pizza refers to expense_description = 'Pizza' where cost > 50 and cost < 100", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.event_name, T1.event_date FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T3.expense_description = 'Pizza' AND T3.cost > 50 AND T3.cost < 100", + "amb_query": "SELECT T1.event_name, T1.event_date FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T3.expense_description IN ('Pizza meal', 'Pizza', 'Pizzas', 'Pizza dish', 'Pizza food') AND T3.cost > 50 AND T3.cost < 100" + }, + { + "db_id": "student_club", + "question": "Which budget allowed the most money for water, chips, and cookies?", + "evidence": "budget allowed refers to expense_description; expense_description = 'Water, chips, cookies'; most money refers to MAX(cost)", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.budget_id FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Water, chips, cookies' ORDER BY T1.cost DESC LIMIT 1", + "amb_query": "SELECT T2.budget_id FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description IN ('cookies, water, chips', 'Water, chips, cookies') ORDER BY T1.cost DESC LIMIT 1" + }, + { + "db_id": "student_club", + "question": "Write the full name of the member who spent money for water, veggie tray and supplies and include the cost of it.", + "evidence": "full name refers to first_name, last name; spent money for refers expense description; expense_description = 'Water, Veggie tray, supplies'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.first_name, T2.last_name, T1.cost FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE T1.expense_description = 'Water, Veggie tray, supplies'", + "amb_query": "SELECT T2.first_name, T2.last_name, T1.cost FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE T1.expense_description IN ('Water, veggie tray, and supplies', 'Water, Veggie tray, supplies')" + }, + { + "db_id": "student_club", + "question": "Which members who were approved from 1/10/2019 to 11/19/2019? Please identify the member who attended the event and the link to their event.", + "evidence": "approved from 1/10/2019 to 11/19/2019 refers to approved = 'true' and expense_date BETWEEN '2019-01-10' and '2019-11-19'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT DISTINCT T1.link_to_member, T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE date(SUBSTR(T1.expense_date, 1, 10)) BETWEEN '2019-01-10' AND '2019-11-19' AND T1.approved = 'true'", + "amb_query": "SELECT DISTINCT T1.link_to_member, T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE TS_OR_DS_TO_DATE(SUBSTR(T1.expense_date, 1, 10)) BETWEEN '2019-01-10' AND '2019-11-19' AND T1.approved IN ('yes', 'confirmed', 'approved', 'true')" + }, + { + "db_id": "student_club", + "question": "On average, how much did the Student_Club spend on food for the typical event in the past?", + "evidence": "DIVIDE(SUM(spent), COUNT(spent)) where category = 'Food'; 'event in the past' means event_status = 'Closed'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'", + "amb_query": "SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments') AND event_status IN ('Closed status', 'Closure', 'Closed')" + }, + { + "db_id": "student_club", + "question": "Indicate the name of the closed event whose cost has exceeded the budget the most.", + "evidence": "closed events refers to event_name where status = 'Closed'; exceed the budget the most refers to MIN(remaining) where remaining < 0", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1", + "amb_query": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status IN ('Closed status', 'Closure', 'Closed') AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1" + }, + { + "db_id": "student_club", + "question": "How much did the Student_Club members spend on food in September Meeting?", + "evidence": "amount spent refers to spent; spend on food in September Meeting refers to category = 'Food' where event_name = 'September Meeting'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Food' AND SUBSTR(T1.event_date, 6, 2) = '09'", + "amb_query": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments') AND SUBSTR(T1.event_date, 6, 2) = '09'" + }, + { + "db_id": "student_club", + "question": "With the biggest budget for the \"Food\", what was the remaining of it?", + "evidence": "remaining of budget refers to remaining, biggest budget for 'Food' refers to MAX(budget.amount) where category = 'Food'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT remaining FROM budget WHERE category = 'Food' AND amount = ( SELECT MAX(amount) FROM budget WHERE category = 'Food' )", + "amb_query": "SELECT remaining FROM budget WHERE category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments') AND amount = (SELECT MAX(amount) FROM budget WHERE category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments'))" + }, + { + "db_id": "student_club", + "question": "What is the total amount of money spent for food?", + "evidence": "total amount of money spent refers to SUM(spent); spent for food refers to category = 'Food'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(spent) FROM budget WHERE category = 'Food'", + "amb_query": "SELECT SUM(spent) FROM budget WHERE category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments')" + }, + { + "db_id": "student_club", + "question": "Among the budgets for Food, which one has the highest budgeted amount?", + "evidence": "MAX(amount) where category = 'Food'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT budget_id FROM budget WHERE category = 'Food' AND amount = ( SELECT MAX(amount) FROM budget )", + "amb_query": "SELECT budget_id FROM budget WHERE category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments') AND amount = (SELECT MAX(amount) FROM budget)" + }, + { + "db_id": "student_club", + "question": "List the event names which were budgeted for the food.", + "evidence": "budgeted for food refers to category = 'Food'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.category = 'Food'", + "amb_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.category IN ('edibles', 'Food', 'cuisine', 'meal', 'refreshments')" + }, + { + "db_id": "student_club", + "question": "How much did the Student_Club members spend on advertisement in September Meeting?", + "evidence": "amount spent refers to spent; spend on food in September Meeting refers to category = 'Advertisement' where event_name = 'September Meeting'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Advertisement' AND SUBSTR(T1.event_date, 6, 2) = '09'", + "amb_query": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category IN ('Advertising expenses', 'Advertisement', 'Ad budget') AND SUBSTR(T1.event_date, 6, 2) = '09'" + }, + { + "db_id": "student_club", + "question": "Name the event with the highest amount spent on advertisement.", + "evidence": "Name of event refers to event_name; highest amount spent on advertisement refers to MAX(spent) where category = 'Advertisement'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC LIMIT 1", + "amb_query": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category IN ('Advertising expenses', 'Advertisement', 'Ad budget') ORDER BY T1.spent DESC LIMIT 1" + }, + { + "db_id": "student_club", + "question": "Among the budgets for Advertising, list out top three which have the most budgeted amount?", + "evidence": "MAX(amount) where category = 'Advertisement'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC LIMIT 3", + "amb_query": "SELECT budget_id FROM budget WHERE category IN ('Advertising expenses', 'Advertisement', 'Ad budget') ORDER BY amount DESC LIMIT 3" + }, + { + "db_id": "student_club", + "question": "What percentage was the budget for Parking to the total budget for the \"November Speaker\"?", + "evidence": "DIVDE(SUM( amount where category = 'Parking' and event_name = 'November Speaker'), COUNT(event_name = 'November Speaker)) * 100", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T1.category = 'Parking' THEN T1.amount ELSE 0 END) AS REAL) * 100 / SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Speaker'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T1.category IN ('Parking category', 'Parking costs', 'Parking', 'Parking fees') THEN T1.amount ELSE 0 END) AS FLOAT) * 100 / SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Speaker'" + }, + { + "db_id": "student_club", + "question": "List the name of events with less than average parking cost.", + "evidence": "name of events refers to event_name; less than average parking cost refers to cost < DIVIDE(SUM(cost), COUNT(event_id)) where category = 'Parking'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T2.category = 'Parking' AND T3.cost < (SELECT AVG(cost) FROM expense)", + "amb_query": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T2.category IN ('Parking category', 'Parking costs', 'Parking', 'Parking fees') AND T3.cost < (SELECT AVG(cost) FROM expense)" + }, + { + "db_id": "student_club", + "question": "Calculate the total amount spent on speaker gifts and list the name of the event they were spent on.", + "evidence": "total amount spent = SUM(spent) where category = 'Speaker Gifts'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT SUM(T1.spent), T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Speaker Gifts' GROUP BY T2.event_name", + "amb_query": "SELECT SUM(T1.spent), T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category IN ('Speaker Gifts', 'Gifts for speakers', 'Gifts given to speakers') GROUP BY T2.event_name" + }, + { + "db_id": "student_club", + "question": "Among the students from the Student_Club who attended the event \"Women's Soccer\", how many of them want a T-shirt that's in medium size?", + "evidence": "Women's Soccer is an event name; T-shirt that is in medium size refers to t_shirt_size = 'Medium'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer' AND T3.t_shirt_size = 'Medium'", + "amb_query": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer' AND T3.t_shirt_size IN ('Medium', 'Medium t-shirt size', 'Medium tee shirt')" + }, + { + "db_id": "student_club", + "question": "For all the club members from \"Business\" major, how many of them wear medium size t-shirt?", + "evidence": "'Business' is a major name; wear medium size t-shirt refers to t_shirt_size = 'Medium'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'", + "amb_query": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size IN ('Medium', 'Medium t-shirt size', 'Medium tee shirt')" + }, + { + "db_id": "student_club", + "question": "How many members of Business have the Medium size of tee shirt?", + "evidence": "members of Economics refers to major_name = 'Business'; t_shirt_size = 'Medium'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business' AND T2.t_shirt_size = 'Medium'", + "amb_query": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business' AND T2.t_shirt_size IN ('Medium', 'Medium t-shirt size', 'Medium tee shirt')" + }, + { + "db_id": "student_club", + "question": "Among the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club?", + "evidence": "t_shirt_size = 'Medium' where position = 'Member'; percentage = DIVIDE(COUNT(amount = 50), COUNT(member_id)) * 100", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS FLOAT) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position') AND T1.t_shirt_size IN ('Medium', 'Medium t-shirt size', 'Medium tee shirt')" + }, + { + "db_id": "student_club", + "question": "What kind of expenses incurred by members who have X-Large in size of tee shirt?", + "evidence": "kind of expenses refers to expense_description; t_shirt_size = 'X-Large'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.t_shirt_size = 'X-Large'", + "amb_query": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.t_shirt_size IN ('X-Large', 'X-Large size', 'XL')" + }, + { + "db_id": "student_club", + "question": "Among the members, how many of them have an extra large t-shirt size?", + "evidence": "among the members refers to position = 'Member'; extra large t-shirt size refers to t_shirt_size = 'X-Large'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'", + "amb_query": "SELECT COUNT(member_id) FROM member WHERE position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position') AND t_shirt_size IN ('X-Large', 'X-Large size', 'XL')" + }, + { + "db_id": "student_club", + "question": "Find the full name of members whose t-shirt size is extra large.", + "evidence": "full name refers to first_name, last_name; t_shirt_size = 'X-Large'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'", + "amb_query": "SELECT first_name, last_name FROM member WHERE t_shirt_size IN ('X-Large', 'X-Large size', 'XL')" + }, + { + "db_id": "student_club", + "question": "Which college is the vice president of the Student_Club from?", + "evidence": "Vice President is a position of the Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position LIKE 'vice president'", + "amb_query": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position LIKE 'vice president'" + }, + { + "db_id": "student_club", + "question": "What is the amount of the funds that the Vice President received?", + "evidence": "'Vice President' is a position of Student Club; funds received refers to amount.", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'", + "amb_query": "SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'" + }, + { + "db_id": "student_club", + "question": "State the major name for the Vice President of the club.", + "evidence": "'Vice President' is a position of Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'Vice President'", + "amb_query": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'Vice President'" + }, + { + "db_id": "student_club", + "question": "List all the expenses incurred by the vice president.", + "evidence": "expense refers to expense_description; 'Vice President' is a position of the Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.expense_id, T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'", + "amb_query": "SELECT T2.expense_id, T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'" + }, + { + "db_id": "student_club", + "question": "State the name of major that Vice President has joined.", + "evidence": "name of major refers to major_name; 'Vice President' is position of Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Vice President'", + "amb_query": "SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Vice President'" + }, + { + "db_id": "student_club", + "question": "What city and state did the President of the Student_Club grow up?", + "evidence": "'President' is a position of Student Club;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.city, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.position = 'President'", + "amb_query": "SELECT T2.city, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.position IN ('Head of the Student Club', 'President')" + }, + { + "db_id": "student_club", + "question": "Which department was the President of the club in?", + "evidence": "'President' is a position of Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'", + "amb_query": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position IN ('Head of the Student Club', 'President')" + }, + { + "db_id": "student_club", + "question": "How many student have the position of president?", + "evidence": "'President' is a position of Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT COUNT(member_id) FROM member WHERE position = 'President'", + "amb_query": "SELECT COUNT(member_id) FROM member WHERE position IN ('Head of the Student Club', 'President')" + }, + { + "db_id": "student_club", + "question": "Provide the full name and email address of the Student_Club's Secretary.", + "evidence": "full name refers to first_name, last_name; 'Secretary' is a position of Student Club", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'", + "amb_query": "SELECT first_name, last_name, email FROM member WHERE position IN ('Secretary', 'Secretary role')" + }, + { + "db_id": "student_club", + "question": "Write the full name of the club member with the position of 'Secretary' and list which college the club member belongs to.", + "evidence": "full name refers to first_name, last name", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Secretary'", + "amb_query": "SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position IN ('Secretary', 'Secretary role')" + }, + { + "db_id": "student_club", + "question": "Calculate the percentage of members who are major Business in the list?", + "evidence": "DIVIDE(SUM(position = 'Member' and major_name = 'Business'), COUNT(member_id)) * 100", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.major_name = 'Business' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.major_name = 'Business' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position')" + }, + { + "db_id": "student_club", + "question": "List the last name of members with a major in environmental engineering and include its department and college name.", + "evidence": "'Environmental Engineering' is the major_name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'", + "amb_query": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position') AND T1.major_name = 'Environmental Engineering'" + }, + { + "db_id": "student_club", + "question": "List the last name of the members of the club that attended the women's soccer event.", + "evidence": "members of the club refers to position = 'Member'; 'Women's Soccer' is event name;", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T3.last_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T2.event_name = 'Women''s Soccer' AND T3.position = 'Member'", + "amb_query": "SELECT T3.last_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T2.event_name = 'Women''s Soccer' AND T3.position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position')" + }, + { + "db_id": "student_club", + "question": "What is the average amount paid by students in a position other than a member?", + "evidence": "position other than a member refers to position ! = 'Member'; average amount paid = DIVIDE( SUM(cost), COUNT(event_id))", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN member as T2 ON T1.link_to_member = T2.member_id WHERE T2.position != 'Member'", + "amb_query": "SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE NOT T2.position IN ('Member', 'Honorary Members', 'Associate Members', 'Lifetime Members', 'Member position')" + }, + { + "db_id": "student_club", + "question": "What was the notes of the fundraising on 2019/9/14?", + "evidence": "fundraising on 2019/9/14 refers to source = 'Fundraising' where date_received = '2019-09-14'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT notes FROM income WHERE source = 'Fundraising' AND date_received = '2019-09-14'", + "amb_query": "SELECT notes FROM income WHERE source IN ('Fundraising', 'Fundraising efforts') AND date_received = '2019-09-14'" + }, + { + "db_id": "student_club", + "question": "State the date Connor Hilton paid his/her dues.", + "evidence": "Connor Hilton is the full name; full name refers to first_name, last_name; date the dues was paid refers to date_received where source = 'Dues';", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Connor' AND T1.last_name = 'Hilton' AND T2.source = 'Dues'", + "amb_query": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Connor' AND T1.last_name = 'Hilton' AND T2.source IN ('Dues payment', 'Dues received', 'Membership fees', 'Dues collected', 'Dues')" + }, + { + "db_id": "student_club", + "question": "Who was the first one paid his/her dues? Tell the full name.", + "evidence": "full name refers to first_name, last_name; first paid dues refers to MIN(received_date) where source = 'Dues'", + "schema_text_wo_content": "\nTable event, columns = [`event_id` (event id), `event_name` (event name), `event_date` (event date), `type` (type), `notes` (notes), `location` (location), `status` (status)]\nTable major, columns = [`major_id` (major id), `major_name` (major name), `department` (department), `college` (college)]\nTable zip_code, columns = [`zip_code` (zip code), `type` (type), `city` (city), `county` (county), `state` (state), `short_state` (short state)]\nTable attendance, columns = [`link_to_event` (link to event), `link_to_member` (link to member)]\nTable budget, columns = [`budget_id` (budget id), `category` (category), `spent` (spent), `remaining` (remaining), `amount` (amount), `event_status` (event status), `link_to_event` (link to event)]\nTable expense, columns = [`expense_id` (expense id), `expense_description` (expense description), `expense_date` (expense date), `cost` (cost), `approved` (approved), `link_to_member` (link to member), `link_to_budget` (link to budget)]\nTable income, columns = [`income_id` (income id), `date_received` (date received), `amount` (amount), `source` (source), `notes` (notes), `link_to_member` (link to member)]\nTable member, columns = [`member_id` (member id), `first_name` (first name), `last_name` (last name), `email` (email), `position` (position), `t_shirt_size` (t_shirt_size), `phone` (phone), `zip` (zip), `link_to_major` (link to major)]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "schema_text_with_content": "\nTable event, columns = [`event_id` (event id. Example values: [rec0Si5cQ4rJRVzd6, rec0akZnLLpGUloLH, rec0dZPcWXF0QjNnE]), `event_name` (event name. Example values: [March Meeting, Officers meeting - January, Spring Elections]), `event_date` (event date. Example values: [2020-03-10T12:00:00, 2020-01-14T09:30:00, 2019-11-24T09:00:00]), `type` (type. Example values: [Meeting event, Election, Gaming event]), `notes` (notes. Example values: [None, All active members can vote for new officers between 4pm-8pm., Attend Women's soccer game as a group.]), `location` (location. Example values: [MU 215 room, None, Meeting Room MU 215]), `status` (status. Example values: [Open, Planning, Closed status])]\nTable major, columns = [`major_id` (major id. Example values: [rec06DF6vZ1CyPKpc, rec09LedkREyskCNv, rec0Eanv576RhQllI]), `major_name` (major name. Example values: [Outdoor Product Design and Development, Agricultural Communication, Fisheries and Aquatic Sciences]), `department` (department. Example values: [School of Applied Sciences, Watershed Sciences Department, Economics and Finance Department]), `college` (college. Example values: [College of Agriculture and Applied Science, College of Ag and Applied Sciences, College of Natural Resources])]\nTable zip_code, columns = [`zip_code` (zip code. Example values: [501, 544, 601]), `type` (type. Example values: [Unique, Standard, Post Office Box]), `city` (city. Example values: [Holtsville, Adjuntas, Aguada]), `county` (county. Example values: [Suffolk County, Adjuntas Municipio, Aguada Municipio]), `state` (state. Example values: [NYC, Puerto Rican state, Commonwealth of Puerto Rico]), `short_state` (short state. Example values: [NY, PR, MA])]\nTable attendance, columns = [`link_to_event` (link to event. Example values: [rec2N69DMcrqN9PJC, rec5XDvJLyxDsGZWc, recEVTik3MlqbvLFi]), `link_to_member` (link to member. Example values: [recD078PnS3x2doBe, recP6DJPyi5donvXL, rec28ORZgcm1dtqBZ])]\nTable budget, columns = [`budget_id` (budget id. Example values: [rec0QmEc3cSQFQ6V2, rec1bG6HSft7XIvTP, rec1z6ISJU2HdIsVm]), `category` (category. Example values: [Ad budget, Food, meal]), `spent` (spent. Example values: [67.81, 121.14, 20.2]), `remaining` (remaining. Example values: [7.19, 28.86, -0.199999999999999]), `amount` (amount. Example values: [75, 150, 20]), `event_status` (event status. Example values: [Closure, Closed status, Closed]), `link_to_event` (link to event. Example values: [recI43CzsZ0Q625ma, recggMW2eyCYceNcy, recJ4Witp9tpjaugn])]\nTable expense, columns = [`expense_id` (expense id. Example values: [rec017x6R3hQqkLAo, rec1nIjoZKTYayqZ6, rec1oMgNFt7Y0G40x]), `expense_description` (expense description. Example values: [Postcards and Posters, Water, Cookies, Pizza food]), `expense_date` (expense date. Example values: [2019-08-20, 2019-10-08, 2019-09-10]), `cost` (cost. Example values: [122.06, 20.2, 51.81]), `approved` (approved. Example values: [approved, true, confirmed]), `link_to_member` (link to member. Example values: [rec4BLdZHS2Blfp4v, recro8T1MPMwRadVH, recD078PnS3x2doBe]), `link_to_budget` (link to budget. Example values: [recvKTAWAFKkVNnXQ, recy8KY5bUdzF81vv, recwXIiKoBMjXJsGZ])]\nTable income, columns = [`income_id` (income id. Example values: [rec0s9ZrO15zhzUeE, rec7f5XMQZexgtQJo, rec8BUJa8GXUjiglg]), `date_received` (date received. Example values: [2019-10-17, 2019-09-04, 2019-10-08]), `amount` (amount. Example values: [50, 200, 3000]), `source` (source. Example values: [Membership fees, Dues received, Dues]), `notes` (notes. Example values: [None, Secured donations to help pay for speaker gifts., Annual funding from Student Government.]), `link_to_member` (link to member. Example values: [reccW7q1KkhSKZsea, recTjHY5xXhvkCdVT, recUdRhbhcEO1Hk5r])]\nTable member, columns = [`member_id` (member id. Example values: [rec1x5zBFIqoOuPW8, rec280Sk7o31iG0Tx, rec28ORZgcm1dtqBZ]), `first_name` (first name. Example values: [Angela, Grant, Luisa]), `last_name` (last name. Example values: [Sanders, Gilmour, Guidi]), `email` (email. Example values: [angela.sanders@lpu.edu, grant.gilmour@lpu.edu, luisa.guidi@lpu.edu]), `position` (position. Example values: [Lifetime Members, Member position, Member]), `t_shirt_size` (t_shirt_size. Example values: [Medium tee shirt, X-Large size, Medium t-shirt size]), `phone` (phone. Example values: [(651) 928-4507, 403-555-1310, 442-555-5882]), `zip` (zip. Example values: [55108, 29440, 10002]), `link_to_major` (link to major. Example values: [recxK3MHQFbR9J5uO, rec7BxKpjJ7bNph3O, recdIBgeU38UbV2sy])]\nforeign keys = [attendance.link_to_member = member.member_id, attendance.link_to_event = event.event_id, budget.link_to_event = event.event_id, expense.link_to_member = member.member_id, expense.link_to_budget = budget.budget_id, income.link_to_member = member.member_id, member.zip = zip_code.zip_code, member.link_to_major = major.major_id]", + "ori_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.source = 'Dues' ORDER BY T2.date_received LIMIT 1", + "amb_query": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.source IN ('Dues payment', 'Dues received', 'Membership fees', 'Dues collected', 'Dues') ORDER BY T2.date_received LIMIT 1" + }, + { + "db_id": "singer", + "question": "List the name of singers whose citizenship is not \"Chile\".", + "evidence": "", + "schema_text_wo_content": "\nTable singer, columns = [`singer_id` (singer id), `name` (name), `birth_year` (birth year), `net_worth_millions` (net worth millions), `citizenship` (citizenship)]\nTable song, columns = [`song_id` (song id), `title` (title), `singer_id` (singer id), `sales` (sales), `highest_position` (highest position)]\nforeign keys = [song.Singer_ID = singer.Singer_ID]", + "schema_text_with_content": "\nTable singer, columns = [`singer_id` (singer id. Example values: [1, 2, 3]), `name` (name. Example values: [Liliane Bettencourt, Christy Walton, Alice Walton]), `birth_year` (birth year. Example values: [1944.0, 1948.0, 1949.0]), `net_worth_millions` (net worth millions. Example values: [30.0, 28.8, 26.3]), `citizenship` (citizenship. Example values: [France country, United States, Chilean nationality])]\nTable song, columns = [`song_id` (song id. Example values: [1, 2, 3]), `title` (title. Example values: [Do They Know It's Christmas, F**k It (I Don't Want You Back), Cha Cha Slide]), `singer_id` (singer id. Example values: [1, 2, 4]), `sales` (sales. Example values: [1094000.0, 552407.0, 351421.0]), `highest_position` (highest position. Example values: [1.0, 3.0])]\nforeign keys = [song.Singer_ID = singer.Singer_ID]", + "ori_query": "SELECT Name FROM singer WHERE Citizenship != \"Chile\"", + "amb_query": "SELECT Name FROM singer WHERE NOT Citizenship IN ('Chile', 'Chilean nationality')" + }, + { + "db_id": "singer", + "question": "List the name of singers whose citizenship is not \"France\".", + "evidence": "", + "schema_text_wo_content": "\nTable singer, columns = [`singer_id` (singer id), `name` (name), `birth_year` (birth year), `net_worth_millions` (net worth millions), `citizenship` (citizenship)]\nTable song, columns = [`song_id` (song id), `title` (title), `singer_id` (singer id), `sales` (sales), `highest_position` (highest position)]\nforeign keys = [song.Singer_ID = singer.Singer_ID]", + "schema_text_with_content": "\nTable singer, columns = [`singer_id` (singer id. Example values: [1, 2, 3]), `name` (name. Example values: [Liliane Bettencourt, Christy Walton, Alice Walton]), `birth_year` (birth year. Example values: [1944.0, 1948.0, 1949.0]), `net_worth_millions` (net worth millions. Example values: [30.0, 28.8, 26.3]), `citizenship` (citizenship. Example values: [France country, United States, Chilean nationality])]\nTable song, columns = [`song_id` (song id. Example values: [1, 2, 3]), `title` (title. Example values: [Do They Know It's Christmas, F**k It (I Don't Want You Back), Cha Cha Slide]), `singer_id` (singer id. Example values: [1, 2, 4]), `sales` (sales. Example values: [1094000.0, 552407.0, 351421.0]), `highest_position` (highest position. Example values: [1.0, 3.0])]\nforeign keys = [song.Singer_ID = singer.Singer_ID]", + "ori_query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "amb_query": "SELECT Name FROM singer WHERE NOT Citizenship IN ('France', 'France country')" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in Bret Harte Union High?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Bret Harte Union High' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('Bret Harte Union High', 'Bret Harte High', 'Bret Harte Union High, California', 'Bret Harte Union High School, USA') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in Modoc County ROP?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Modoc County ROP' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('Modoc County ROP', 'Modoc County Regional Occupational Program') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in El Dorado County Office of Education?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'El Dorado County Office of Education' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('El Dorado County Office of Education District', 'El Dorado County School District', 'El Dorado County Educational Authority', 'El Dorado County Education Department', 'El Dorado County Office of Education') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in Perris Elementary?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Perris Elementary' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('Perris Elementary', 'Perris Elementary District', 'Perris Elementary School') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in El Centro Elementary?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'El Centro Elementary' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('El Centro School District', 'El Centro Elementary School', 'El Centro Elementary', 'El Centro Elementary, California') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in SBE - San Francisco Flex Academy?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'SBE - San Francisco Flex Academy' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('SBE - San Francisco Flex Academy', 'SBE - Flex Academy in San Francisco') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in Bassett Unified?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Bassett Unified' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('Bassett Unified Schools', 'Bassett Unified School System', 'Bassett Unified', 'Bassett Unified, California') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the telephone number for the school with the lowest average score in reading in Fresno Unified?", + "evidence": "Fresno Unified is a name of district;", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Fresno Unified' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", + "amb_query": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District IN ('Fresno Unified School District', 'Fresno Unified Educational District', 'Fresno Unified District', 'Fresno Unified') AND NOT T1.AvgScrRead IS NULL ORDER BY T1.AvgScrRead ASC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Los Nietos?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Los Nietos' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Los Nietos', 'Los Nietos city') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Cambria?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Cambria' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Cambria', 'Cambria city', 'Cambria, CA', 'Cambria, California') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Fort Dick?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Fort Dick' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Fort Dick, USA', 'Fort Dick') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Greenfield?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Greenfield' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Greenfield mailing city', 'Greenfield, California', 'Greenfield', 'City of Greenfield') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Creston?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Creston' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Creston', 'Creston mailing city') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Niland?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Niland' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('City of Niland', 'Niland') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is West Los Angeles?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'West Los Angeles' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('West Los Angeles', 'West LA') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Boulder Creek?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Boulder Creek'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Boulder Creek, USA', 'Boulder Creek')" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Los Molinos?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Los Molinos'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Los Molinos, USA', 'Los Molinos', 'Los Molinos city', 'Los Molinos area')" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Pixley?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Pixley'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Pixley mailing address', 'Pixley')" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Mariposa?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Mariposa'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Mariposa County', 'City of Mariposa', 'Mariposa, California', 'Mariposa', 'Mariposa city in California')" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Yolo?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Yolo'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Yolo', 'Yolo area')" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Potter Valley?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Potter Valley'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Potter Valley region', 'Potter Valley', 'Potter Valley, California')" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Lamont?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Lamont'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Lamont', 'Lamont, Kern County', 'Lamont, USA', 'Lamont, California')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Livingston belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Livingston'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Livingston', 'Livingston mailing city', 'Livingston, California')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Artois belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Artois'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Artois', 'Artois, USA')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Oxnard belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Oxnard'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Oxnard, United States', 'Oxnard city', 'Oxnard, California', 'Oxnard')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Esparto belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Esparto'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Esparto city', 'Esparto, Yolo County', 'Esparto', 'City of Esparto')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Capistrano Beach belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Capistrano Beach'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Capistrano Beach, Orange County', 'Capistrano Beach', 'Capistrano Beach, California')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Emigrant Gap belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Emigrant Gap'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Emigrant Gap, California', 'Emigrant Gap')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Hayfork belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Hayfork'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Hayfork', 'Hayfork, USA', 'Hayfork city', 'Hayfork, CA')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Lakeport?", + "evidence": "Total SAT scores can be computed by AvgScrRead + AvgScrMath + AvgScrWrite", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Lakeport' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", + "amb_query": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Lakeport', 'Lakeport area', 'Lakeport, California', 'Lakeport, USA') AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500" + }, + { + "db_id": "california_schools", + "question": "How many test takers are there at the school/s whose mailing city address is in Fresno?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Fresno'", + "amb_query": "SELECT T1.NumTstTakr FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity IN ('Fresno city', 'City of Fresno', 'Fresno, USA', 'Fresno, California', 'Fresno')" + }, + { + "db_id": "california_schools", + "question": "What is the total number of schools with a mailing city in Hickman belonging to the charter number 00D4?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Hickman'", + "amb_query": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity IN ('Hickman area', 'Hickman', 'Hickman, California')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Rosemead are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Rosemead'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('Rosemead, California', 'City of Rosemead', 'Rosemead city', 'Rosemead')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Norwalk are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Norwalk'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('Norwalk, Los Angeles County', 'Norwalk, USA', 'Norwalk', 'Norwalk city')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Janesville are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Janesville'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('City of Janesville', 'Janesville city', 'Janesville')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Bridgeville are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Bridgeville'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('Bridgeville', 'City of Bridgeville', 'Bridgeville town')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Weott are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Weott'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('Weott', 'Weott, California')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Fairfax are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Fairfax'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('City of Fairfax', 'Fairfax', 'Fairfax, California', 'Fairfax area')" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of San Gabriel are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'San Gabriel'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('San Gabriel', 'San Gabriel city', 'San Gabriel area', 'San Gabriel, USA')" + }, + { + "db_id": "california_schools", + "question": "What is the total amount of High School District closure in 1989 in the city of Cabazon?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE strftime('%Y', ClosedDate) = '1989' AND City = 'Cabazon' AND DOCType = 'High School District'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE STRFTIME('%Y', ClosedDate) = '1989' AND City IN ('Cabazon, California', 'Cabazon') AND DOCType IN ('Secondary School District', 'High School District', 'High School Districts')" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of San Lucas?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'San Lucas' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('San Lucas, California', 'San Lucas', 'San Lucas municipality') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Dana Point?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Dana Point' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('Dana Point area', 'Dana Point, California', 'Dana Point', 'Dana Point city') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Agoura?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Agoura' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('Agoura', 'Agoura city') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Moss Landing?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Moss Landing' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('Moss Landing', 'Moss Landing, California') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Woodside?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Woodside' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('Woodside', 'Woodside, USA') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Jamul?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Jamul' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('Jamul', 'Jamul area') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Santa Clarita?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Santa Clarita' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('City of Santa Clarita', 'Santa Clarita', 'Santa Clarita, CA', 'Santa Clarita, California') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the Carmel Valley county, City of Carmel Valley City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Carmel Valley' AND T2.City = 'Carmel Valley' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Carmel Valley' AND T2.City IN ('Carmel Valley community', 'Carmel Valley') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the Rescue county, City of Rescue City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Rescue' AND T2.City = 'Rescue' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Rescue' AND T2.City IN ('Rescue', 'Rescue city', 'City of Rescue', 'Rescue County') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the La Honda county, City of La Honda City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'La Honda' AND T2.City = 'La Honda' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'La Honda' AND T2.City IN ('City of La Honda', 'La Honda, San Mateo County', 'La Honda') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the Carlotta county, City of Carlotta City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Carlotta' AND T2.City = 'Carlotta' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Carlotta' AND T2.City IN ('Carlotta, California', 'Carlotta') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the Sausalito county, City of Sausalito City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Sausalito' AND T2.City = 'Sausalito' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Sausalito' AND T2.City IN ('Sausalito', 'Sausalito, Marin County', 'Sausalito City', 'Sausalito, California', 'Sausalito municipality') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the Santa Rosa county, City of Santa Rosa City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Santa Rosa' AND T2.City = 'Santa Rosa' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Santa Rosa' AND T2.City IN ('Santa Rosa', 'Santa Rosa, USA', 'Santa Rosa city') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the Solana Beach county, City of Solana Beach City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Solana Beach' AND T2.City = 'Solana Beach' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Solana Beach' AND T2.City IN ('Solana Beach', 'Solana Beach, California', 'City of Solana Beach', 'Solana Beach area') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "How many chartered schools located in the city of Hickman are owned by the Elementary School District?", + "evidence": "Elementary School District refers to DOC = 52; Chartered schools refer to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City = 'Hickman'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE DOC = 52 AND Charter = 1 AND City IN ('Hickman', 'Hickman, California', 'Hickman mailing city')" + }, + { + "db_id": "california_schools", + "question": "Of all the schools with a mailing state address in California, how many are active in San Joaquin city?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(CDSCode) FROM schools WHERE City = 'San Joaquin' AND MailState = 'CA' AND StatusType = 'Active'", + "amb_query": "SELECT COUNT(CDSCode) FROM schools WHERE City = 'San Joaquin' AND MailState IN ('CA', 'Golden State', 'California, USA', 'CA state') AND StatusType IN ('Ongoing', 'Active', 'Active status', 'Currently Active')" + }, + { + "db_id": "california_schools", + "question": "What is the total amount of Community College District closure in 1989 in the city of San Francisco?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE strftime('%Y', ClosedDate) = '1989' AND City = 'San Francisco' AND DOCType = 'Community College District'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE STRFTIME('%Y', ClosedDate) = '1989' AND City IN ('San Francisco City', 'San Francisco, California', 'San Francisco') AND DOCType IN ('Community College District', 'Community College', 'District of Community Colleges', 'Community College System')" + }, + { + "db_id": "california_schools", + "question": "What is the most common type of grade span served in the city of Adelanto?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT GSserved FROM schools WHERE City = 'Adelanto' GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1", + "amb_query": "SELECT GSserved FROM schools WHERE City IN ('Adelanto', 'Adelanto, California', 'Adelanto municipality', 'City of Adelanto') GROUP BY GSserved ORDER BY COUNT(GSserved) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "What are the valid e-mail addresses of the administrator of the school located in the San Bernardino county, City of San Bernardino City Unified that opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools and Unified Schools?", + "evidence": "Intermediate/Middle Schools refers to SOC = 62; Unified School refers to DOC = 54; years between 2009 and 2010 can refer to 'between 1/1/2009 to 12/31/2010'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'San Bernardino' AND T2.City = 'San Bernardino' AND T2.DOC = 54 AND strftime('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62", + "amb_query": "SELECT T2.AdmEmail1, T2.AdmEmail2 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'San Bernardino' AND T2.City IN ('San Bernardino, California', 'San Bernardino', 'San Bernardino City', 'City of San Bernardino') AND T2.DOC = 54 AND STRFTIME('%Y', T2.OpenDate) BETWEEN '2009' AND '2010' AND T2.SOC = 62" + }, + { + "db_id": "california_schools", + "question": "What are the websites for all the partially virtual chartered schools located in San Joaquin?", + "evidence": "Virtual = 'P' means partially virtual; Charter schools refers to Charter = 1 in the table schools", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT Website FROM schools WHERE County = 'San Joaquin' AND Virtual = 'P' AND Charter = 1", + "amb_query": "SELECT Website FROM schools WHERE County = 'San Joaquin' AND Virtual IN ('Partially remote', 'Partially online', 'Partially virtual', 'P') AND Charter = 1" + }, + { + "db_id": "california_schools", + "question": "Between San Diego and Santa Barbara, which county offers the most number of schools that does not offer physical building? Indicate the amount.", + "evidence": "'Does not offer physical building' means Virtual = F in the database.", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT County, COUNT(Virtual) FROM schools WHERE (County = 'San Diego' OR County = 'Santa Barbara') AND Virtual = 'F' GROUP BY County ORDER BY COUNT(Virtual) DESC LIMIT 1", + "amb_query": "SELECT County, COUNT(Virtual) FROM schools WHERE (County = 'San Diego' OR County = 'Santa Barbara') AND Virtual IN ('Virtual', 'Not Physical', 'Online School', 'Virtual School', 'F') GROUP BY County ORDER BY COUNT(Virtual) DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "Which active district has the highest average score in Reading?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT T1.District FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType = 'Active' ORDER BY T2.AvgScrRead DESC LIMIT 1", + "amb_query": "SELECT T1.District FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType IN ('Ongoing', 'Active', 'Active status', 'Currently Active') ORDER BY T2.AvgScrRead DESC LIMIT 1" + }, + { + "db_id": "california_schools", + "question": "How many active and closed District Community Day Schools are there in the county of Alpine?", + "evidence": "", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE (StatusType = 'Closed' OR StatusType = 'Active') AND SOC = 69 AND County = 'Alpine'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE (StatusType IN ('Closed status', 'Closure', 'Closed') OR StatusType IN ('Ongoing', 'Active', 'Active status', 'Currently Active')) AND SOC = 69 AND County = 'Alpine'" + }, + { + "db_id": "california_schools", + "question": "What is the ratio of merged Unified School District schools in Orange County to merged Elementary School District schools?", + "evidence": "Elementary School District refers to DOC = 52; Unified School District refers to DOC = 54.", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END) FROM schools WHERE StatusType = 'Merged' AND County = 'Orange'", + "amb_query": "SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS FLOAT) / SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END) FROM schools WHERE StatusType IN ('Merged status', 'Merged schools', 'Merged', 'Combined schools') AND County = 'Orange'" + }, + { + "db_id": "california_schools", + "question": "Which different county has the most number of closed schools? Please provide the name of each school as well as the closure date.", + "evidence": "Closure date and closed date are synonyms; 'Closed' was mentioned in schools.StatusType.", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = ( SELECT County FROM schools WHERE StatusType = 'Closed' GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1 ) AND StatusType = 'Closed' AND school IS NOT NULL", + "amb_query": "SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = (SELECT County FROM schools WHERE StatusType IN ('Closed status', 'Closure', 'Closed') GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1) AND StatusType IN ('Closed status', 'Closure', 'Closed') AND NOT school IS NULL" + }, + { + "db_id": "california_schools", + "question": "Of the schools with a mailing state address in California, what is the ratio of the schools located in the county of Colusa against the school located in the county of Humboldt?", + "evidence": "Ratio = count(schools in Colusa) / count(schools in Humboldt)", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT CAST(SUM(CASE WHEN County = 'Colusa' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN County = 'Humboldt' THEN 1 ELSE 0 END) FROM schools WHERE MailState = 'CA'", + "amb_query": "SELECT CAST(SUM(CASE WHEN County = 'Colusa' THEN 1 ELSE 0 END) AS FLOAT) / SUM(CASE WHEN County = 'Humboldt' THEN 1 ELSE 0 END) FROM schools WHERE MailState IN ('CA', 'Golden State', 'California, USA', 'CA state')" + }, + { + "db_id": "california_schools", + "question": "What is the ratio in percentage of Santa Clara County schools that are locally funded compared to all other types of charter school funding?", + "evidence": "Ratio in percentage = (count(locally funded schools in Santa Clara) / count(all funding type schools in Santa Clara) * 100%", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT CAST(SUM(CASE WHEN FundingType = 'Locally funded' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN FundingType != 'Locally funded' THEN 1 ELSE 0 END) FROM schools WHERE County = 'Santa Clara' AND Charter = 1", + "amb_query": "SELECT CAST(SUM(CASE WHEN FundingType IN ('Locally funded education', 'Locally funded', 'Locally funded schools', 'Schools with local funding', 'Locally funded institutions') THEN 1 ELSE 0 END) AS FLOAT) * 100 / SUM(CASE WHEN NOT FundingType IN ('Locally funded education', 'Locally funded', 'Locally funded schools', 'Schools with local funding', 'Locally funded institutions') THEN 1 ELSE 0 END) FROM schools WHERE County = 'Santa Clara' AND Charter = 1" + }, + { + "db_id": "california_schools", + "question": "Between 1/1/2000 to 12/31/2005, how many directly funded schools opened in the county of Stanislaus?", + "evidence": "Directly funded schools refers to FundingType = 'Directly Funded'", + "schema_text_wo_content": "\nTable frpm, columns = [`cdscode` (cdscode), `academic year` (academic year), `county code` (county code), `district code` (district code), `school code` (school code), `county name` (county name), `district name` (district name), `school name` (school name), `district type` (district type), `school type` (school type), `educational option type` (educational option type), `nslp provision status` (nslp provision status), `charter school (y/n)` (charter school (y/n)), `charter school number` (charter school number), `charter funding type` (charter funding type), `irc` (irc), `low grade` (low grade), `high grade` (high grade), `enrollment (k-12)` (enrollment (k-12)), `free meal count (k-12)` (free meal count (k-12)), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12)), `frpm count (k-12)` (frpm count (k-12)), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12)), `enrollment (ages 5-17)` (enrollment (ages 5-17)), `free meal count (ages 5-17)` (free meal count (ages 5-17)), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17)), `frpm count (ages 5-17)` (frpm count (ages 5-17)), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17)), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status)]\nTable satscores, columns = [`cds` (cds), `rtype` (rtype), `sname` (school name), `dname` (district name), `cname` (county name), `enroll12` (enrollment (1st-12nd grade)), `numtsttakr` (number of test takers), `avgscrread` (average scores in reading), `avgscrmath` (average scores in math), `avgscrwrite` (average scores in writing), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500)]\nTable schools, columns = [`cdscode` (cdscode), `ncesdist` (national center for educational statistics school district identification number), `ncesschool` (national center for educational statistics school identification number), `statustype` (statustype), `county` (county), `district` (district), `school` (school), `street` (street), `streetabr` (street address), `city` (city), `zip` (zip), `state` (state), `mailstreet` (mail street), `mailstrabr` (mailing street address), `mailcity` (mailing city), `mailzip` (mailing zip), `mailstate` (mailing state), `phone` (phone), `ext` (extension), `website` (website), `opendate` (opendate), `closeddate` (closeddate), `charter` (charter), `charternum` (charternum), `fundingtype` (fundingtype), `doc` (district ownership code), `doctype` (the district ownership code type), `soc` (school ownership code), `soctype` (school ownership code type), `edopscode` (education option code), `edopsname` (educational option name), `eilcode` (educational instruction level code), `eilname` (educational instruction level name), `gsoffered` (grade span offered), `gsserved` (grade span served.), `virtual` (virtual), `magnet` (magnet), `latitude` (latitude), `longitude` (longitude), `admfname1` (administrator's first name 1), `admlname1` (administrator's last name 1), `admemail1` (administrator's email address 1), `admfname2` (administrator's first name 2), `admlname2` (administrator's last name 2), `admemail2` (administrator's email address 2), `admfname3` (administrator's first name 3), `admlname3` (administrator's last name 3), `admemail3` (administrator's email address 3), `lastupdate` (last update)]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "schema_text_with_content": "\nTable frpm, columns = [`cdscode` (cdscode. Example values: [01100170109835, 01100170112607, 01100170118489]), `academic year` (academic year. Example values: [2014-2015]), `county code` (county code. Example values: [01, 02, 03]), `district code` (district code. Example values: [10017, 31609, 31617]), `school code` (school code. Example values: [0109835, 0112607, 0118489]), `county name` (county name. Example values: [Alameda, Alpine, Amador]), `district name` (district name. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school name` (school name. Example values: [FAME Public Charter, Envision Academy for Arts & Technology, Aspire California College Preparatory Academy]), `district type` (district type. Example values: [County Office of Education (COE), State Special Schools, Unified School District]), `school type` (school type. Example values: [K-12 Schools (Public), High Schools (Public), Elementary Schools (Public)]), `educational option type` (educational option type. Example values: [Traditional, Juvenile Court School, County Community School]), `nslp provision status` (nslp provision status. Example values: [None, Breakfast Provision 2, Provision 2]), `charter school (y/n)` (charter school (y/n). Example values: [1, 0, None]), `charter school number` (charter school number. Example values: [0728, 0811, 1049]), `charter funding type` (charter funding type. Example values: [Directly funded, None, Locally funded]), `irc` (irc. Example values: [1, 0, None]), `low grade` (low grade. Example values: [K, 9, 1]), `high grade` (high grade. Example values: [12, 8, 5]), `enrollment (k-12)` (enrollment (k-12). Example values: [1087.0, 395.0, 244.0]), `free meal count (k-12)` (free meal count (k-12). Example values: [565.0, 186.0, 134.0]), `percent (%) eligible free (k-12)` (percent (%) eligible free (k-12). Example values: [0.519779208831647, 0.470886075949367, 0.549180327868853]), `frpm count (k-12)` (frpm count (k-12). Example values: [715.0, 186.0, 175.0]), `percent (%) eligible frpm (k-12)` (percent (%) eligible frpm (k-12). Example values: [0.657773689052438, 0.470886075949367, 0.717213114754098]), `enrollment (ages 5-17)` (enrollment (ages 5-17). Example values: [1070.0, 376.0, 230.0]), `free meal count (ages 5-17)` (free meal count (ages 5-17). Example values: [553.0, 182.0, 128.0]), `percent (%) eligible free (ages 5-17)` (percent (%) eligible free (ages 5-17). Example values: [0.516822429906542, 0.484042553191489, 0.556521739130435]), `frpm count (ages 5-17)` (frpm count (ages 5-17). Example values: [702.0, 182.0, 168.0]), `percent (%) eligible frpm (ages 5-17)` (percent (%) eligible frpm (ages 5-17). Example values: [0.65607476635514, 0.484042553191489, 0.730434782608696]), `2013-14 calpads fall 1 certification status` (2013-14 calpads fall 1 certification status. Example values: [1])]\nTable satscores, columns = [`cds` (cds. Example values: [10101080000000, 10101080109991, 10101080111682]), `rtype` (rtype. Example values: [D, S]), `sname` (school name. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `dname` (district name. Example values: [Alameda County Office of Education, Alameda Unified, Albany City Unified]), `cname` (county name. Example values: [Alameda, Amador, Butte]), `enroll12` (enrollment (1st-12nd grade). Example values: [398, 62, 75]), `numtsttakr` (number of test takers. Example values: [88, 17, 71]), `avgscrread` (average scores in reading. Example values: [418, 503, 397]), `avgscrmath` (average scores in math. Example values: [418, 546, 387]), `avgscrwrite` (average scores in writing. Example values: [417, 505, 395]), `numge1500` (number of test takers whose total sat scores are greater or equal to 1500. Example values: [14, 9, 5])]\nTable schools, columns = [`cdscode` (cdscode. Example values: [01100170000000, 01100170109835, 01100170112607]), `ncesdist` (national center for educational statistics school district identification number. Example values: [0691051, 0600002, 0600003]), `ncesschool` (national center for educational statistics school identification number. Example values: [None, 10546, 10947]), `statustype` (statustype. Example values: [Ongoing, Closure, Closed status]), `county` (county. Example values: [Alameda, Alpine, Amador]), `district` (district. Example values: [Alameda County Office of Education, California School for the Blind (State Special Schl), California School for the Deaf-Fremont (State Special Schl)]), `school` (school. Example values: [None, FAME Public Charter, Envision Academy for Arts & Technology]), `street` (street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `streetabr` (street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `city` (city. Example values: [Hayward, Newark, Oakland]), `zip` (zip. Example values: [94544-1136, 94560-5359, 94612-3355]), `state` (state. Example values: [CA, None]), `mailstreet` (mail street. Example values: [313 West Winton Avenue, 39899 Balentine Drive, Suite 335, 1515 Webster Street]), `mailstrabr` (mailing street address. Example values: [313 West Winton Ave., 39899 Balentine Dr., Ste. 335, 1515 Webster St.]), `mailcity` (mailing city. Example values: [Hayward, Newark, Oakland]), `mailzip` (mailing zip. Example values: [94544-1136, 94560-5359, 94612]), `mailstate` (mailing state. Example values: [CA state, California, USA, Golden State]), `phone` (phone. Example values: [(510) 887-0152, None, (510) 596-8901]), `ext` (extension. Example values: [None, 130, 1240]), `website` (website. Example values: [www.acoe.org, None, www.envisionacademy.org/]), `opendate` (opendate. Example values: [None, 2005-08-29, 2006-08-28]), `closeddate` (closeddate. Example values: [None, 2015-07-31, 2015-06-30]), `charter` (charter. Example values: [None, 1, 0]), `charternum` (charternum. Example values: [None, 0728, 0811]), `fundingtype` (fundingtype. Example values: [None, Direct funding type, Schools with direct funding]), `doc` (district ownership code. Example values: [00, 31, 34]), `doctype` (the district ownership code type. Example values: [County Office of Education (COE), State Special Schools, Non-School Locations]), `soc` (school ownership code. Example values: [None, 65, 66]), `soctype` (school ownership code type. Example values: [None, K-12 Schools (Public), High Schools (Public)]), `edopscode` (education option code. Example values: [None, TRAD, JUV]), `edopsname` (educational option name. Example values: [None, Traditional, Juvenile Court School]), `eilcode` (educational instruction level code. Example values: [None, ELEMHIGH, HS]), `eilname` (educational instruction level name. Example values: [None, Elementary-High Combination, High School]), `gsoffered` (grade span offered. Example values: [None, K-12, 9-12]), `gsserved` (grade span served.. Example values: [None, K-12, 9-12]), `virtual` (virtual. Example values: [None, Partially virtual, N]), `magnet` (magnet. Example values: [None, 0, 1]), `latitude` (latitude. Example values: [37.658212, 37.521436, 37.80452]), `longitude` (longitude. Example values: [-122.09713, -121.99391, -122.26815]), `admfname1` (administrator's first name 1. Example values: [L Karen, None, Laura]), `admlname1` (administrator's last name 1. Example values: [Monroe, None, Robell]), `admemail1` (administrator's email address 1. Example values: [lkmonroe@acoe.org, None, laura@envisionacademy.org]), `admfname2` (administrator's first name 2. Example values: [None, Sau-Lim (Lance), Jennifer]), `admlname2` (administrator's last name 2. Example values: [None, Tsang, Koelling]), `admemail2` (administrator's email address 2. Example values: [None, stsang@unityhigh.org, jkoelling@efcps.net]), `admfname3` (administrator's first name 3. Example values: [None, Drew, Irma]), `admlname3` (administrator's last name 3. Example values: [None, Sarratore, Munoz]), `admemail3` (administrator's email address 3. Example values: [None, dsarratore@vincentacademy.org, gmunoz@piedmont.k12.ca.us]), `lastupdate` (last update. Example values: [2015-06-23, 2015-09-01, 2015-06-18])]\nforeign keys = [frpm.CDSCode = schools.CDSCode, satscores.cds = schools.CDSCode]", + "ori_query": "SELECT COUNT(School) FROM schools WHERE strftime('%Y', OpenDate) BETWEEN '2000' AND '2005' AND County = 'Stanislaus' AND FundingType = 'Directly funded'", + "amb_query": "SELECT COUNT(School) FROM schools WHERE STRFTIME('%Y', OpenDate) BETWEEN '2000' AND '2005' AND County = 'Stanislaus' AND FundingType IN ('Directly funded schools', 'Directly funded education', 'Schools with direct funding', 'Direct funding type', 'Directly funded')" + }, + { + "db_id": "financial", + "question": "How many of the accounts are from Jindrichuv Hradec district?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 = 'Jindrichuv Hradec'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 IN ('Jindrichuv Hradec', 'Jindrichuv Hradec area')" + }, + { + "db_id": "financial", + "question": "How many of the accounts are from Melnik district?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 = 'Melnik'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 IN ('Melnik', 'Melnik district')" + }, + { + "db_id": "financial", + "question": "How many of the accounts are from Rychnov nad Kneznou district?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 = 'Rychnov nad Kneznou'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 IN ('District of Rychnov nad Kneznou', 'Rychnov nad Kneznou')" + }, + { + "db_id": "financial", + "question": "How many of the accounts are from Zdar nad Sazavou district?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 = 'Zdar nad Sazavou'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 IN ('Zdar nad Sazavou, Czech Republic', 'Zdar nad Sazavou')" + }, + { + "db_id": "financial", + "question": "How many accounts were opened in Vsetin in 1996?", + "evidence": "A2 refers to district name; Litomerice is one of district names.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 = 'Vsetin'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 IN ('Vsetin', 'Vsetin region')" + }, + { + "db_id": "financial", + "question": "How many accounts were opened in Kutna Hora in 1996?", + "evidence": "A2 refers to district name; Litomerice is one of district names.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 = 'Kutna Hora'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 IN ('District of Kutna Hora', 'Kutna Hora')" + }, + { + "db_id": "financial", + "question": "How many accounts were opened in Pardubice in 1996?", + "evidence": "A2 refers to district name; Litomerice is one of district names.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 = 'Pardubice'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 IN ('Pardubice', 'Pardubice, Czech Republic')" + }, + { + "db_id": "financial", + "question": "How many accounts were opened in Ceske Budejovice in 1996?", + "evidence": "A2 refers to district name; Litomerice is one of district names.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 = 'Ceske Budejovice'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 IN ('Budweis, Czech Republic', 'Ceske Budejovice')" + }, + { + "db_id": "financial", + "question": "List account ID and account opening date for accounts from 'Znojmo'.", + "evidence": "A2 refers to the names of districts.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Znojmo'", + "amb_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Znojmo city', 'Znojmo')" + }, + { + "db_id": "financial", + "question": "List account ID and account opening date for accounts from 'Ostrava - mesto'.", + "evidence": "A2 refers to the names of districts.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Ostrava - mesto'", + "amb_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Ostrava - mesto', 'Ostrava - mesto, Czech Republic')" + }, + { + "db_id": "financial", + "question": "List account ID and account opening date for accounts from 'Trutnov'.", + "evidence": "A2 refers to the names of districts.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Trutnov'", + "amb_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Trutnov', 'Trutnov, Czech Republic')" + }, + { + "db_id": "financial", + "question": "Calculate the percentage of account from 'Most' district for all accounts are opened in 1993.", + "evidence": "A2 contains the information about district.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T1.A2 = 'Most') AS REAL) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'", + "amb_query": "SELECT CAST(SUM(T1.A2 IN ('Most municipality', 'Most')) AS FLOAT) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'" + }, + { + "db_id": "financial", + "question": "Calculate the percentage of account from 'Jihlava' district for all accounts are opened in 1993.", + "evidence": "A2 contains the information about district.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T1.A2 = 'Jihlava') AS REAL) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'", + "amb_query": "SELECT CAST(SUM(T1.A2 IN ('District of Jihlava', 'Jihlava')) AS FLOAT) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'" + }, + { + "db_id": "financial", + "question": "Calculate the percentage of account from 'Brno - venkov' district for all accounts are opened in 1993.", + "evidence": "A2 contains the information about district.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T1.A2 = 'Brno - venkov') AS REAL) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'", + "amb_query": "SELECT CAST(SUM(T1.A2 IN ('Brno - venkov', 'District of Brno - venkov')) AS FLOAT) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'" + }, + { + "db_id": "financial", + "question": "How many accounts are there in the district of \"Klatovy\"?", + "evidence": "A2 refers to district name", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Klatovy'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Klatovy, Czech Republic', 'Klatovy')" + }, + { + "db_id": "financial", + "question": "How many accounts are there in the district of \"Plzen - sever\"?", + "evidence": "A2 refers to district name", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Plzen - sever'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Plzen - sever', 'Plzen - sever region')" + }, + { + "db_id": "financial", + "question": "How many accounts are there in the district of \"Chomutov\"?", + "evidence": "A2 refers to district name", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Chomutov'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Chomutov, Czech Republic', 'Chomutov')" + }, + { + "db_id": "financial", + "question": "How many accounts in Jicin were opened after 1996?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 = 'Jicin'", + "amb_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 IN ('Jicin district', 'Jicin')" + }, + { + "db_id": "financial", + "question": "How many accounts in Ceska Lipa were opened after 1996?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 = 'Ceska Lipa'", + "amb_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 IN ('Ceska Lipa district', 'Ceska Lipa')" + }, + { + "db_id": "financial", + "question": "How many accounts in Olomouc were opened after 1996?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 = 'Olomouc'", + "amb_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 IN ('Olomouc', 'Olomouc district')" + }, + { + "db_id": "financial", + "question": "Among the account opened, how many female customers who were born before 1950 and stayed in Sokolov?", + "evidence": "Customers refer to clients; Female refers to gender = 'F'; Names of districts appear in column A2", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.gender = 'F' AND STRFTIME('%Y', T2.birth_date) < '1950' AND T1.A2 = 'Sokolov'", + "amb_query": "SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.gender IN ('F', 'feminine', 'Female') AND STRFTIME('%Y', T2.birth_date) < '1950' AND T1.A2 IN ('Sokolov', 'Sokolov, Czech Republic')" + }, + { + "db_id": "financial", + "question": "How many clients opened their accounts in Jesenik branch were women?", + "evidence": "A2 has region names; Woman and female share the same meaning; female refers to gender = 'F'", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' AND T2.A2 = 'Jesenik'", + "amb_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender IN ('F', 'feminine', 'Female') AND T2.A2 IN ('Jesenik', 'Jesenik area')" + }, + { + "db_id": "financial", + "question": "How many of the accounts are from Jesenik district?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 = 'Jesenik'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A2 IN ('Jesenik', 'Jesenik area')" + }, + { + "db_id": "financial", + "question": "How many accounts were opened in Litomerice in 1996?", + "evidence": "A2 refers to district name; Litomerice is one of district names.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 = 'Litomerice'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 IN ('Litomerice area', 'Litomerice')" + }, + { + "db_id": "financial", + "question": "List account ID and account opening date for accounts from 'Prachatice'.", + "evidence": "A2 refers to the names of districts.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Prachatice'", + "amb_query": "SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Prachatice', 'District of Prachatice')" + }, + { + "db_id": "financial", + "question": "Calculate the percentage of account from 'Decin' district for all accounts are opened in 1993.", + "evidence": "A2 contains the information about district.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T1.A2 = 'Decin') AS REAL) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'", + "amb_query": "SELECT CAST(SUM(T1.A2 IN ('Decin', 'Decin, Czech Republic')) AS FLOAT) * 100 / COUNT(account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1993'" + }, + { + "db_id": "financial", + "question": "How many accounts are there in the district of \"Pisek\"?", + "evidence": "A2 refers to district name", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Pisek'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 IN ('Pisek region', 'Pisek')" + }, + { + "db_id": "financial", + "question": "Which accounts placed orders for household payment in Pisek?", + "evidence": "k_symbol = 'SIPO' refers to household payment", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT DISTINCT T2.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.k_symbol = 'SIPO' AND T3.A2 = 'Pisek'", + "amb_query": "SELECT DISTINCT T2.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.k_symbol IN ('household payment type', 'SIPO transaction', 'SIPO') AND T3.A2 IN ('Pisek region', 'Pisek')" + }, + { + "db_id": "financial", + "question": "Please list the accounts whose district is Tabor that are eligible for loans.", + "evidence": "District refers to column A2; when the account type = 'OWNER', it's eligible for loans", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T2.account_id FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T2.account_id = T3.account_id WHERE T3.type = 'OWNER' AND T1.A2 = 'Tabor'", + "amb_query": "SELECT T2.account_id FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T2.account_id = T3.account_id WHERE T3.type IN ('OWNER', 'Account Owner') AND T1.A2 IN ('Tabor district', 'Tabor')" + }, + { + "db_id": "financial", + "question": "How many male clients in 'Hl.m. Praha' district?", + "evidence": "District data appears in the A2; Male means that gender = 'M'", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'M' AND T2.A2 = 'Hl.m. Praha'", + "amb_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender IN ('male', 'man', 'M', 'masculine') AND T2.A2 IN ('Hl.m. Praha', 'Hlavní město Praha')" + }, + { + "db_id": "financial", + "question": "How many accounts in Beroun were opened after 1996?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 = 'Beroun'", + "amb_query": "SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 IN ('Beroun area', 'Beroun')" + }, + { + "db_id": "financial", + "question": "From Year 1995 to 2000, who are the accounts holders from 'west Bohemia'. State the account ID the frequency of statement issuance.", + "evidence": "Accounts holder refers to the person who own this account.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T1.frequency FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'west Bohemia' AND STRFTIME('%Y', T1.date) BETWEEN '1995' AND '2000'", + "amb_query": "SELECT T1.account_id, T1.frequency FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 IN ('Western Bohemia', 'west Bohemia', 'West Bohemia area', 'West Bohemia district') AND STRFTIME('%Y', T1.date) BETWEEN '1995' AND '2000'" + }, + { + "db_id": "financial", + "question": "How many accounts who choose issuance after transaction are staying in East Bohemia region?", + "evidence": "A3 contains the data of region; 'POPLATEK PO OBRATU' represents for 'issuance after transaction'.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A3 = 'east Bohemia' AND T2.frequency = 'POPLATEK PO OBRATU'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE T1.A3 IN ('east Bohemia', 'East Bohemian region', 'East Bohemia area', 'the region of East Bohemia') AND T2.frequency IN ('issuance after transaction', 'POPLATEK PO OBRATU')" + }, + { + "db_id": "financial", + "question": "From Year 1995 to 2000, who are the accounts holders from 'east Bohemia'. State the account ID the frequency of statement issuance.", + "evidence": "Accounts holder refers to the person who own this account.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T1.frequency FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'east Bohemia' AND STRFTIME('%Y', T1.date) BETWEEN '1995' AND '2000'", + "amb_query": "SELECT T1.account_id, T1.frequency FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 IN ('east Bohemia', 'East Bohemian region', 'East Bohemia area', 'the region of East Bohemia') AND STRFTIME('%Y', T1.date) BETWEEN '1995' AND '2000'" + }, + { + "db_id": "financial", + "question": "Please provide a list of clients who were born between 1983 and 1987 and whose account branch is in East Bohemia, along with their IDs.", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.client_id, T3.account_id FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id INNER JOIN account AS T3 ON T2.district_id = T3.district_id and T4.account_id = T3.account_id WHERE T2.A3 = 'east Bohemia' AND STRFTIME('%Y', T1.birth_date) BETWEEN '1983' AND '1987'", + "amb_query": "SELECT T1.client_id, T3.account_id FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id INNER JOIN account AS T3 ON T2.district_id = T3.district_id AND T4.account_id = T3.account_id WHERE T2.A3 IN ('east Bohemia', 'East Bohemian region', 'East Bohemia area', 'the region of East Bohemia') AND STRFTIME('%Y', T1.birth_date) BETWEEN '1983' AND '1987'" + }, + { + "db_id": "financial", + "question": "How many clients who were born in 1920 stay in east Bohemia?", + "evidence": "East Bohemia appears in the column A3, which refers to the region.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.birth_date) = '1920' AND T2.A3 = 'east Bohemia'", + "amb_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.birth_date) = '1920' AND T2.A3 IN ('east Bohemia', 'East Bohemian region', 'East Bohemia area', 'the region of East Bohemia')" + }, + { + "db_id": "financial", + "question": "How many accounts who have region in Prague are eligible for loans?", + "evidence": "A3 contains the data of region", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T1.district_id = T3.district_id WHERE T3.A3 = 'Prague'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T1.district_id = T3.district_id WHERE T3.A3 IN ('Prague city', 'Prague')" + }, + { + "db_id": "financial", + "question": "For the first client who opened his/her account in Prague, what is his/her account ID?", + "evidence": "A3 stands for region names", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'Prague' ORDER BY T1.date ASC LIMIT 1", + "amb_query": "SELECT T1.account_id FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 IN ('Prague city', 'Prague') ORDER BY T1.date ASC LIMIT 1" + }, + { + "db_id": "financial", + "question": "What proportion of customers who have accounts at the Prague branch are female?", + "evidence": "Female refers to gender = 'F'; Percentage of female clients in Prague branch = count[female clients with accounts in Prague branch / count(clients with accounts in Prague branch)] * 100%; A3 may contain information about Prague", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T2.gender = 'F') AS REAL) / COUNT(T2.client_id) * 100 FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.A3 = 'Prague'", + "amb_query": "SELECT CAST(SUM(T2.gender IN ('F', 'feminine', 'Female')) AS FLOAT) / COUNT(T2.client_id) * 100 FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.A3 IN ('Prague city', 'Prague')" + }, + { + "db_id": "financial", + "question": "How many male customers who are living in North Bohemia have average salary greater than 8000?", + "evidence": "Male means that gender = 'M'; A3 refers to region; A11 pertains to average salary.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'M' AND T2.A3 = 'north Bohemia' AND T2.A11 > 8000", + "amb_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender IN ('male', 'man', 'M', 'masculine') AND T2.A3 IN ('Northern Bohemia', 'north Bohemia', 'Region of North Bohemia') AND T2.A11 > 8000" + }, + { + "db_id": "financial", + "question": "How many accounts in North Bohemia has made a transaction with the partner's bank being AB?", + "evidence": "A3 contains the region names; North Bohemia is a region.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.bank = 'AB' AND T1.A3 = 'north Bohemia'", + "amb_query": "SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.bank IN ('bank AB', 'AB', 'AB bank', 'AB financial institution') AND T1.A3 IN ('Northern Bohemia', 'north Bohemia', 'Region of North Bohemia')" + }, + { + "db_id": "financial", + "question": "For the branch which located in the south Bohemia with biggest number of inhabitants, what is the percentage of the male clients?", + "evidence": "Percentage of the male clients = DIVIDE(COUNT(male clients), COUNT(clients)) * 100; Male refers to gender = 'M', A3 is the region name. A4 contains the information about inhabitants.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'south Bohemia' GROUP BY T2.A4 ORDER BY T2.A4 DESC LIMIT 1", + "amb_query": "SELECT CAST(SUM(T1.gender IN ('male', 'man', 'M', 'masculine')) AS FLOAT) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 IN ('Region of South Bohemia', 'South Bohemia area', 'south Bohemia', 'South Bohemia, Czech Republic') GROUP BY T2.A4 ORDER BY T2.A4 DESC LIMIT 1" + }, + { + "db_id": "financial", + "question": "How many female clients' accounts are in the region of South Bohemia?", + "evidence": "Female refers to gender = 'F'; A3 contains the region 'south Bohemia'", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' AND T2.A3 = 'south Bohemia'", + "amb_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender IN ('F', 'feminine', 'Female') AND T2.A3 IN ('Region of South Bohemia', 'South Bohemia area', 'south Bohemia', 'South Bohemia, Czech Republic')" + }, + { + "db_id": "financial", + "question": "List out the id number of client who choose statement of issuance after transaction are Disponent?", + "evidence": "'POPLATEK PO OBRATU' stands for issuance after transaction", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T2.client_id FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T1.frequency = 'POPLATEK PO OBRATU' AND T2.type = 'DISPONENT'", + "amb_query": "SELECT T2.client_id FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T1.frequency IN ('issuance after transaction', 'POPLATEK PO OBRATU') AND T2.type = 'DISPONENT'" + }, + { + "db_id": "financial", + "question": "For accounts in 1993 with statement issued after transaction, list the account ID, district name and district region.", + "evidence": "Records about district names could be found in A2; A3 contains the information about regions. 'POPLATEK PO OBRATU' stands for issuance after transaction", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id, T2.A2, T2.A3 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.frequency = 'POPLATEK PO OBRATU' AND STRFTIME('%Y', T1.date)= '1993'", + "amb_query": "SELECT T1.account_id, T2.A2, T2.A3 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.frequency IN ('issuance after transaction', 'POPLATEK PO OBRATU') AND STRFTIME('%Y', T1.date) = '1993'" + }, + { + "db_id": "financial", + "question": "How many accounts have an owner disposition and request for a statement to be generated upon a transaction?", + "evidence": "Frequency = 'POPLATEK PO OBRATU' stands for issuance after transaction", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T2.type = 'OWNER' AND T1.frequency = 'POPLATEK PO OBRATU'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T2.type IN ('OWNER', 'Account Owner') AND T1.frequency IN ('issuance after transaction', 'POPLATEK PO OBRATU')" + }, + { + "db_id": "financial", + "question": "What is the average amount of loan which are still on running contract with statement issuance after each transaction?", + "evidence": "status = 'C' stands for running contract, OK so far; status = 'D' stands for running contract, client in debt. 'POPLATEK PO OBRATU' stands for issuance after transaction", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency = 'POPLATEK PO OBRATU'", + "amb_query": "SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency IN ('issuance after transaction', 'POPLATEK PO OBRATU')" + }, + { + "db_id": "financial", + "question": "How many customers who choose statement of weekly issuance are Owner?", + "evidence": "'POPLATEK TYDNE' stands for weekly issuance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T2.type = 'OWNER' AND T1.frequency = 'POPLATEK TYDNE'", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T2.type IN ('OWNER', 'Account Owner') AND T1.frequency IN ('weekly account statement', 'weekly issuance', 'POPLATEK TYDNE', 'weekly statement', 'weekly report')" + }, + { + "db_id": "financial", + "question": "Among the accounts who have approved loan date in 1997, list out the accounts that have the lowest approved amount and choose weekly issuance statement.", + "evidence": "'POPLATEK TYDNE' stands for weekly issuance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T2.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency = 'POPLATEK TYDNE' ORDER BY T1.amount LIMIT 1", + "amb_query": "SELECT T2.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency IN ('weekly account statement', 'weekly issuance', 'POPLATEK TYDNE', 'weekly statement', 'weekly report') ORDER BY T1.amount LIMIT 1" + }, + { + "db_id": "financial", + "question": "Among the weekly issuance accounts, how many have a loan of under 200000?", + "evidence": "frequency = 'POPLATEK TYDNE' stands for weekly issuance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE T2.frequency = 'POPLATEK TYDNE' AND T1.amount < 200000", + "amb_query": "SELECT COUNT(T1.account_id) FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE T2.frequency IN ('weekly account statement', 'weekly issuance', 'POPLATEK TYDNE', 'weekly statement', 'weekly report') AND T1.amount < 200000" + }, + { + "db_id": "financial", + "question": "What percentage of male clients request for weekly statements to be issued?", + "evidence": "Percentage of male clients = [count(male clients who requested weekly statements / count(clients who requested weekly statements)] * 100%; Male means gender = 'M'; 'POPLATEK TYDNE' stands for weekly issuance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T3 ON T1.district_id = T3.district_id INNER JOIN account AS T2 ON T2.district_id = T3.district_id INNER JOIN disp as T4 on T1.client_id = T4.client_id AND T2.account_id = T4.account_id WHERE T2.frequency = 'POPLATEK TYDNE'", + "amb_query": "SELECT CAST(SUM(T1.gender IN ('male', 'man', 'M', 'masculine')) AS FLOAT) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T3 ON T1.district_id = T3.district_id INNER JOIN account AS T2 ON T2.district_id = T3.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id AND T2.account_id = T4.account_id WHERE T2.frequency IN ('weekly account statement', 'weekly issuance', 'POPLATEK TYDNE', 'weekly statement', 'weekly report')" + }, + { + "db_id": "financial", + "question": "How many clients who choose statement of weekly issuance are Owner?", + "evidence": "Frequency = 'POPLATEK TYDNE' refers to weekly issuance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T2.account_id = T1.account_id WHERE T1.frequency = 'POPLATEK TYDNE' AND T2.type = 'OWNER'", + "amb_query": "SELECT COUNT(T2.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T2.account_id = T1.account_id WHERE T1.frequency IN ('weekly account statement', 'weekly issuance', 'POPLATEK TYDNE', 'weekly statement', 'weekly report') AND T2.type IN ('OWNER', 'Account Owner')" + }, + { + "db_id": "financial", + "question": "How many loan accounts are for pre-payment of duration of 24 months with weekly issuance of statement.", + "evidence": "Frequency = 'POPLATEK TYDNE' referes to weekly statement", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T2.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.duration = 24 AND T1.frequency = 'POPLATEK TYDNE'", + "amb_query": "SELECT COUNT(T2.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.duration = 24 AND T1.frequency IN ('weekly account statement', 'weekly issuance', 'POPLATEK TYDNE', 'weekly statement', 'weekly report')" + }, + { + "db_id": "financial", + "question": "List the account IDs with monthly issuance of statements.", + "evidence": "'POPLATEK MESICNE' stands for monthly issuance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT account_id FROM account WHERE Frequency = 'POPLATEK MESICNE'", + "amb_query": "SELECT account_id FROM account WHERE Frequency IN ('monthly account statement', 'POPLATEK MESICNE', 'monthly statement issuance', 'monthly account issuance', 'monthly statement')" + }, + { + "db_id": "financial", + "question": "After making a credit card withdrawal, how many account/s with monthly issuance has a negative balance?", + "evidence": "Negative balance means balance < 0; Operation = 'VYBER KARTOU' stands for credit card withdraw. Frequency = 'POPLATEK MESICNE' stands for monthly issurance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE T1.balance < 0 AND T1.operation = 'VYBER KARTOU' AND T2.frequency = 'POPLATEK MESICNE'", + "amb_query": "SELECT COUNT(T1.account_id) FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE T1.balance < 0 AND T1.operation IN ('VYBER KARTOU', 'card transaction withdrawal', 'withdrawal by card') AND T2.frequency IN ('monthly account statement', 'POPLATEK MESICNE', 'monthly statement issuance', 'monthly account issuance', 'monthly statement')" + }, + { + "db_id": "financial", + "question": "Between 1/1/1995 and 12/31/1997, how many loans in the amount of at least 250,000 per account that chose monthly statement issuance were approved?", + "evidence": "Frequency = 'POPLATEK MESICNE' stands for monthly issurance", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.date BETWEEN '1995-01-01' AND '1997-12-31' AND T1.frequency = 'POPLATEK MESICNE' AND T2.amount >= 250000", + "amb_query": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.date BETWEEN '1995-01-01' AND '1997-12-31' AND T1.frequency IN ('monthly account statement', 'POPLATEK MESICNE', 'monthly statement issuance', 'monthly account issuance', 'monthly statement') AND T2.amount >= 250000" + }, + { + "db_id": "financial", + "question": "How many high-level credit cards have \"OWNER\" type of disposition?", + "evidence": "High-level credit cards refers to the cards with the gold type.", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.card_id) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type = 'gold' AND T2.type = 'OWNER'", + "amb_query": "SELECT COUNT(T1.card_id) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type IN ('gold card', 'gold', 'gold credit card', 'gold-level card') AND T2.type IN ('OWNER', 'Account Owner')" + }, + { + "db_id": "financial", + "question": "Please list the account types that are not eligible for loans, and the average income of residents in the district where the account is located exceeds $8000 but is no more than $9000.", + "evidence": "A11 represents the average salary; Salary and income share the similar meanings; when the account type = 'OWNER', it's eligible for loans", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T3.type FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T2.account_id = T3.account_id WHERE T3.type != 'OWNER' AND T1.A11 BETWEEN 8000 AND 9000", + "amb_query": "SELECT T3.type FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T2.account_id = T3.account_id WHERE NOT T3.type IN ('OWNER', 'Account Owner') AND T1.A11 BETWEEN 8000 AND 9000" + }, + { + "db_id": "financial", + "question": "How many 'classic' cards are eligible for loan?", + "evidence": "when the account type = 'OWNER', it's eligible for loan", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.card_id) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type = 'classic' AND T2.type = 'OWNER'", + "amb_query": "SELECT COUNT(T1.card_id) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type IN ('classic', 'classic card', 'classic category') AND T2.type IN ('OWNER', 'Account Owner')" + }, + { + "db_id": "financial", + "question": "Who is the owner of the account with the largest loan amount?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.client_id FROM disp AS T1 INNER JOIN account AS T3 ON T1.account_id = T3.account_id INNER JOIN loan AS T2 ON T3.account_id = T2.account_id WHERE T1.type = 'OWNER' ORDER BY T2.amount DESC LIMIT 1", + "amb_query": "SELECT T1.client_id FROM disp AS T1 INNER JOIN account AS T3 ON T1.account_id = T3.account_id INNER JOIN loan AS T2 ON T3.account_id = T2.account_id WHERE T1.type IN ('OWNER', 'Account Owner') ORDER BY T2.amount DESC LIMIT 1" + }, + { + "db_id": "financial", + "question": "How many owner and disponent dispositions are there from account number 1 to account number 10?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT SUM(type = 'OWNER') , SUM(type = 'DISPONENT') FROM disp WHERE account_id BETWEEN 1 AND 10", + "amb_query": "SELECT SUM(type IN ('OWNER', 'Account Owner')), SUM(type = 'DISPONENT') FROM disp WHERE account_id BETWEEN 1 AND 10" + }, + { + "db_id": "financial", + "question": "List all ID and district for clients that can only have the right to issue permanent orders or apply for loans.", + "evidence": "Only the owner accounts have the right to issue permanent orders or apply for loans", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T3.client_id, T2.district_id, T2.A2 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T1.account_id = T3.account_id WHERE T3.type = 'OWNER'", + "amb_query": "SELECT T3.client_id, T2.district_id, T2.A2 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T1.account_id = T3.account_id WHERE T3.type IN ('OWNER', 'Account Owner')" + }, + { + "db_id": "financial", + "question": "Provide the IDs and age of the client with high level credit card, which is eligible for loans.", + "evidence": "the credit card is high-level refers to card.type = 'gold'; eligible for loans refers to disp.type = 'OWNER'", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.client_id, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T3.birth_date) FROM disp AS T1 INNER JOIN card AS T2 ON T2.disp_id = T1.disp_id INNER JOIN client AS T3 ON T1.client_id = T3.client_id WHERE T2.type = 'gold' AND T1.type = 'OWNER'", + "amb_query": "SELECT T1.client_id, STRFTIME('%Y', CURRENT_TIMESTAMP()) - STRFTIME('%Y', T3.birth_date) FROM disp AS T1 INNER JOIN card AS T2 ON T2.disp_id = T1.disp_id INNER JOIN client AS T3 ON T1.client_id = T3.client_id WHERE T2.type IN ('gold card', 'gold', 'gold credit card', 'gold-level card') AND T1.type IN ('OWNER', 'Account Owner')" + }, + { + "db_id": "financial", + "question": "How many male customers who were born between 1974 and 1976 have made a payment on their home in excess of $4000?", + "evidence": "Man and male refers to gender = 'M'; 'SIPO' stands for household payment", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.account_id) FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T4 ON T2.account_id = T4.account_id INNER JOIN client AS T3 ON T4.client_id = T3.client_id WHERE STRFTIME('%Y', T3.birth_date) BETWEEN '1974' AND '1976' AND T3.gender = 'M' AND T1.amount > 4000 AND T1.k_symbol = 'SIPO'", + "amb_query": "SELECT COUNT(T1.account_id) FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T4 ON T2.account_id = T4.account_id INNER JOIN client AS T3 ON T4.client_id = T3.client_id WHERE STRFTIME('%Y', T3.birth_date) BETWEEN '1974' AND '1976' AND T3.gender IN ('male', 'man', 'M', 'masculine') AND T1.amount > 4000 AND T1.k_symbol IN ('household payment type', 'SIPO transaction', 'SIPO')" + }, + { + "db_id": "financial", + "question": "How many female customers have a junior credit card?", + "evidence": "Female refers to gender = 'F'", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN card AS T3 ON T2.disp_id = T3.disp_id WHERE T1.gender = 'F' AND T3.type = 'junior'", + "amb_query": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN card AS T3 ON T2.disp_id = T3.disp_id WHERE T1.gender IN ('F', 'feminine', 'Female') AND T3.type IN ('junior type', 'junior credit card', 'junior client card', 'junior')" + }, + { + "db_id": "financial", + "question": "Which are the top ten withdrawals (non-credit card) by district names for the month of January 1996?", + "evidence": "Non-credit card withdraws refers to type = 'VYDAJ'; January 1996 can be found by date LIKE '1996-01%' in the database; A2 means district names", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT DISTINCT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type = 'VYDAJ' AND T3.date LIKE '1996-01%' ORDER BY A2 ASC LIMIT 10", + "amb_query": "SELECT DISTINCT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type IN ('VYDAJ operation', 'VYDAJ type', 'VYDAJ transaction', 'VYDAJ') AND T3.date LIKE '1996-01%' ORDER BY A2 ASC LIMIT 10" + }, + { + "db_id": "financial", + "question": "Please list the name of the districts with accounts that made withdrawal transactions.", + "evidence": "A2 refers to district name; type = 'VYDAJ' stands for withdrawal transactions", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT DISTINCT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type = 'VYDAJ'", + "amb_query": "SELECT DISTINCT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type IN ('VYDAJ operation', 'VYDAJ type', 'VYDAJ transaction', 'VYDAJ')" + }, + { + "db_id": "financial", + "question": "How much is the average amount in credit card made by account holders in a month, in year 2021?", + "evidence": "Operation = 'VYBER KARTOU' refers to credit card withdrawn", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT AVG(T4.amount) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE STRFTIME('%Y', T4.date) = '1998' AND T4.operation = 'VYBER KARTOU'", + "amb_query": "SELECT AVG(T4.amount) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE STRFTIME('%Y', T4.date) = '1998' AND T4.operation IN ('VYBER KARTOU', 'card transaction withdrawal', 'withdrawal by card')" + }, + { + "db_id": "financial", + "question": "Who are the account holder identification numbers whose who have transactions on the credit card with the amount is less than the average, in 1998?", + "evidence": "Operation = 'VYBER KARTOU' refers to credit card withdrawal", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T1.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1998' AND T1.operation = 'VYBER KARTOU' AND T1.amount < (SELECT AVG(amount) FROM trans WHERE STRFTIME('%Y', date) = '1998')", + "amb_query": "SELECT T1.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1998' AND T1.operation IN ('VYBER KARTOU', 'card transaction withdrawal', 'withdrawal by card') AND T1.amount < (SELECT AVG(amount) FROM trans WHERE STRFTIME('%Y', date) = '1998')" + }, + { + "db_id": "financial", + "question": "How many credit card withdrawals were recorded after 1995?", + "evidence": "Operation = 'VYBER KARTOU' means credit card withdrawals", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT COUNT(account_id) FROM trans WHERE STRFTIME('%Y', date) > '1995' AND operation = 'VYBER KARTOU'", + "amb_query": "SELECT COUNT(account_id) FROM trans WHERE STRFTIME('%Y', date) > '1995' AND operation IN ('VYBER KARTOU', 'card transaction withdrawal', 'withdrawal by card')" + }, + { + "db_id": "financial", + "question": "List all the withdrawals in cash transactions that the client with the id 3356 makes.", + "evidence": "operation = 'VYBER' refers to withdrawal in cash", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T4.trans_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE T1.client_id = 3356 AND T4.operation = 'VYBER'", + "amb_query": "SELECT T4.trans_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE T1.client_id = 3356 AND T4.operation IN ('VYBER', 'withdrawal', 'cash withdrawal', 'cash out')" + }, + { + "db_id": "financial", + "question": "What are the accounts that have gold credit cards?", + "evidence": "", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T2.account_id FROM disp AS T2 INNER JOIN card AS T1 ON T1.disp_id = T2.disp_id WHERE T1.type = 'gold'", + "amb_query": "SELECT T2.account_id FROM disp AS T2 INNER JOIN card AS T1 ON T1.disp_id = T2.disp_id WHERE T1.type IN ('gold card', 'gold', 'gold credit card', 'gold-level card')" + }, + { + "db_id": "financial", + "question": "How many percent of 'Gold' cards were issued prior to 1998?", + "evidence": "Percent of Gold = [ count(type = 'gold' and issued date < 1998) / count(all cards)] * 100%", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT CAST(SUM(type = 'gold' AND STRFTIME('%Y', issued) < '1998') AS REAL) * 100 / COUNT(card_id) FROM card", + "amb_query": "SELECT CAST(SUM(type IN ('gold card', 'gold', 'gold credit card', 'gold-level card') AND STRFTIME('%Y', issued) < '1998') AS FLOAT) * 100 / COUNT(card_id) FROM card" + }, + { + "db_id": "financial", + "question": "List all the clients' IDs whose junior credit cards were issued after 1996.", + "evidence": "After 1996 means date > = '1997-01-01", + "schema_text_wo_content": "\nTable account, columns = [`account_id` (account id), `district_id` (location of branch), `frequency` (frequency), `date` (date)]\nTable card, columns = [`card_id` (credit card id), `disp_id` (disposition id), `type` (type), `issued` (issued)]\nTable client, columns = [`client_id` (client_id), `gender` (gender), `birth_date` (birth_date), `district_id` (location of branch)]\nTable disp, columns = [`disp_id` (disposition id), `client_id` (client_id), `account_id` (account_id), `type` (type)]\nTable district, columns = [`district_id` (location of branch), `a2` (district_name), `a3` (region), `a4` (number of inhabitants), `a5` (no. of municipalities with inhabitants < 499), `a6` (no. of municipalities with inhabitants 500-1999), `a7` (no. of municipalities with inhabitants 2000-9999), `a8` (no. of municipalities with inhabitants > 10000), `a9` (a9), `a10` (ratio of urban inhabitants), `a11` (average salary), `a12` (unemployment rate 1995), `a13` (unemployment rate 1996), `a14` (no. of entrepreneurs per 1000 inhabitants), `a15` (no. of committed crimes 1995), `a16` (no. of committed crimes 1996)]\nTable loan, columns = [`loan_id` (loan_id), `account_id` (account_id), `date` (date), `amount` (amount), `duration` (duration), `payments` (monthly payments), `status` (status)]\nTable order, columns = [`order_id` (order_id), `account_id` (account_id), `bank_to` (bank of the recipient), `account_to` (account of the recipient), `amount` (debited amount), `k_symbol` (characterization of the payment)]\nTable trans, columns = [`trans_id` (transaction id), `account_id` (account_id), `date` (date of transaction), `type` (+/- transaction), `operation` (mode of transaction), `amount` (amount of money), `balance` (balance after transaction), `k_symbol` (characterization of the transaction), `bank` (bank of the partner), `account` (account of the partner)]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "schema_text_with_content": "\nTable account, columns = [`account_id` (account id. Example values: [1, 2, 3]), `district_id` (location of branch. Example values: [18, 1, 5]), `frequency` (frequency. Example values: [monthly account issuance, monthly statement issuance, monthly statement]), `date` (date. Example values: [1995-03-24, 1993-02-26, 1997-07-07])]\nTable card, columns = [`card_id` (credit card id. Example values: [1, 2, 3]), `disp_id` (disposition id. Example values: [9, 19, 41]), `type` (type. Example values: [gold-level card, classic category, gold card]), `issued` (issued. Example values: [1998-10-16, 1998-03-13, 1995-09-03])]\nTable client, columns = [`client_id` (client_id. Example values: [1, 2, 3]), `gender` (gender. Example values: [Female, masculine, male]), `birth_date` (birth_date. Example values: [1970-12-13, 1945-02-04, 1940-10-09]), `district_id` (location of branch. Example values: [18, 1, 5])]\nTable disp, columns = [`disp_id` (disposition id. Example values: [1, 2, 3]), `client_id` (client_id. Example values: [1, 2, 3]), `account_id` (account_id. Example values: [1, 2, 3]), `type` (type. Example values: [Account Owner, DISPONENT, OWNER])]\nTable district, columns = [`district_id` (location of branch. Example values: [1, 2, 3]), `a2` (district_name. Example values: [Hlavní město Praha, Benesov, Beroun area]), `a3` (region. Example values: [Prague city, central Bohemia, South Bohemia, Czech Republic]), `a4` (number of inhabitants. Example values: [1204953, 88884, 75232]), `a5` (no. of municipalities with inhabitants < 499. Example values: [0, 80, 55]), `a6` (no. of municipalities with inhabitants 500-1999. Example values: [0, 26, 29]), `a7` (no. of municipalities with inhabitants 2000-9999. Example values: [0, 6, 4]), `a8` (no. of municipalities with inhabitants > 10000. Example values: [1, 2, 3]), `a9` (a9. Example values: [1, 5, 6]), `a10` (ratio of urban inhabitants. Example values: [100.0, 46.7, 41.7]), `a11` (average salary. Example values: [12541, 8507, 8980]), `a12` (unemployment rate 1995. Example values: [0.2, 1.6, 1.9]), `a13` (unemployment rate 1996. Example values: [0.43, 1.85, 2.21]), `a14` (no. of entrepreneurs per 1000 inhabitants. Example values: [167, 132, 111]), `a15` (no. of committed crimes 1995. Example values: [85677, 2159, 2824]), `a16` (no. of committed crimes 1996. Example values: [99107, 2674, 2813])]\nTable loan, columns = [`loan_id` (loan_id. Example values: [4959, 4961, 4962]), `account_id` (account_id. Example values: [2, 19, 25]), `date` (date. Example values: [1994-01-05, 1996-04-29, 1997-12-08]), `amount` (amount. Example values: [80952, 30276, 318480]), `duration` (duration. Example values: [24, 12, 60]), `payments` (monthly payments. Example values: [3373.0, 2523.0, 5308.0]), `status` (status. Example values: [A, B, D])]\nTable order, columns = [`order_id` (order_id. Example values: [29401, 29402, 29403]), `account_id` (account_id. Example values: [1, 2, 3]), `bank_to` (bank of the recipient. Example values: [YZ, ST, QR]), `account_to` (account of the recipient. Example values: [87144583, 89597016, 13943797]), `amount` (debited amount. Example values: [2452.0, 3372.7, 7266.0]), `k_symbol` (characterization of the payment. Example values: [SIPO, UVER, ])]\nTable trans, columns = [`trans_id` (transaction id. Example values: [1, 5, 6]), `account_id` (account_id. Example values: [1, 2, 3]), `date` (date of transaction. Example values: [1995-03-24, 1995-04-13, 1995-05-13]), `type` (+/- transaction. Example values: [PRIJEM, VYDAJ transaction, VYDAJ operation]), `operation` (mode of transaction. Example values: [VKLAD, PREVOD Z UCTU, PREVOD NA UCET]), `amount` (amount of money. Example values: [1000, 3679, 2452]), `balance` (balance after transaction. Example values: [1000, 4679, 20977]), `k_symbol` (characterization of the transaction. Example values: [None, household payment type, SIPO transaction]), `bank` (bank of the partner. Example values: [None, bank AB, AB financial institution]), `account` (account of the partner. Example values: [None, 41403269, 87144583])]\nforeign keys = [account.district_id = district.district_id, card.disp_id = disp.disp_id, client.district_id = district.district_id, disp.client_id = client.client_id, disp.account_id = account.account_id, loan.account_id = account.account_id, order.account_id = account.account_id, trans.account_id = account.account_id]", + "ori_query": "SELECT T2.client_id FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type = 'junior' AND T1.issued >= '1997-01-01'", + "amb_query": "SELECT T2.client_id FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type IN ('junior type', 'junior credit card', 'junior client card', 'junior') AND T1.issued >= '1997-01-01'" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the ratio of outpatient to inpatient followed up treatment among all the 'DM, SJS, RA' diagnosed patient?", + "evidence": "'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'DM, SJS, RA'", + "amb_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis IN ('Diagnosis of DM, SJS, RA', 'DM, SJS, RA')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the ratio of outpatient to inpatient followed up treatment among all the 'MCTD, SJS' diagnosed patient?", + "evidence": "'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'MCTD, SJS'", + "amb_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis IN ('Diagnosis of MCTD and SJS', 'MCTD, SJS')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the ratio of outpatient to inpatient followed up treatment among all the 'PM\u001dPSS\u001dRA' diagnosed patient?", + "evidence": "'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'PM\u001dPSS\u001dRA'", + "amb_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis IN ('PM\u001dPSS\u001dRA', 'PSS and RA and PM')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the ratio of outpatient to inpatient followed up treatment among all the 'Weber-Christian, PM' diagnosed patient?", + "evidence": "'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'Weber-Christian, PM'", + "amb_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis IN ('Weber-Christian PM', 'Weber-Christian, PM')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the ratio of outpatient to inpatient followed up treatment among all the 'PSS(CREST)' diagnosed patient?", + "evidence": "'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'PSS(CREST)'", + "amb_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis IN ('PSS(CREST)', 'PSS (CREST) diagnosis type')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who were diagnosed with SJS, PSS, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SJS, PSS' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "amb_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SJS PSS diagnosis', 'SJS, PSS', 'SJS, PSS condition') AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who were diagnosed with Hypergammmaglobulinemia, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'Hypergammmaglobulinemia' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "amb_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('Hypergammmaglobulinemia', 'Diagnosis of Hypergammaglobulinemia') AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who were diagnosed with Vasculitis synd. susp, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'Vasculitis synd. susp' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "amb_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('Vasculitis synd. susp', 'suspected Vasculitis syndrome') AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who were diagnosed with SJS susp, RA susp, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SJS susp, RA susp' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "amb_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SJS susp, RA susp', 'SJS and RA diagnosis') AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who were diagnosed with ANAPHYLACTOID PURPURA NEPHRITIS, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'ANAPHYLACTOID PURPURA NEPHRITIS' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "amb_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('ANAPHYLACTOID PURPURA NEPHRITIS', 'ANAPHYLACTOID PURPURA NEPHRITIS diagnosis') AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal anti-SSB and are diagnosed with PSS susp in the examination?", + "evidence": "normal anti-SSB refers to SSB IN('-', '+-'); '-' is expressed as 'negative' and '+-' is expressed as '0' in the database ; diagnosed with SLE refers to Diagnosis = 'SLE'; Should compute the number of distinct ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis = 'PSS susp'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis IN ('PSS susp diagnosis', 'PSS susp')" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal anti-SSB and are diagnosed with Sarcoidosis in the examination?", + "evidence": "normal anti-SSB refers to SSB IN('-', '+-'); '-' is expressed as 'negative' and '+-' is expressed as '0' in the database ; diagnosed with SLE refers to Diagnosis = 'SLE'; Should compute the number of distinct ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis = 'Sarcoidosis'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis IN ('Sarcoidosis disease', 'Sarcoidosis')" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal anti-SSB and are diagnosed with PSS, PM, SJS in the examination?", + "evidence": "normal anti-SSB refers to SSB IN('-', '+-'); '-' is expressed as 'negative' and '+-' is expressed as '0' in the database ; diagnosed with SLE refers to Diagnosis = 'SLE'; Should compute the number of distinct ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis = 'PSS, PM, SJS'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis IN ('PSS, PM, SJS', 'PSS and PM and SJS')" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal anti-SSB and are diagnosed with SJS\u001dMCTD in the examination?", + "evidence": "normal anti-SSB refers to SSB IN('-', '+-'); '-' is expressed as 'negative' and '+-' is expressed as '0' in the database ; diagnosed with SLE refers to Diagnosis = 'SLE'; Should compute the number of distinct ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis = 'SJS\u001dMCTD'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis IN ('SJS\u001dMCTD', 'SJS with MCTD')" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal anti-SSB and are diagnosed with McArdle in the examination?", + "evidence": "normal anti-SSB refers to SSB IN('-', '+-'); '-' is expressed as 'negative' and '+-' is expressed as '0' in the database ; diagnosed with SLE refers to Diagnosis = 'SLE'; Should compute the number of distinct ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis = 'McArdle'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis IN ('McArdle syndrome', 'McArdle')" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients diagnosed with RA, SJS susp have a normal white blood cell level?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; normal white blood cell level refers to WBC between 3.5 and 9.0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'RA, SJS susp' AND T2.WBC BETWEEN 3.5 AND 9", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('RA, SJS susp', 'RA SJS susp') AND T2.WBC BETWEEN 3.5 AND 9" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients diagnosed with DLE, SLE susp have a normal white blood cell level?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; normal white blood cell level refers to WBC between 3.5 and 9.0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'DLE, SLE susp' AND T2.WBC BETWEEN 3.5 AND 9", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('DLE, SLE susp', 'DLE SLE susp diagnosis') AND T2.WBC BETWEEN 3.5 AND 9" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients diagnosed with SLE\u001dSJS have a normal white blood cell level?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; normal white blood cell level refers to WBC between 3.5 and 9.0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE\u001dSJS' AND T2.WBC BETWEEN 3.5 AND 9", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SLE SJS condition', 'SLE\u001dSJS') AND T2.WBC BETWEEN 3.5 AND 9" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients diagnosed with PM, RA, SJS have a normal white blood cell level?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; normal white blood cell level refers to WBC between 3.5 and 9.0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'PM, RA, SJS' AND T2.WBC BETWEEN 3.5 AND 9", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('PM, RA, SJS', 'PM RA SJS diagnosis') AND T2.WBC BETWEEN 3.5 AND 9" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients diagnosed with vasculitis, TA susp have a normal white blood cell level?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; normal white blood cell level refers to WBC between 3.5 and 9.0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'vasculitis, TA susp' AND T2.WBC BETWEEN 3.5 AND 9", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('vasculitis, TA susp', 'diagnosis of vasculitis, TA susp') AND T2.WBC BETWEEN 3.5 AND 9" + }, + { + "db_id": "thrombosis_prediction", + "question": "Provide the ID, sex, birthday of all patients diagnosed with 'collagen susp' that are within the UN normal index.", + "evidence": "within the UN normal index refers to UN < 30; Diagnosis = 'RA'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'collagen susp'", + "amb_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis IN ('collagen suspension', 'collagen diagnosis', 'collagen susp', 'collagen disorder')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Provide the ID, sex, birthday of all patients diagnosed with 'SLE SJS susp' that are within the UN normal index.", + "evidence": "within the UN normal index refers to UN < 30; Diagnosis = 'RA'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'SLE SJS susp'", + "amb_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis IN ('SLE and SJS susp', 'SLE SJS susp')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Provide the ID, sex, birthday of all patients diagnosed with 'RA, PSS' that are within the UN normal index.", + "evidence": "within the UN normal index refers to UN < 30; Diagnosis = 'RA'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'RA, PSS'", + "amb_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis IN ('RA, PSS condition', 'RA, PSS', 'Rheumatoid Arthritis and PSS')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Provide the ID, sex, birthday of all patients diagnosed with 'RA susp, SJS susp' that are within the UN normal index.", + "evidence": "within the UN normal index refers to UN < 30; Diagnosis = 'RA'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'RA susp, SJS susp'", + "amb_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis IN ('RA susp, SJS susp', 'RA susp, SJS diagnosis')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Provide the ID, sex, birthday of all patients diagnosed with 'Raynaud's phenomenon' that are within the UN normal index.", + "evidence": "within the UN normal index refers to UN < 30; Diagnosis = 'RA'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'Raynaud's phenomenon'", + "amb_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis IN ('RA susp, SJS susp', 'RA susp, SJS diagnosis')" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients who are diagnosed with RA (seronegative), how many of them have a normal level of total protein?", + "evidence": "diagnosed with SJS refers to Diagnosis = 'SJS'; normal level of total protein refers to TP > 6.0 and TP < 8.5;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'RA (seronegative)' AND T2.TP > 6.0 AND T2.TP < 8.5", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('RA (seronegative)', 'RA diagnosis (seronegative)', 'RA seronegative') AND T2.TP > 6.0 AND T2.TP < 8.5" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients who are diagnosed with infectious mononucleosis, how many of them have a normal level of total protein?", + "evidence": "diagnosed with SJS refers to Diagnosis = 'SJS'; normal level of total protein refers to TP > 6.0 and TP < 8.5;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'infectious mononucleosis' AND T2.TP > 6.0 AND T2.TP < 8.5", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('infectious mononucleosis', 'infectious mononucleosis diagnosis', 'kissing disease') AND T2.TP > 6.0 AND T2.TP < 8.5" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients who are diagnosed with SLE, APS susp, how many of them have a normal level of total protein?", + "evidence": "diagnosed with SJS refers to Diagnosis = 'SJS'; normal level of total protein refers to TP > 6.0 and TP < 8.5;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE, APS susp' AND T2.TP > 6.0 AND T2.TP < 8.5", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SLE, APS susp', 'SLE APS condition') AND T2.TP > 6.0 AND T2.TP < 8.5" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients who are diagnosed with SLE, APS, SJS susp, how many of them have a normal level of total protein?", + "evidence": "diagnosed with SJS refers to Diagnosis = 'SJS'; normal level of total protein refers to TP > 6.0 and TP < 8.5;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE, APS, SJS susp' AND T2.TP > 6.0 AND T2.TP < 8.5", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SLE, APS, SJS condition', 'SLE, APS, SJS susp') AND T2.TP > 6.0 AND T2.TP < 8.5" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients who are diagnosed with PN, how many of them have a normal level of total protein?", + "evidence": "diagnosed with SJS refers to Diagnosis = 'SJS'; normal level of total protein refers to TP > 6.0 and TP < 8.5;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'PN' AND T2.TP > 6.0 AND T2.TP < 8.5", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('PN condition', 'diagnosis of PN', 'PN') AND T2.TP > 6.0 AND T2.TP < 8.5" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with PIT.", + "evidence": "PLT > 100 and PLT < 400 means platelet level is within the normal range; PLT < 100 and PLT > 400 means platelet level is not within the normal range; diagnosed with MCTD refers to Diagnosis = 'MCTD';", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'PIT' AND T2.PLT BETWEEN 100 AND 400", + "amb_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('PIT illness', 'PIT') AND T2.PLT BETWEEN 100 AND 400" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with PN, AORTITIS susp.", + "evidence": "PLT > 100 and PLT < 400 means platelet level is within the normal range; PLT < 100 and PLT > 400 means platelet level is not within the normal range; diagnosed with MCTD refers to Diagnosis = 'MCTD';", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'PN, AORTITIS susp' AND T2.PLT BETWEEN 100 AND 400", + "amb_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'PN, AORTITIS susp' AND T2.PLT BETWEEN 100 AND 400" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with ASO .", + "evidence": "PLT > 100 and PLT < 400 means platelet level is within the normal range; PLT < 100 and PLT > 400 means platelet level is not within the normal range; diagnosed with MCTD refers to Diagnosis = 'MCTD';", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'ASO ' AND T2.PLT BETWEEN 100 AND 400", + "amb_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('ASO ', 'ASO condition') AND T2.PLT BETWEEN 100 AND 400" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with BEHCET-vasculo.", + "evidence": "PLT > 100 and PLT < 400 means platelet level is within the normal range; PLT < 100 and PLT > 400 means platelet level is not within the normal range; diagnosed with MCTD refers to Diagnosis = 'MCTD';", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'BEHCET-vasculo' AND T2.PLT BETWEEN 100 AND 400", + "amb_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('BEHCET condition', 'BEHCET-vasculo') AND T2.PLT BETWEEN 100 AND 400" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with Adult STILL.", + "evidence": "PLT > 100 and PLT < 400 means platelet level is within the normal range; PLT < 100 and PLT > 400 means platelet level is not within the normal range; diagnosed with MCTD refers to Diagnosis = 'MCTD';", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'Adult STILL' AND T2.PLT BETWEEN 100 AND 400", + "amb_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'Adult STILL' AND T2.PLT BETWEEN 100 AND 400" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the ratio of outpatient to inpatient followed up treatment among all the 'SLE' diagnosed patient?", + "evidence": "'SLE' diagnosed patient means Diagnosis = 'SLE'; inpatient refers to Admission = '+'; outpatient refers to Admission = '-'; calculation = DIVIDE(COUNT(ID) where Diagnosis = 'SLE' and Admission = '+', COUNT(ID) where Diagnosis = 'SLE' and Admission = '-')", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis = 'SLE'", + "amb_query": "SELECT SUM(CASE WHEN Admission = '+' THEN 1.0 ELSE 0 END) / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE Diagnosis IN ('SLE disease', 'Systemic Lupus Erythematosus', 'Lupus', 'SLE')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the average blood albumin level for female patients with a PLT greater than 400 who have been diagnosed with SLE?", + "evidence": "average blood albumin level refers to AVG(ALB); female refers to SEX = 'F'; PLT greater than 400 refers to PLT > 400; diagnosed with SLE refers to Diagnosis= 'SLE'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT AVG(T2.ALB) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 400 AND T1.Diagnosis = 'SLE' AND T1.SEX = 'F'", + "amb_query": "SELECT AVG(T2.ALB) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 400 AND T1.Diagnosis IN ('SLE disease', 'Systemic Lupus Erythematosus', 'Lupus', 'SLE') AND T1.SEX IN ('F', 'female', 'feminine', 'Female')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who were diagnosed with SLE, who is the oldest with normal hemoglobin level. Provide the ID and sex.", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; The larger the birthday value, the younger the person is, and vice versa; normal hemoglobin level refers to 10 < HGB < 17;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", + "amb_query": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SLE disease', 'Systemic Lupus Erythematosus', 'Lupus', 'SLE') AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal anti-SSB and are diagnosed with SLE in the examination?", + "evidence": "normal anti-SSB refers to SSB IN('-', '+-'); '-' is expressed as 'negative' and '+-' is expressed as '0' in the database ; diagnosed with SLE refers to Diagnosis = 'SLE'; Should compute the number of distinct ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis = 'SLE'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SSB = 'negative' OR '0' AND T1.Diagnosis IN ('SLE disease', 'Systemic Lupus Erythematosus', 'Lupus', 'SLE')" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients diagnosed with SLE have a normal white blood cell level?", + "evidence": "diagnosed with SLE refers to Diagnosis = 'SLE'; normal white blood cell level refers to WBC between 3.5 and 9.0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.WBC BETWEEN 3.5 AND 9", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SLE disease', 'Systemic Lupus Erythematosus', 'Lupus', 'SLE') AND T2.WBC BETWEEN 3.5 AND 9" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many female patients were given an APS diagnosis?", + "evidence": "female refers to SEX = 'F'; APS diagnosis refers to Diagnosis='APS'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(ID) FROM Patient WHERE SEX = 'F' AND Diagnosis = 'APS'", + "amb_query": "SELECT COUNT(ID) FROM Patient WHERE SEX IN ('F', 'female', 'feminine', 'Female') AND Diagnosis IN ('APS', 'APS condition', 'Antiphospholipid Syndrome diagnosis', 'APS diagnosis')" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients have blood clots in veins, how many of them have a normal level of complement 4?", + "evidence": "APS will result in Blood Clots in veins; normal level of complement 4 refers to C4 > 10; Should compute the number of different ones", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.C4 > 10 AND T1.Diagnosis = 'APS'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.C4 > 10 AND T1.Diagnosis IN ('APS', 'APS condition', 'Antiphospholipid Syndrome diagnosis', 'APS diagnosis')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What percentage of patients who were born in 1980 and were diagnosed with RA are women?", + "evidence": "born in 1980 refers to YEAR(BIRTHDAY) = '1980'; 'RA' refers to Diagnosis='RA' ; women refers to SEX = 'F'; calculation = DIVIDE(SUM(SEX = 'F'), COUNT(SEX)) * 100", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT CAST(SUM(CASE WHEN SEX = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE Diagnosis = 'RA' AND STRFTIME('%Y', Birthday) = '1980'", + "amb_query": "SELECT CAST(SUM(CASE WHEN SEX IN ('F', 'female', 'feminine', 'Female') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(ID) FROM Patient WHERE Diagnosis IN ('RA diagnosis', 'RA', 'Rheumatoid Arthritis') AND STRFTIME('%Y', Birthday) = '1980'" + }, + { + "db_id": "thrombosis_prediction", + "question": "Provide the ID, sex, birthday of all patients diagnosed with 'RA' that are within the UN normal index.", + "evidence": "within the UN normal index refers to UN < 30; Diagnosis = 'RA'", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'RA'", + "amb_query": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis IN ('RA diagnosis', 'RA', 'Rheumatoid Arthritis')" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients who are diagnosed with SJS, how many of them have a normal level of total protein?", + "evidence": "diagnosed with SJS refers to Diagnosis = 'SJS'; normal level of total protein refers to TP > 6.0 and TP < 8.5;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SJS' AND T2.TP > 6.0 AND T2.TP < 8.5", + "amb_query": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('SJS condition', 'SJS', 'SJS illness', 'SJS disease') AND T2.TP > 6.0 AND T2.TP < 8.5" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with MCTD.", + "evidence": "PLT > 100 and PLT < 400 means platelet level is within the normal range; PLT < 100 and PLT > 400 means platelet level is not within the normal range; diagnosed with MCTD refers to Diagnosis = 'MCTD';", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'MCTD' AND T2.PLT BETWEEN 100 AND 400", + "amb_query": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis IN ('MCTD', 'Mixed Connective Tissue Disease', 'MCTD condition', 'MCTD diagnosis') AND T2.PLT BETWEEN 100 AND 400" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients who has a normal anti-scl70, how many of them are female and does not have any symptom?", + "evidence": "normal anti-scl70 refers to SC170 IN('negative', '0'); female refers to Sex = 'F'; does not have any symptom refers to symptoms IS NULL; Should consider DISTINCT in the final result;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE (T2.SC170 = 'negative' OR T2.SC170 = '0') AND T1.SEX = 'F' AND T3.Symptoms IS NULL", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE (T2.SC170 = 'negative' OR T2.SC170 = '0') AND T1.SEX IN ('F', 'female', 'feminine', 'Female') AND T3.Symptoms IS NULL" + }, + { + "db_id": "thrombosis_prediction", + "question": "Please list the diseases of the patients born after 1985-1-1 and have a normal Rhuematoid Factor.", + "evidence": "diseases refers to Diagnosis; born after 1985/1/1 refers to YEAR(Birthday) > = 1985; normal Rhuematoid Factor refers to RA IN('-', '+-');", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.RA = '-' OR T2.RA = '+-') AND T1.Birthday > '1985-01-01'", + "amb_query": "SELECT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.RA = '-' OR T2.RA = '+-') AND T1.Birthday > '1985-01-01'" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the most common sign of patients with EN, paniculitis disease?", + "evidence": "the most common sign refers to MAX(symptoms); 'SLE' refers to diagnosis", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'EN, paniculitis' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", + "amb_query": "SELECT Symptoms FROM Examination WHERE Diagnosis IN ('Erythema Nodosum with paniculitis', 'EN, paniculitis') GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the most common sign of patients with MRA disease?", + "evidence": "the most common sign refers to MAX(symptoms); 'SLE' refers to diagnosis", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'MRA' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", + "amb_query": "SELECT Symptoms FROM Examination WHERE Diagnosis IN ('MRA', 'MRA condition') GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the most common sign of patients with PN susp disease?", + "evidence": "the most common sign refers to MAX(symptoms); 'SLE' refers to diagnosis", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'PN susp' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", + "amb_query": "SELECT Symptoms FROM Examination WHERE Diagnosis IN ('Peripheral Neuropathy suspension', 'PN susp') GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the most common sign of patients with SLE+ABN+LIVER D+PM0 disease?", + "evidence": "the most common sign refers to MAX(symptoms); 'SLE' refers to diagnosis", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'SLE+ABN+LIVER D+PM0' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", + "amb_query": "SELECT Symptoms FROM Examination WHERE Diagnosis IN ('SLE+ABN+LIVER D+PM0', 'SLE ABN LIVER D PM0 condition') GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the most common sign of patients with MCTD, SjS disease?", + "evidence": "the most common sign refers to MAX(symptoms); 'SLE' refers to diagnosis", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'MCTD, SjS' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", + "amb_query": "SELECT Symptoms FROM Examination WHERE Diagnosis IN ('MCTD, SjS', 'MCTD with SjS') GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "What proportion of patients who had signs of ë¦ÄêÉÈû¼îîÉ\u0014ÅÌ had SjS, uveitis diagnosed?", + "evidence": "thrombocytopenia' refers to symptoms; 'SLE' refers to diagnosis; calculation = DIVIDE(SUM(DIAGNOSIS LIKE '%ITP%'), SUM(DIAGNOSIS LIKE '%SLE%')) MULTIPLY 100", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT CAST(SUM(CASE WHEN Diagnosis = 'SjS, uveitis' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Examination WHERE Symptoms = 'ë¦ÄêÉÈû¼îîÉ\u0014ÅÌ'", + "amb_query": "SELECT CAST(SUM(CASE WHEN Diagnosis IN ('SjS and uveitis', 'SjS, uveitis') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(ID) FROM Examination WHERE Symptoms IN ('ë¦ÄêÉÈû¼îîÉ\u0014ÅÌ', 'ë¦ÄêÉÈû¼îîÉÅÌ')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What sex is the patient who in a medical examination was diagnosed with UC and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?", + "evidence": "PSS' refers to diagnosis; blood level of C-reactive protein de 2+refers to CRP > 2; createnine 1 refers to CRE = 1; LDH 123 refers to LDH = 123", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'UC' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", + "amb_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis IN ('UC medical examination', 'UC', 'UC condition') AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123" + }, + { + "db_id": "thrombosis_prediction", + "question": "What sex is the patient who in a medical examination was diagnosed with APS, Budd-Chiari and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?", + "evidence": "PSS' refers to diagnosis; blood level of C-reactive protein de 2+refers to CRP > 2; createnine 1 refers to CRE = 1; LDH 123 refers to LDH = 123", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'APS, Budd-Chiari' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", + "amb_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis IN ('APS, Budd-Chiari', 'Budd-Chiari syndrome') AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123" + }, + { + "db_id": "thrombosis_prediction", + "question": "What sex is the patient who in a medical examination was diagnosed with SLE, WHOIV and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?", + "evidence": "PSS' refers to diagnosis; blood level of C-reactive protein de 2+refers to CRP > 2; createnine 1 refers to CRE = 1; LDH 123 refers to LDH = 123", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'SLE, WHOIV' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", + "amb_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis IN ('SLE, WHOIV', 'SLE with WHOIV') AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123" + }, + { + "db_id": "thrombosis_prediction", + "question": "What sex is the patient who in a medical examination was diagnosed with RA susp, SjS susp and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?", + "evidence": "PSS' refers to diagnosis; blood level of C-reactive protein de 2+refers to CRP > 2; createnine 1 refers to CRE = 1; LDH 123 refers to LDH = 123", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'RA susp, SjS susp' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", + "amb_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis IN ('RA susp and SjS susp', 'RA susp, SjS susp') AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123" + }, + { + "db_id": "thrombosis_prediction", + "question": "What sex is the patient who in a medical examination was diagnosed with abortion and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?", + "evidence": "PSS' refers to diagnosis; blood level of C-reactive protein de 2+refers to CRP > 2; createnine 1 refers to CRE = 1; LDH 123 refers to LDH = 123", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'abortion' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", + "amb_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis IN ('abortion', 'abortion medical diagnosis') AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123" + }, + { + "db_id": "thrombosis_prediction", + "question": "What is the most common sign of patients with SLE disease?", + "evidence": "the most common sign refers to MAX(symptoms); 'SLE' refers to diagnosis", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'SLE' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", + "amb_query": "SELECT Symptoms FROM Examination WHERE Diagnosis IN ('SLE condition', 'SLE diagnosis', 'SLE') GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1" + }, + { + "db_id": "thrombosis_prediction", + "question": "What proportion of patients who had signs of thrombocytopenia had SLE diagnosed?", + "evidence": "thrombocytopenia' refers to symptoms; 'SLE' refers to diagnosis; calculation = DIVIDE(SUM(DIAGNOSIS LIKE '%ITP%'), SUM(DIAGNOSIS LIKE '%SLE%')) MULTIPLY 100", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT CAST(SUM(CASE WHEN Diagnosis = 'SLE' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Examination WHERE Symptoms = 'thrombocytopenia'", + "amb_query": "SELECT CAST(SUM(CASE WHEN Diagnosis IN ('SLE condition', 'SLE diagnosis', 'SLE') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(ID) FROM Examination WHERE Symptoms IN ('thrombocytopenia', 'thrombocytopenia symptoms')" + }, + { + "db_id": "thrombosis_prediction", + "question": "What sex is the patient who in a medical examination was diagnosed with PSS and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?", + "evidence": "PSS' refers to diagnosis; blood level of C-reactive protein de 2+refers to CRP > 2; createnine 1 refers to CRE = 1; LDH 123 refers to LDH = 123", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'PSS' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", + "amb_query": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis IN ('PSS', 'PSS examination result', 'PSS medical diagnosis', 'PSS condition') AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123" + }, + { + "db_id": "thrombosis_prediction", + "question": "How many patients have a normal level of anti-ribonuclear protein and have been admitted to the hospital?", + "evidence": "normal level of anti-ribonuclear protein refers to RNP = '-', '+-'; And'-' means 'negative'; '+-' refers to '0'; admitted to the hospital refers to Admission = '+'; Should consider DISTINCT in the final result;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RNP = 'negative' OR T2.RNP = '0' AND T1.Admission = '+'", + "amb_query": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RNP IN ('negative', 'negative result', 'RNP level negative', 'anti-ribonuclear protein negative', 'RNP negative') OR T2.RNP = '0' AND T1.Admission = '+'" + }, + { + "db_id": "thrombosis_prediction", + "question": "Among the patients with normal anti-SM, how many of them does not have thrombosis?", + "evidence": "normal anti-SM refers to SM IN('-', '+-'); SM = 'negative' means '-'; SM = '0' means '+-'; SM = '1' means '+'; does not have thrombosis refers to Thrombosis = 0;", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT COUNT(T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SM IN ('negative','0') AND T1.Thrombosis = 0", + "amb_query": "SELECT COUNT(T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SM IN ('negative', '0') AND T1.Thrombosis = 0" + }, + { + "db_id": "thrombosis_prediction", + "question": "For the patients with an abnormal anti-SM, please list the IDs of the three youngest ones.", + "evidence": "abnormal anti-SM refers to SM NOT IN ('negative', '0'); youngest refers to MAX(Birthday);", + "schema_text_wo_content": "\nTable Examination, columns = [`id` (id), `examination date` (examination date), `acl igg` (anti-cardiolipin antibody (igg)), `acl igm` (anti-cardiolipin antibody (igm)), `ana` (anti-nucleus antibody), `ana pattern` (pattern observed in the sheet of ana examination), `acl iga` (anti-cardiolipin antibody (iga) concentration), `diagnosis` (diagnosis), `kct` (measure of degree of coagulation), `rvvt` (measure of degree of coagulation), `lac` (measure of degree of coagulation), `symptoms` (symptoms), `thrombosis` (thrombosis)]\nTable Patient, columns = [`id` (id), `sex` (sex), `birthday` (birthday), `description` (description), `first date` (first date), `admission` (admission), `diagnosis` (diagnosis)]\nTable Laboratory, columns = [`id` (id), `date` (date), `got` (ast glutamic oxaloacetic transaminase), `gpt` (alt glutamic pyruvic transaminase), `ldh` (lactate dehydrogenase), `alp` (alkaliphophatase), `tp` (total protein), `alb` (albumin), `ua` (uric acid), `un` (urea nitrogen), `cre` (creatinine), `t-bil` (total bilirubin), `t-cho` (total cholesterol), `tg` (triglyceride), `cpk` (creatinine phosphokinase), `glu` (blood glucose), `wbc` (white blood cell), `rbc` (red blood cell), `hgb` (hemoglobin), `hct` (hematoclit), `plt` (platelet), `pt` (prothrombin time), `aptt` (activated partial prothrombin time), `fg` (fibrinogen), `pic` (pic), `tat` (tat), `tat2` (tat2), `u-pro` (proteinuria), `igg` (ig g), `iga` (ig a), `igm` (ig m), `crp` (c-reactive protein), `ra` (rhuematoid factor), `rf` (raha), `c3` (complement 3), `c4` (complement 4), `rnp` (anti-ribonuclear protein), `sm` (anti-sm), `sc170` (anti-scl70), `ssa` (anti-ssa), `ssb` (anti-ssb), `centromea` (anti-centromere), `dna` (anti-dna), `dna-ii` (anti-dna)]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "schema_text_with_content": "\nTable Examination, columns = [`id` (id. Example values: [14872, 48473, 102490]), `examination date` (examination date. Example values: [1997-05-27, 1992-12-21, 1995-04-20]), `acl igg` (anti-cardiolipin antibody (igg). Example values: [1.3, 4.3, 2.3]), `acl igm` (anti-cardiolipin antibody (igm). Example values: [1.6, 4.6, 2.5]), `ana` (anti-nucleus antibody. Example values: [256, 0, 16]), `ana pattern` (pattern observed in the sheet of ana examination. Example values: [P, P,S, None]), `acl iga` (anti-cardiolipin antibody (iga) concentration. Example values: [0, 3, 4]), `diagnosis` (diagnosis. Example values: [MCTD, AMI, SLE condition, PSS medical diagnosis]), `kct` (measure of degree of coagulation. Example values: [None, -, +]), `rvvt` (measure of degree of coagulation. Example values: [None, -, +]), `lac` (measure of degree of coagulation. Example values: [-, None, +]), `symptoms` (symptoms. Example values: [AMI, None, CNS lupus]), `thrombosis` (thrombosis. Example values: [1, 0, 2])]\nTable Patient, columns = [`id` (id. Example values: [2110, 11408, 12052]), `sex` (sex. Example values: [feminine, Female, female]), `birthday` (birthday. Example values: [1934-02-13, 1937-05-02, 1956-04-14]), `description` (description. Example values: [1994-02-14, 1996-12-01, 1991-08-13]), `first date` (first date. Example values: [1993-02-10, 1973-01-01, None]), `admission` (admission. Example values: [+, -, ]), `diagnosis` (diagnosis. Example values: [RA susp., PSS, SLE disease])]\nTable Laboratory, columns = [`id` (id. Example values: [27654, 30609, 43003]), `date` (date. Example values: [1991-09-11, 1991-09-17, 1991-09-19]), `got` (ast glutamic oxaloacetic transaminase. Example values: [34, 29, 26]), `gpt` (alt glutamic pyruvic transaminase. Example values: [36, 31, 22]), `ldh` (lactate dehydrogenase. Example values: [567, 579, 684]), `alp` (alkaliphophatase. Example values: [166, 154, 138]), `tp` (total protein. Example values: [4.5, 5.1, 5.5]), `alb` (albumin. Example values: [3.3, 3.4, 3.6]), `ua` (uric acid. Example values: [3.8, 4.2, 4.9]), `un` (urea nitrogen. Example values: [29, 36, 34]), `cre` (creatinine. Example values: [0.8, 0.9, 0.7]), `t-bil` (total bilirubin. Example values: [0.3, None, 0.2]), `t-cho` (total cholesterol. Example values: [165, None, 134]), `tg` (triglyceride. Example values: [None, 185, 205]), `cpk` (creatinine phosphokinase. Example values: [9, None, 10]), `glu` (blood glucose. Example values: [None, 88, 134]), `wbc` (white blood cell. Example values: [5.0, 10.4, 10.5]), `rbc` (red blood cell. Example values: [2.6, 2.9, 3.4]), `hgb` (hemoglobin. Example values: [6.4, 6.7, 7.9]), `hct` (hematoclit. Example values: [20.3, 21.6, 24.7]), `plt` (platelet. Example values: [227, 242, 233]), `pt` (prothrombin time. Example values: [None, 11.3, 12.0]), `aptt` (activated partial prothrombin time. Example values: [None, 108, 84]), `fg` (fibrinogen. Example values: [None, 27.0, 38.6]), `pic` (pic. Example values: [None, 320, 513]), `tat` (tat. Example values: [None, 77, 108]), `tat2` (tat2. Example values: [None, 113, 88]), `u-pro` (proteinuria. Example values: [None, -, 0]), `igg` (ig g. Example values: [339, 771, None]), `iga` (ig a. Example values: [145, 188, None]), `igm` (ig m. Example values: [46, 132, None]), `crp` (c-reactive protein. Example values: [0.6, 2.7, 1.2]), `ra` (rhuematoid factor. Example values: [None, -, +]), `rf` (raha. Example values: [None, <20.5, <20.8]), `c3` (complement 3. Example values: [None, 30, 82]), `c4` (complement 4. Example values: [None, 14, 26]), `rnp` (anti-ribonuclear protein. Example values: [None, 0, 1]), `sm` (anti-sm. Example values: [None, 0, 1]), `sc170` (anti-scl70. Example values: [None, 16, 1]), `ssa` (anti-ssa. Example values: [None, 0, negative]), `ssb` (anti-ssb. Example values: [None, 0, negative]), `centromea` (anti-centromere. Example values: [None, 0, negative]), `dna` (anti-dna. Example values: [None, 41.9, 18]), `dna-ii` (anti-dna. Example values: [None])]\nforeign keys = [Examination.ID = Patient.ID, Laboratory.ID = Patient.ID]", + "ori_query": "SELECT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SM NOT IN ('negative','0') ORDER BY T1.Birthday DESC LIMIT 3", + "amb_query": "SELECT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE NOT T2.SM IN ('negative', '0') ORDER BY T1.Birthday DESC LIMIT 3" + }, + { + "db_id": "card_games", + "question": "Among the Summon - Foxes cards, which are black color and comes with foreign languague translation?", + "evidence": "Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Summon - Foxes' AND T1.colors = 'B,U'", + "amb_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Summon - Foxes', 'Foxes card type') AND T1.colors IN ('B, U', 'B,U', 'Blue')" + }, + { + "db_id": "card_games", + "question": "Among the Summon - Wall cards, which are black color and comes with foreign languague translation?", + "evidence": "Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Summon - Wall' AND T1.colors = 'B,G,R,U'", + "amb_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Summon Creature - Wall type', 'Summon - Wall', 'Summon - Wall original type') AND T1.colors IN ('B,G,R,U', 'B,G,R,U colors', 'Black, Green, Red, Blue')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Creature — Bird Shaman and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature — Bird Shaman'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Creature — Bird Shaman', 'Creature type Bird Shaman', 'Bird Shaman card type')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Creature - Elf Warrior Druid and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature - Elf Warrior Druid'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Creature - Druid Elf Warrior', 'Creature - Elf Warrior Druid')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Creature — Nightmare Hound and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature — Nightmare Hound'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Nightmare Hound card type', 'Creature — Nightmare Hound')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Creature - Pegasus and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature - Pegasus'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Pegasus Creature type', 'Creature - Pegasus original type', 'Creature type Pegasus', 'Creature - Pegasus')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Artifact Creature - Vedalken Knight and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact Creature - Vedalken Knight'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Artifact Creature - Vedalken Knight', 'Vedalken Knight Artifact Creature')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Summon - Gaea's Avenger and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Summon - Gaea's Avenger'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Artifact Creature - Vedalken Knight', 'Vedalken Knight Artifact Creature')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Tribal Instant — Eldrazi and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Tribal Instant — Eldrazi'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Tribal Instant — Eldrazi', 'Tribal Instant - Eldrazi')" + }, + { + "db_id": "card_games", + "question": "Among the Artifact cards, which are black color and comes with foreign languague translation?", + "evidence": "Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'", + "amb_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Artifact', 'Artifact type', 'Artifact card') AND T1.colors IN ('Black-Colorless', 'Black-Green', 'B card', 'B', 'Black-Blue')" + }, + { + "db_id": "card_games", + "question": "How many cards with original type of \"Summon - Angel\" have subtype other than \"Angel\"?", + "evidence": "subtype other than Angel refers to subtypes is not 'Angel';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'", + "amb_query": "SELECT COUNT(id) FROM cards WHERE originalType IN ('Summon Creature - Angel type', 'Summon - Angel', 'Summon - Angel original type') AND NOT subtypes IN ('Angel', 'Angel card subtype', 'Angel creature', 'Angel subtype')" + }, + { + "db_id": "card_games", + "question": "List down the name of cards with original types of Creature - Elf and the date of rulings for these cards.", + "evidence": "Creature - Elf is the originalType;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature - Elf'", + "amb_query": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType IN ('Creature - Elf', 'Elf Creature', 'Creature type - Elf')" + }, + { + "db_id": "card_games", + "question": "What percentage of cards without power are in Ancient Greek?", + "evidence": "in French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*'; percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.language = 'Ancient Greek' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.language IN ('Ancient Greek', 'Ancient Greek dialect') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power IN ('wildcard', '*', 'wild power', 'asterisk', 'no power')" + }, + { + "db_id": "card_games", + "question": "List all the card id and artist with unknown power which are legal for commander play format.", + "evidence": "unknown power refers to power = '*' or POWER IS NULL; commander play format refers to format = 'commander'; legal for commander play format refers to format = 'commander' where status = 'Legal'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')", + "amb_query": "SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status IN ('Legal', 'Approved', 'Permitted', 'Legally allowed') AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power IN ('wildcard', '*', 'wild power', 'asterisk', 'no power'))" + }, + { + "db_id": "card_games", + "question": "What percentage of cards without power are in French?", + "evidence": "in French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*'; percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.language IN ('French', 'Language French', 'Français', 'French language') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power IN ('wildcard', '*', 'wild power', 'asterisk', 'no power')" + }, + { + "db_id": "card_games", + "question": "How many cards designed by UDON and available in arena,paper print type has a starting maximum hand size of -1?", + "evidence": "UDON refer to artist; availabe in mtgo refers to availability = 'mtgo'; starting maximum hand size of -1 refers to hand = -1", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'arena,paper' ", + "amb_query": "SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability IN ('arena and paper print type', 'arena paper', 'paper arena', 'arena and paper', 'arena,paper')" + }, + { + "db_id": "card_games", + "question": "What are the cards that only available in arena,mtgo,paper and Arabic language?", + "evidence": "available in paper refers to availability = 'paper'; 'Japanese is the language;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability = 'arena,mtgo,paper' AND T2.language = 'Arabic'", + "amb_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability IN ('arena,mtgo,paper', 'arena and mtgo and paper', 'arena mtgo paper availability', 'cards available in arena,mtgo,paper') AND T2.language = 'Arabic'" + }, + { + "db_id": "card_games", + "question": "How many black border cards are only available on mtgo?", + "evidence": "black border card refers to borderColor = black; available on mtgo refers to availability = mtgo;\n\nadd quotes for string = 'black' and = 'mtgo'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black'", + "amb_query": "SELECT COUNT(id) FROM cards WHERE availability IN ('MTGO', 'Magic: The Gathering Online', 'mtgo print type', 'mtgo availability', 'mtgo') AND borderColor IN ('black border', 'black', 'black color')" + }, + { + "db_id": "card_games", + "question": "How many cards designed by UDON and available in mtgo print type has a starting maximum hand size of -1?", + "evidence": "UDON refer to artist; availabe in mtgo refers to availability = 'mtgo'; starting maximum hand size of -1 refers to hand = -1", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'mtgo' ", + "amb_query": "SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability IN ('MTGO', 'Magic: The Gathering Online', 'mtgo print type', 'mtgo availability', 'mtgo')" + }, + { + "db_id": "card_games", + "question": "What are the cards that only available in paper and Japanese language?", + "evidence": "available in paper refers to availability = 'paper'; 'Japanese is the language;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability = 'paper' AND T2.language = 'Japanese'", + "amb_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability IN ('paper', 'printed card', 'card in paper format', 'paper card', 'paper availability') AND T2.language IN ('Japanese language', 'Japanese dialect', 'Japanese', 'Japanese text')" + }, + { + "db_id": "card_games", + "question": "How many cards with a 1993 frame version and available on paper have a sensitive content warning?", + "evidence": "sensitive content warning refer to hasContentWarning = 1; available on paper refer to availability = 'paper' 1993 refer to frameVersion", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE frameVersion = 1993 AND availability = 'paper' AND hasContentWarning = 1", + "amb_query": "SELECT COUNT(id) FROM cards WHERE frameVersion IN ('1993', '1993 card version', '1993 edition', '1993 frame version') AND availability IN ('paper', 'printed card', 'card in paper format', 'paper card', 'paper availability') AND hasContentWarning = 1" + }, + { + "db_id": "card_games", + "question": "Is there any card from Erica Yang artist in pauper format and available in paper? If so, indicate its ID.", + "evidence": "available in paper refers to availability = 'paper'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Erica Yang' AND T2.format = 'pauper' AND T1.availability = 'paper'", + "amb_query": "SELECT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Erica Yang' AND T2.format IN ('pauper format', 'pauper type', 'pauper legality', 'pauper') AND T1.availability IN ('paper', 'printed card', 'card in paper format', 'paper card', 'paper availability')" + }, + { + "db_id": "card_games", + "question": "How many cards available in paper have a positive starting maximum hand size?", + "evidence": "available in paper refers to availability like '%paper%'; have a positive starting maximum hand size refers to hand = '3'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT SUM(CASE WHEN availability = 'paper' AND hAND = '3' THEN 1 ELSE 0 END) FROM cards", + "amb_query": "SELECT SUM(CASE WHEN availability IN ('paper', 'printed card', 'card in paper format', 'paper card', 'paper availability') AND hAND = '3' THEN 1 ELSE 0 END) FROM cards" + }, + { + "db_id": "card_games", + "question": "Among the card designed by Matthew D. Wilson, how many are available only in the paper?", + "evidence": "card designed by Matthew D. Wilson refers to artist = 'Matthew D. Wilson'; available only in the paper refers to availability = 'paper'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE artist = 'Matthew D. Wilson' AND availability = 'paper'", + "amb_query": "SELECT COUNT(id) FROM cards WHERE artist = 'Matthew D. Wilson' AND availability IN ('paper', 'printed card', 'card in paper format', 'paper card', 'paper availability')" + }, + { + "db_id": "card_games", + "question": "What is the mana cost of cards with a normal layout, a 2003 frame version, with a black border color, and available in paper and mtgo?", + "evidence": "available in paper and mtgo refers to availability = 'mtgo,paper'; frameVersion = 2003;borderColor = 'black'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal'", + "amb_query": "SELECT manaCost FROM cards WHERE availability IN ('mtgo & paper', 'paper and mtgo', 'mtgo,paper', 'mtgo and paper', 'available in mtgo and paper') AND borderColor IN ('black border', 'black', 'black color') AND frameVersion IN ('2003', '2003 layout version', '2003 card frame') AND layout IN ('conventional layout', 'typical layout', 'normal', 'regular layout', 'normal layout')" + }, + { + "db_id": "card_games", + "question": "Lists all types of cards available in arena.", + "evidence": "all types refer to subtypes and supertypes\n\navailble in arena refers to availability = 'arena'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability = 'arena' AND subtypes IS NOT NULL AND supertypes IS NOT NULL", + "amb_query": "SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability IN ('cards available in arena', 'arena', 'arena availability', 'arena cards') AND NOT subtypes IS NULL AND NOT supertypes IS NULL" + }, + { + "db_id": "card_games", + "question": "List the artists who illustrated cards with black borders which are available only in arena.", + "evidence": "black borders refers to BorderColor = 'black'; available only in arena refers to availability = 'arena'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT artist FROM cards WHERE availability = 'arena' AND BorderColor = 'black'", + "amb_query": "SELECT DISTINCT artist FROM cards WHERE availability IN ('cards available in arena', 'arena', 'arena availability', 'arena cards') AND BorderColor IN ('black border', 'black', 'black color')" + }, + { + "db_id": "card_games", + "question": "How many artists have designed a card with a black border color and is available in both \"arena\" and \"mtgo\" printing type?", + "evidence": "available in both \"arena\" and \"mtgo\" refers to availability like '%arena,mtgo%'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(CASE WHEN availability LIKE '%arena,mtgo%' AND borderColor = 'black' THEN 1 ELSE NULL END) FROM cards", + "amb_query": "SELECT COUNT(CASE WHEN availability LIKE '%arena,mtgo%' AND borderColor IN ('black border', 'black', 'black color') THEN 1 ELSE NULL END) FROM cards" + }, + { + "db_id": "card_games", + "question": "What percentage of miracle frame effect cards that are only available in online game variations?", + "evidence": "only available in online game variationsrefer to isOnlineOnly =1 ; legendary frame effect cards refer to frameEffects = 'legendary'; percentage refer to DIVIDE(COUNT(isOnlineOnly=1), COUNT(id)) from cards where frameEffects = 'legendary'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'miracle'", + "amb_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects IN ('miracle', 'miracle frame effect', 'miracle mechanic', 'miracle ability')" + }, + { + "db_id": "card_games", + "question": "What percentage of tombstone frame effect cards that are only available in online game variations?", + "evidence": "only available in online game variationsrefer to isOnlineOnly =1 ; legendary frame effect cards refer to frameEffects = 'legendary'; percentage refer to DIVIDE(COUNT(isOnlineOnly=1), COUNT(id)) from cards where frameEffects = 'legendary'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'tombstone'", + "amb_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects IN ('tombstone frame effect', 'tombstone style', 'tombstone', 'tombstone design')" + }, + { + "db_id": "card_games", + "question": "What percentage of draft frame effect cards that are only available in online game variations?", + "evidence": "only available in online game variationsrefer to isOnlineOnly =1 ; legendary frame effect cards refer to frameEffects = 'legendary'; percentage refer to DIVIDE(COUNT(isOnlineOnly=1), COUNT(id)) from cards where frameEffects = 'legendary'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'draft'", + "amb_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects IN ('draft variant', 'draft', 'draft availability', 'draft type')" + }, + { + "db_id": "card_games", + "question": "How many cards have frame effect as mooneldrazidfc? List out the id of those cards.", + "evidence": "\nframe effect as extendedart refers to frameEffects = 'extendedart'\n", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE frameEffects = 'mooneldrazidfc' GROUP BY id", + "amb_query": "SELECT id FROM cards WHERE frameEffects IN ('mooneldrazidfc effect', 'mooneldrazidfc', 'mooneldrazidfc type', 'mooneldrazidfc frame effect') GROUP BY id" + }, + { + "db_id": "card_games", + "question": "How many cards have frame effect as nyxtouched,legendary,extendedart? List out the id of those cards.", + "evidence": "\nframe effect as extendedart refers to frameEffects = 'extendedart'\n", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE frameEffects = 'nyxtouched,legendary,extendedart' GROUP BY id", + "amb_query": "SELECT id FROM cards WHERE frameEffects IN ('nyxtouched,legendary,extendedart', 'legendary') GROUP BY id" + }, + { + "db_id": "card_games", + "question": "How many cards have frame effect as compasslanddfc? List out the id of those cards.", + "evidence": "\nframe effect as extendedart refers to frameEffects = 'extendedart'\n", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE frameEffects = 'compasslanddfc' GROUP BY id", + "amb_query": "SELECT id FROM cards WHERE frameEffects IN ('compass land dfc', 'compasslanddfc', 'compassland dfc frame effect', 'compassland dfc') GROUP BY id" + }, + { + "db_id": "card_games", + "question": "What percentage of legendary frame effect cards that are only available in online game variations?", + "evidence": "only available in online game variationsrefer to isOnlineOnly =1 ; legendary frame effect cards refer to frameEffects = 'legendary'; percentage refer to DIVIDE(COUNT(isOnlineOnly=1), COUNT(id)) from cards where frameEffects = 'legendary'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'legendary'", + "amb_query": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects IN ('legendary', 'legendary frame effect', 'legendary cards')" + }, + { + "db_id": "card_games", + "question": "How many cards have frame effect as extendedart? List out the id of those cards.", + "evidence": "\nframe effect as extendedart refers to frameEffects = 'extendedart'\n", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE frameEffects = 'extendedart' GROUP BY id", + "amb_query": "SELECT id FROM cards WHERE frameEffects IN ('extendedart', 'frame effect extendedart', 'extended art', 'extendedart effect', 'extended art frame effect') GROUP BY id" + }, + { + "db_id": "card_games", + "question": "What proportion of cards do not have a text box with a vanguard layout?", + "evidence": "do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'vanguard' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards", + "amb_query": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'vanguard' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(*) FROM cards" + }, + { + "db_id": "card_games", + "question": "What proportion of cards do not have a text box with a saga layout?", + "evidence": "do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'saga' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards", + "amb_query": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout IN ('saga format', 'saga type', 'saga') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(*) FROM cards" + }, + { + "db_id": "card_games", + "question": "What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?", + "evidence": "in French refers to language = 'French'; black border color refers to borderColor = 'black'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT name FROM foreign_data WHERE uuid IN ( SELECT uuid FROM cards WHERE types = 'Creature' AND layout = 'normal' AND borderColor = 'black' AND artist = 'Matthew D. Wilson' ) AND language = 'French'", + "amb_query": "SELECT name FROM foreign_data WHERE uuid IN (SELECT uuid FROM cards WHERE types IN ('Creature type', 'Creature card', 'Creature class', 'Creature', 'Creature category') AND layout IN ('conventional layout', 'typical layout', 'normal', 'regular layout', 'normal layout') AND borderColor IN ('black border', 'black', 'black color') AND artist = 'Matthew D. Wilson') AND language IN ('French', 'Language French', 'Français', 'French language')" + }, + { + "db_id": "card_games", + "question": "What proportion of cards do not have a text box with a normal layout?", + "evidence": "do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards", + "amb_query": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout IN ('conventional layout', 'typical layout', 'normal', 'regular layout', 'normal layout') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(*) FROM cards" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has set (FRF) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (FRF)'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set (FRF)', 'set watermark (FRF)')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has goblinexplosioneers watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'goblinexplosioneers'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'goblinexplosioneers'" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has set (INV) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (INV)'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set (INV) watermark', 'set (INV)')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has junior watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'junior'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('junior', 'junior watermark')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has dengekimaoh watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'dengekimaoh'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('dengekimaoh', 'card with dengekimaoh', 'dengekimaoh watermark')" + }, + { + "db_id": "card_games", + "question": "What is the language and flavor text of the card that has set (BOK) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (BOK)'", + "amb_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set watermark BOK', 'set (BOK)')" + }, + { + "db_id": "card_games", + "question": "What is the language and flavor text of the card that has set (LGN) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (LGN)'", + "amb_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('LGN set', 'set LGN', 'set (LGN)')" + }, + { + "db_id": "card_games", + "question": "What is the language and flavor text of the card that has agentsofsneak watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'agentsofsneak'", + "amb_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('agentsofsneak', 'agentsofsneak watermark')" + }, + { + "db_id": "card_games", + "question": "What is the language and flavor text of the card that has set (C16) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (C16)'", + "amb_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set (C16)', 'watermark C16')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has set (DTK) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (DTK)'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set (DTK)', 'Dragons of Tarkir set')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has foretell watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'foretell'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'foretell'" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has set (ULG) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (ULG)'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set ULG', 'set (ULG)')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has set (UDS) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (UDS)'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('UDS set', 'set UDS', 'set (UDS)')" + }, + { + "db_id": "card_games", + "question": "What is the language of the card that has kolaghan watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'kolaghan'", + "amb_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('kolaghan', 'Kolaghan card', 'Kolaghan')" + }, + { + "db_id": "card_games", + "question": "What is the language of the card that has set (GPT) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (GPT)'", + "amb_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set (GPT)', 'set watermark GPT')" + }, + { + "db_id": "card_games", + "question": "What is the language of the card that has set (HML) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (HML)'", + "amb_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('set (HML)', 'set HML')" + }, + { + "db_id": "card_games", + "question": "What is the language of the card that has set (M12) watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'set (M12)'", + "amb_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('watermark set (M12)', 'M12 set', 'set (M12)')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has boros watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'boros'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('Boros symbol', 'boros', 'Boros card')" + }, + { + "db_id": "card_games", + "question": "What is the language and flavor text of the card that has colorpie watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'colorpie'", + "amb_query": "SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('watermark colorpie', 'colorpie', 'color pie')" + }, + { + "db_id": "card_games", + "question": "Name the foreign name of the card that has abzan watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'abzan'", + "amb_query": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('abzan', 'Abzan watermark', 'Abzan')" + }, + { + "db_id": "card_games", + "question": "What is the language of the card that has azorius watermark? List out the type of this card.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'azorius'", + "amb_query": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark IN ('Azorius card', 'card with Azorius watermark', 'azorius', 'Azorius')" + }, + { + "db_id": "card_games", + "question": "Please list the websites where I can purchase the cards that have the promotional type of \"intropack\".", + "evidence": "promotional type of \"bundle\" refers to promoTypes = 'bundle'; websites refers to purchaseUrls", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'intropack'", + "amb_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes IN ('intropack', 'intropack promo')" + }, + { + "db_id": "card_games", + "question": "Please list the websites where I can purchase the cards that have the promotional type of \"setpromo,league\".", + "evidence": "promotional type of \"bundle\" refers to promoTypes = 'bundle'; websites refers to purchaseUrls", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'setpromo,league'", + "amb_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes IN ('setpromo and league', 'setpromo,league', 'promotional type setpromo,league', 'setpromo league')" + }, + { + "db_id": "card_games", + "question": "Please list the websites where I can purchase the cards that have the promotional type of \"setpromo,prerelease,datestamped,jpwalker\".", + "evidence": "promotional type of \"bundle\" refers to promoTypes = 'bundle'; websites refers to purchaseUrls", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'setpromo,prerelease,datestamped,jpwalker'", + "amb_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes IN ('jpwalker', 'prerelease promo', 'prerelease', 'datestamped promo', 'datestamped', 'setpromo,prerelease,datestamped,jpwalker')" + }, + { + "db_id": "card_games", + "question": "Please list the websites where I can purchase the cards that have the promotional type of \"setpromo,intropack\".", + "evidence": "promotional type of \"bundle\" refers to promoTypes = 'bundle'; websites refers to purchaseUrls", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'setpromo,intropack'", + "amb_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes IN ('setpromo,intropack', 'promotional type setpromo,intropack', 'set promo intropack', 'setpromo and intropack')" + }, + { + "db_id": "card_games", + "question": "Please list the websites where I can purchase the cards that have the promotional type of \"bundle\".", + "evidence": "promotional type of \"bundle\" refers to promoTypes = 'bundle'; websites refers to purchaseUrls", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'bundle'", + "amb_query": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes IN ('promotional bundle', 'bundle type', 'bundle cards', 'bundle')" + }, + { + "db_id": "card_games", + "question": "What are the borderless cards available without powerful foils?", + "evidence": "borderless' refers to borderColor; poweful foils refers to cardKingdomFoilId paired with cardKingdomId AND cardKingdomId is not null", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)", + "amb_query": "SELECT id FROM cards WHERE borderColor IN ('borderless cards', 'no border cards', 'cards with borderless design', 'borderless', 'cards without borders') AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)" + }, + { + "db_id": "card_games", + "question": "What is the percentage of borderless cards?", + "evidence": "borderless card refers to borderColor = 'borderless'; percentage = Divide(Count (id) where borderColor = 'borderless', Count(id)) *100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards", + "amb_query": "SELECT CAST(SUM(CASE WHEN borderColor IN ('borderless cards', 'no border cards', 'cards with borderless design', 'borderless', 'cards without borders') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(id) FROM cards" + }, + { + "db_id": "card_games", + "question": "How many borderless cards are illustrated in Russian?", + "evidence": "borderless card refers to borderColor = 'borderless'; 'Russian' is the language;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.borderColor = 'borderless' AND T2.language = 'Russian'", + "amb_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.borderColor IN ('borderless cards', 'no border cards', 'cards with borderless design', 'borderless', 'cards without borders') AND T2.language IN ('Russian script', 'Russian version', 'Russian text', 'Russian')" + }, + { + "db_id": "card_games", + "question": "How many color cards with no borders have been ranked higher than 12000 on EDHRec?", + "evidence": "color cards with no borders refers to borderColor = 'borderless'; ranked higher than 12000 on EDHRec refers to edhrecRank > 12000", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE edhrecRank > 12000 AND borderColor = 'borderless'", + "amb_query": "SELECT COUNT(id) FROM cards WHERE edhrecRank > 12000 AND borderColor IN ('borderless cards', 'no border cards', 'cards with borderless design', 'borderless', 'cards without borders')" + }, + { + "db_id": "card_games", + "question": "How many card border with black color ? List out the card id.", + "evidence": "border with black color refers to borderColor = 'black'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE borderColor = 'black' GROUP BY id", + "amb_query": "SELECT id FROM cards WHERE borderColor IN ('black border', 'black', 'black color') GROUP BY id" + }, + { + "db_id": "card_games", + "question": "Among black card borders, which card has full artwork?", + "evidence": "white card borders refers to borderColor = 'white'; has full artwork refers to isFullArt = 1", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM cards WHERE borderColor = 'black' AND isFullArt = 1", + "amb_query": "SELECT id FROM cards WHERE borderColor IN ('black border', 'black', 'black color') AND isFullArt = 1" + }, + { + "db_id": "card_games", + "question": "How many cards in the set Coldsnap have a black border color?", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; black border color refers to borderColor = 'black'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT SUM(CASE WHEN T1.borderColor = 'black' THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'", + "amb_query": "SELECT SUM(CASE WHEN T1.borderColor IN ('black border', 'black', 'black color') THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'" + }, + { + "db_id": "card_games", + "question": "How many of the banned cards are white border?", + "evidence": "banned card refers to status = 'Banned'; white border refers to borderColor = 'white';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'", + "amb_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed') AND T1.borderColor IN ('white', 'cards with white border', 'white border color', 'white border', 'white color cards', 'white bordered cards')" + }, + { + "db_id": "card_games", + "question": "How many white bordered cards are powerful?", + "evidence": "white bordered cards refer to borderColor = 'white'; powerful cards refers to cardKingdomFoilId is not null AND cardKingdomId is not null (replace)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(id) FROM cards WHERE borderColor = 'white' AND cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL", + "amb_query": "SELECT COUNT(id) FROM cards WHERE borderColor IN ('white', 'cards with white border', 'white border color', 'white border', 'white color cards', 'white bordered cards') AND NOT cardKingdomId IS NULL AND NOT cardKingdomFoilId IS NULL" + }, + { + "db_id": "card_games", + "question": "List all the mythic rarity print cards banned in gladiator format.", + "evidence": "mythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'", + "amb_query": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format IN ('gladiator', 'gladiator card format', 'gladiator play format') AND T2.status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed') AND T1.rarity IN ('mythic print', 'mythic rarity card', 'mythic rarity', 'mythic')" + }, + { + "db_id": "card_games", + "question": "When was the oldest mythic card released and what are its legal play formats?", + "evidence": "the oldest card refers to MIN(originalReleaseDate); mythic card refers to rarity = 'mythic'; legal play refers to status = 'legal'; play format refers to format", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.originalReleaseDate, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'mythic' AND T1.originalReleaseDate IS NOT NULL AND T2.status = 'Legal' ORDER BY T1.originalReleaseDate LIMIT 1", + "amb_query": "SELECT T1.originalReleaseDate, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity IN ('mythic print', 'mythic rarity card', 'mythic rarity', 'mythic') AND NOT T1.originalReleaseDate IS NULL AND T2.status IN ('Legal', 'Approved', 'Permitted', 'Legally allowed') ORDER BY T1.originalReleaseDate LIMIT 1" + }, + { + "db_id": "card_games", + "question": "Pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date.", + "evidence": "uncommon refers to rarity = 'uncommon';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'uncommon' ORDER BY T2.date ASC LIMIT 3", + "amb_query": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity IN ('not common', 'uncommon', 'uncommon rarity') ORDER BY T2.date ASC LIMIT 3" + }, + { + "db_id": "card_games", + "question": "How many cards with print rarity have ruling text printed on 01/02/2007?", + "evidence": "with print rarity refers to rarity = 'rare'; on 01/02/2007 refers to date = '2007-02-01'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'rare' AND T2.date = '2007-02-01'", + "amb_query": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity IN ('rare', 'rare collectible', 'rare rarity', 'rare print') AND T2.date IN ('1st February 2007', '2007-02-01', 'February 1, 2007')" + }, + { + "db_id": "card_games", + "question": "How many rare enchantment Abundance cards are there whose play format status are all legal?", + "evidence": "rare refers to rarity = 'rare'; enchantment card refers to types = 'Enchantment'; Abundance cards refers to name = 'Abundance'; format status are all legal refers to status = 'Legal'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.rarity = 'rare' AND T1.types = 'Enchantment' AND T1.name = 'Abundance' AND T2.status = 'Legal'", + "amb_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.rarity IN ('rare', 'rare collectible', 'rare rarity', 'rare print') AND T1.types IN ('Enchantment magic', 'Enchantment card', 'Enchantment', 'Enchantment spell', 'Enchantment type', 'Enchantment effect') AND T1.name = 'Abundance' AND T2.status IN ('Legal', 'Approved', 'Permitted', 'Legally allowed')" + }, + { + "db_id": "card_games", + "question": "For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.", + "evidence": "Artifact type of cards refers to types = 'Artifact'; card does not have multiple faces on the same card refers to side is NULL'; vintage play format refers to format = 'vintage';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL", + "amb_query": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type IN ('Artifact type', 'Artifact', 'Artifact type of card') AND T2.format IN ('vintage', 'vintage card format', 'vintage game format', 'vintage legality') AND T1.side IS NULL" + }, + { + "db_id": "card_games", + "question": "How many cards are having future frame version and what are the legality status of these cards?", + "evidence": "future frame version refers to frameVersion = 'future'; legility status refers to status = 'legal';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.frameVersion = 'future'", + "amb_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.frameVersion IN ('future card version', 'future version', 'cards with future frame', 'future', 'future frame')" + }, + { + "db_id": "card_games", + "question": "Among the cards whose version of frame style is 1997, what is the status of the card illustrated by D. Alexander Gregory in legacy play format that has sensitive content or Wizards of the Coast?", + "evidence": "version of frame style is 1997 refers to frameVersion = '1997'; illustrated by D. Alexander Gregory refers to artist = 'D. Alexander Gregory'; sensitive content refers to hasContentWarning = 1; legacy play format refers to format = 'legacy'; status of the card refers to status", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.frameVersion = 1997 AND T1.hasContentWarning = 1 AND T1.artist = 'D. Alexander Gregory' AND T2.format = 'legacy'", + "amb_query": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.frameVersion IN ('frame version 1997', '1997', '1997 card version') AND T1.hasContentWarning = 1 AND T1.artist = 'D. Alexander Gregory' AND T2.format IN ('legacy play format', 'legacy', 'legacy format', 'legacy game format', 'legacy rules')" + }, + { + "db_id": "card_games", + "question": "Lists by ID all Creature-type cards with legal status.", + "evidence": "legal status refer to status = 'legal'; Goblin-type cards refer to types = 'Creature';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid INNER JOIN legalities AS T3 ON T1.uuid = T3.uuid WHERE T3.status = 'Legal' AND T1.types = 'Creature'", + "amb_query": "SELECT T1.id FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid INNER JOIN legalities AS T3 ON T1.uuid = T3.uuid WHERE T3.status IN ('Legal', 'Approved', 'Permitted', 'Legally allowed') AND T1.types IN ('Creature type', 'Creature card', 'Creature class', 'Creature', 'Creature category')" + }, + { + "db_id": "card_games", + "question": "Name all the cards which have alternative language in Korean.", + "evidence": "Japanese' is the language;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Korean'", + "amb_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Korean'" + }, + { + "db_id": "card_games", + "question": "Name all the cards which have alternative language in Japanese.", + "evidence": "Japanese' is the language;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Japanese'", + "amb_query": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language IN ('Japanese language', 'Japanese dialect', 'Japanese', 'Japanese text')" + }, + { + "db_id": "card_games", + "question": "Calculate the percentage of the cards availabe in Chinese Simplified.", + "evidence": "Chinese Simplified' is the language; percentage = Divide(Sum(id where language = 'Chinese Simplified'), Count(id)) *100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.language IN ('Chinese (Simplified)', 'Chinese language (Simplified)', 'Chinese Simplified language', 'Chinese Simplified') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid" + }, + { + "db_id": "card_games", + "question": "List down the name of artists for cards in Chinese Simplified.", + "evidence": "Chinese Simplified' is the language;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Chinese Simplified'", + "amb_query": "SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language IN ('Chinese (Simplified)', 'Chinese language (Simplified)', 'Chinese Simplified language', 'Chinese Simplified')" + }, + { + "db_id": "card_games", + "question": "Please provide the names of the artists who illustrated the card art in Phyrexian.", + "evidence": "Phyrexian' is the language; name of artists refers to artist;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Phyrexian'", + "amb_query": "SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language IN ('Phyrexian', 'Phyrexian tongue')" + }, + { + "db_id": "card_games", + "question": "How many cards that illusrtated in German have been reprinted?", + "evidence": "German' is the language; reprinted refers to isReprint = 1;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.isReprint = 1", + "amb_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.isReprint = 1" + }, + { + "db_id": "card_games", + "question": "Lists all types of cards in German.", + "evidence": "German refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.subtypes, T1.supertypes FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.subtypes IS NOT NULL AND T1.supertypes IS NOT NULL", + "amb_query": "SELECT T1.subtypes, T1.supertypes FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND NOT T1.subtypes IS NULL AND NOT T1.supertypes IS NULL" + }, + { + "db_id": "card_games", + "question": "What's the German type of the card \"Ancestor's Chosen\"?", + "evidence": "German refers to language = 'German'; \"Ancestor's Chosen\" refers to name = 'Ancestor''s Chosen'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'German'", + "amb_query": "SELECT DISTINCT T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'German'" + }, + { + "db_id": "card_games", + "question": "What is the percentage of cards whose language is French among the Story Spotlight cards?", + "evidence": "Story Spotlight card refers to isStorySpotlight = 1; French is the language; Percentage = Divide(Count(id) where language = 'French' and isStorySpotlight = 1, Count(id) where isStorySpotlight = 1)*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.language IN ('French', 'Language French', 'Français', 'French language') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1" + }, + { + "db_id": "card_games", + "question": "How many cards did Volkan Baǵa illustrated whose foreign language is in French?", + "evidence": "Volkan Baǵa refers to artist = 'Volkan Baǵa'; foreign language is in French refers to language = 'French'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T3.id) FROM ( SELECT T1.id FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Volkan Baǵa' AND T2.language = 'French' GROUP BY T1.id ) AS T3", + "amb_query": "SELECT COUNT(T3.id) FROM (SELECT T1.id FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Volkan Baǵa' AND T2.language IN ('French', 'Language French', 'Français', 'French language') GROUP BY T1.id) AS T3" + }, + { + "db_id": "card_games", + "question": "Calculate the percentage of cards in Spanish. List them by name.", + "evidence": "Spanish refer to language; Percentage refer to DIVIDE(SUM(ID where language = 'Spanish'), COUNT(id))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT ( SELECT CAST(SUM(CASE WHEN language = 'Spanish' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM foreign_data ), name FROM foreign_data WHERE language = 'Spanish'", + "amb_query": "SELECT (SELECT CAST(SUM(CASE WHEN language IN ('Spanish', 'Español') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(*) FROM foreign_data), name FROM foreign_data WHERE language IN ('Spanish', 'Español')" + }, + { + "db_id": "card_games", + "question": "What is the Italian flavor text of the card \"Ancestor's Chosen\"?", + "evidence": "Italian refers to language = 'Italian'; flavor text refers to flavorText; \"Ancestor''s Chosen\" refers to name = 'Ancestor''s Chosen'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Italian'", + "amb_query": "SELECT T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language IN ('Italian text', 'Italian dialect', 'Italian language', 'Italian')" + }, + { + "db_id": "card_games", + "question": "Please list the Italian text ruling of all the cards in the set Coldsnap.", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.text FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian'", + "amb_query": "SELECT DISTINCT T1.text FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language IN ('Italian text', 'Italian dialect', 'Italian language', 'Italian')" + }, + { + "db_id": "card_games", + "question": "Please list the Italian names of the cards in the set Coldsnap with the highest converted mana cost.", + "evidence": "card set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian'; highest converted mana cost refers to MAX(convertedManaCost)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.name FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian' ORDER BY T2.convertedManaCost DESC", + "amb_query": "SELECT T2.name FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language IN ('Italian text', 'Italian dialect', 'Italian language', 'Italian') ORDER BY T2.convertedManaCost DESC" + }, + { + "db_id": "card_games", + "question": "List down the uuid for penny cards and the foreign language of these cards.", + "evidence": "legacy card refers to format = 'legacy'; foreign language refers to language in foreign_data", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'penny'", + "amb_query": "SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'penny'" + }, + { + "db_id": "card_games", + "question": "What percentage of cards with format commander and legal status do not have a content warning?", + "evidence": "do not have a content warning refers to hasContentWarning = 0; percentage refers to DIVIDE(COUNT(hasContentWarning = 0),COUNT(ID))*100 where format = 'commander' AND Status = 'legal';", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status IN ('Legal', 'Approved', 'Permitted', 'Legally allowed')" + }, + { + "db_id": "card_games", + "question": "List down the uuid for legacy cards and the foreign language of these cards.", + "evidence": "legacy card refers to format = 'legacy'; foreign language refers to language in foreign_data", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'legacy'", + "amb_query": "SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format IN ('legacy play format', 'legacy', 'legacy format', 'legacy game format', 'legacy rules')" + }, + { + "db_id": "card_games", + "question": "Indicates the number of cards with pre-modern format, ruling text \"This is a triggered mana ability.\" that do not have multiple faces.", + "evidence": "pre-modern format refers to format = 'premodern' ;do not have multiple faces refers to side IS NULL", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL", + "amb_query": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format IN ('premodern format', 'pre modern format', 'premodern') AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL" + }, + { + "db_id": "card_games", + "question": "In duels, what are the top 10 cards with the highest uncoverted mana cost?", + "evidence": "duels refer to format = 'duel'; the highest uncoverted mana cost refers to MAX(manaCost)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT name FROM cards WHERE uuid IN ( SELECT uuid FROM legalities WHERE format = 'duel' ) ORDER BY manaCost DESC LIMIT 0, 10", + "amb_query": "SELECT DISTINCT name FROM cards WHERE uuid IN (SELECT uuid FROM legalities WHERE format IN ('duel match', 'duel', 'dueling format', 'duel format', 'duel game')) ORDER BY manaCost DESC LIMIT 10 OFFSET 0" + }, + { + "db_id": "card_games", + "question": "Find the uuid of cards in which the old school format is restricted or banned.", + "evidence": "old school format refers to format = 'oldschool'; restricted or banned refers to status = 'banned' or 'restricted'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT uuid FROM legalities WHERE format = 'oldschool' AND (status = 'Banned' OR status = 'Restricted')", + "amb_query": "SELECT uuid FROM legalities WHERE format IN ('oldschool', 'oldschool format', 'old school', 'old school format', 'old school legality') AND (status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed') OR status IN ('Restricted status', 'Restricted', 'Legality Restricted'))" + }, + { + "db_id": "card_games", + "question": "Which of the play format has the highest number of banned status? Indicate the play format and the names of all the card meet the condition.", + "evidence": "play format refers to format; banned status refers to status = 'Banned'; the highest number of banned status refers to MAX(COUNT(status = 'Banned'))", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "WITH MaxBanned AS (SELECT format, COUNT(*) AS count_banned FROM legalities WHERE status = 'Banned' GROUP BY format ORDER BY COUNT(*) DESC LIMIT 1) SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid INNER JOIN MaxBanned MB ON MB.format = T2.format WHERE T2.status = 'Banned'", + "amb_query": "WITH MaxBanned AS (SELECT format, COUNT(*) AS count_banned FROM legalities WHERE status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed') GROUP BY format ORDER BY COUNT(*) DESC LIMIT 1) SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid INNER JOIN MaxBanned AS MB ON MB.format = T2.format WHERE T2.status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed')" + }, + { + "db_id": "card_games", + "question": "Which cards are ranked 1st on EDHRec? List all of the cards name and its banned play format.", + "evidence": "ranked 1st on EDHRec refers to edhrecRank = 1; banned refers to status = 'Banned'; play format refers to format; cards name refers to name", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.edhrecRank = 1 AND T2.status = 'Banned' GROUP BY T1.name, T2.format", + "amb_query": "SELECT T1.name, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.edhrecRank = 1 AND T2.status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed') GROUP BY T1.name, T2.format" + }, + { + "db_id": "card_games", + "question": "List all the frame styles and cards Allen Williams worked on and find any banned cards if there are any.", + "evidence": "frame styles refers to frameVersion; cards Allen Williams worked on refers to artist = 'Allen Williams'; banned cards refers to status = 'Banned'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.frameVersion, T1.name , IIF(T2.status = 'Banned', T1.name, 'NO') FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Allen Williams'", + "amb_query": "SELECT DISTINCT T1.frameVersion, T1.name, IIF(T2.status IN ('Prohibited', 'Banned', 'Outlawed', 'Banned status', 'Not allowed'), T1.name, 'NO') FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Allen Williams'" + }, + { + "db_id": "card_games", + "question": "List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal.", + "evidence": "the set Hour of Devastation refers to set.name = 'Hour of Devastation'; names of all the cards in the set refers to cards.name; legal cards refers to status = 'Legal'; the formats refers to format", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' )", + "amb_query": "SELECT DISTINCT T2.name, CASE WHEN T1.status IN ('Legal', 'Approved', 'Permitted', 'Legally allowed') THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN (SELECT code FROM sets WHERE name = 'Hour of Devastation')" + }, + { + "db_id": "card_games", + "question": "How many cards of legalities whose status is restricted have text boxes?", + "evidence": "restricted refers to status = 'restricted'; have text boxes refers to is Textless = 0;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Restricted' AND T1.isTextless = 0", + "amb_query": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status IN ('Restricted status', 'Restricted', 'Legality Restricted') AND T1.isTextless = 0" + }, + { + "db_id": "card_games", + "question": "How many cards of legalities whose status is restricted are found in a starter deck?", + "evidence": "restricted refers to status = 'restricted'; found in the starter deck refers to isStarter = 1;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Restricted' AND T1.isStarter = 1", + "amb_query": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status IN ('Restricted status', 'Restricted', 'Legality Restricted') AND T1.isStarter = 1" + }, + { + "db_id": "card_games", + "question": "Give the code of sets have expansion duel_deck type?", + "evidence": "code of sets refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'duel_deck'", + "amb_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type IN ('Duel Deck set', 'duel deck', 'Duel Deck type', 'duel_deck')" + }, + { + "db_id": "card_games", + "question": "Give the code of sets have expansion memorabilia type?", + "evidence": "code of sets refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'memorabilia'", + "amb_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'memorabilia'" + }, + { + "db_id": "card_games", + "question": "Among the sets whose expansion type is core, which set has the highest total number of cards including promotional and related supplemental products but excluding Alchemy modifications? Indicate the id of the set.", + "evidence": "expansion type refers to type where type = 'commander'; totalSetSize: The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications; highest total number of cards refers to MAX(totalSetSize)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM sets WHERE type = 'core' ORDER BY totalSetSize DESC LIMIT 1", + "amb_query": "SELECT id FROM sets WHERE type IN ('core type', 'core product', 'core', 'core expansion') ORDER BY totalSetSize DESC LIMIT 1" + }, + { + "db_id": "card_games", + "question": "Among the sets whose expansion type is planechase, which set has the highest total number of cards including promotional and related supplemental products but excluding Alchemy modifications? Indicate the id of the set.", + "evidence": "expansion type refers to type where type = 'commander'; totalSetSize: The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications; highest total number of cards refers to MAX(totalSetSize)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM sets WHERE type = 'planechase' ORDER BY totalSetSize DESC LIMIT 1", + "amb_query": "SELECT id FROM sets WHERE type IN ('planechase expansion', 'planechase set', 'planechase') ORDER BY totalSetSize DESC LIMIT 1" + }, + { + "db_id": "card_games", + "question": "Give the code of sets have archenemy type of 'archenemy'?", + "evidence": "code of sets refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'archenemy' GROUP BY T2.setCode", + "amb_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type IN ('archenemy card set', 'archenemy') GROUP BY T2.setCode" + }, + { + "db_id": "card_games", + "question": "Give the code of sets have promo type of 'promo'?", + "evidence": "code of sets refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'promo' GROUP BY T2.setCode", + "amb_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type IN ('promotional edition', 'promotional set', 'promo edition', 'promo type', 'promo') GROUP BY T2.setCode" + }, + { + "db_id": "card_games", + "question": "Give the code of sets have expansion commander type?", + "evidence": "code of sets refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'commander'", + "amb_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'commander'" + }, + { + "db_id": "card_games", + "question": "Among the sets whose expansion type is Commander, which set has the highest total number of cards including promotional and related supplemental products but excluding Alchemy modifications? Indicate the id of the set.", + "evidence": "expansion type refers to type where type = 'commander'; totalSetSize: The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications; highest total number of cards refers to MAX(totalSetSize)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT id FROM sets WHERE type = 'commander' ORDER BY totalSetSize DESC LIMIT 1", + "amb_query": "SELECT id FROM sets WHERE type = 'commander' ORDER BY totalSetSize DESC LIMIT 1" + }, + { + "db_id": "card_games", + "question": "What percentage of Japanese translated sets are expansion sets?", + "evidence": "Japanese translated refers to language = 'Japanese'; expansion sets refers to type = 'expansion'; percentage = DIVIDE(COUNT(language = 'Japanese'),COUNT(language))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.language = 'Japanese' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.type = 'expansion'", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.language IN ('Nihongo', 'Japanese', 'Japan', 'Japanese text') THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.type IN ('expansion', 'expansion type', 'expansion set', 'expansion product', 'expansion card')" + }, + { + "db_id": "card_games", + "question": "Give the code of sets have expansion type of 'expansion'?", + "evidence": "code of sets refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'expansion' GROUP BY T2.setCode", + "amb_query": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type IN ('expansion', 'expansion type', 'expansion set', 'expansion product', 'expansion card') GROUP BY T2.setCode" + }, + { + "db_id": "card_games", + "question": "What language is the set of 180 cards that belongs to the Onslaught block translated into?", + "evidence": "set of 180 cards refers to baseSetSize = 180", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Onslaught' AND T1.baseSetSize = 180", + "amb_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block IN ('Onslaught', 'Onslaught cards', 'Onslaught set', 'Onslaught expansion', 'Onslaught series') AND T1.baseSetSize = 180" + }, + { + "db_id": "card_games", + "question": "What language is the set of 180 cards that belongs to the Scars of Mirrodin block translated into?", + "evidence": "set of 180 cards refers to baseSetSize = 180", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", �� La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Scars of Mirrodin' AND T1.baseSetSize = 180", + "amb_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block IN ('Scars of Mirrodin expansion', 'Scars of Mirrodin collection', 'Scars of Mirrodin') AND T1.baseSetSize = 180" + }, + { + "db_id": "card_games", + "question": "What language is the set of 180 cards that belongs to the Commander block translated into?", + "evidence": "set of 180 cards refers to baseSetSize = 180", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Commander' AND T1.baseSetSize = 180", + "amb_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block IN ('Commander', 'Commander block', 'Commander edition', 'Commander expansion') AND T1.baseSetSize = 180" + }, + { + "db_id": "card_games", + "question": "Mention the base set size and set code of the set that was in block named \"Khans of Tarkir\" and \"Core Set\".", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.baseSetSize, T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block IN ('Khans of Tarkir', 'Core Set')", + "amb_query": "SELECT DISTINCT T1.baseSetSize, T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block IN ('Khans of Tarkir', 'Core Set')" + }, + { + "db_id": "card_games", + "question": "What language is the set of 180 cards that belongs to the Ravnica block translated into?", + "evidence": "set of 180 cards refers to baseSetSize = 180", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Ravnica' AND T1.baseSetSize = 180", + "amb_query": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block IN ('Ravnica', 'Ravnica collection', 'Ravnica expansion') AND T1.baseSetSize = 180" + }, + { + "db_id": "card_games", + "question": "Please list top two sets of cards with their IDs that have Italian-language cards and are located in the Shadowmoor block in alphabetical order.", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Shadowmoor' AND T2.language = 'Italian' ORDER BY T1.id LIMIT 2", + "amb_query": "SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block IN ('Shadowmoor block', 'Shadowmoor cards', 'Shadowmoor', 'Shadowmoor expansion') AND T2.language IN ('Italian text', 'Italian dialect', 'Italian') ORDER BY T1.id LIMIT 2" + }, + { + "db_id": "card_games", + "question": "Mention the base set size and set code of the set that was in block named \"Masques\" and \"Mirage\".", + "evidence": "", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT DISTINCT T1.baseSetSize, T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block IN ('Masques', 'Mirage')", + "amb_query": "SELECT DISTINCT T1.baseSetSize, T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block IN ('Masques', 'Mirage')" + }, + { + "db_id": "card_games", + "question": "Among the sets in the block \"Ice Age\", how many of them have an Italian translation?", + "evidence": "sets in the block \"Ice Age\" refers to block = 'Ice Age'; Italian translation refers to language = 'Italian' and translation is not null", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(DISTINCT T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block = 'Ice Age' AND T2.language = 'Italian' AND T2.translation IS NOT NULL", + "amb_query": "SELECT COUNT(DISTINCT T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block IN ('Ice Age', 'Ice Age expansion', 'Ice Age set') AND T2.language IN ('Italian text', 'Italian dialect', 'Italian') AND NOT T2.translation IS NULL" + }, + { + "db_id": "card_games", + "question": "Which set is not available outside of the United States and has foil cards with Japanese writing on them? Please include the set ID in your response.", + "evidence": "available outside of the United States refers to isForeignOnly = 1; has foil cards refers to isFoilOnly = 1; with Japanese writing on them refers to language = 'Japanese'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Japanese' AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0", + "amb_query": "SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language IN ('Nihongo', 'Japanese', 'Japan', 'Japanese text') AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0" + }, + { + "db_id": "card_games", + "question": "How many sets are available just in Japanese and not in Magic: The Gathering Online?", + "evidence": "Japanese refers to language = 'Japanese'; not in Magic: The Gathering Online refers to mtgoCode is null or mtgoCode = ''", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.language = 'Japanese' AND (T1.mtgoCode IS NULL OR T1.mtgoCode = '')", + "amb_query": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.language IN ('Nihongo', 'Japanese', 'Japan', 'Japanese text') AND (T1.mtgoCode IS NULL OR T1.mtgoCode = '')" + }, + { + "db_id": "card_games", + "question": "Tell the Japanese name of the set which card \"Fellwar Stone\" is in it.", + "evidence": "Japanese name refers to language = 'Japanese'; card \"Fellwar Stone\" refers to name = 'Fellwar Stone'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Fellwar Stone' AND T2.language = 'Japanese' AND T2.translation IS NOT NULL", + "amb_query": "SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Fellwar Stone' AND T2.language IN ('Nihongo', 'Japanese', 'Japan', 'Japanese text') AND NOT T2.translation IS NULL" + }, + { + "db_id": "card_games", + "question": "For all the set of cards that has Japanese translation, what is the percentage of them are only available in non-foil?", + "evidence": "Japanese translation refers to language = 'Japanese'; in non-foil refers to isNonFoilOnly = 1; percentage of Japanese non foil in Japanese cards refers to DIVIDE(SUM(isNonFoilOnly = 1), SUM(language = 'Japanese'))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN isNonFoilOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Japanese' )", + "amb_query": "SELECT CAST(SUM(CASE WHEN isNonFoilOnly = 1 THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(id) FROM sets WHERE code IN (SELECT setCode FROM set_translations WHERE language IN ('Nihongo', 'Japanese', 'Japan', 'Japanese text'))" + }, + { + "db_id": "card_games", + "question": "What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games?", + "evidence": "are only available for online games refers to isOnlineOnly = 1; percentage = DIVIDE(COUNT(isOnlineOnly = 1),COUNT(isOnlineOnly))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' AND T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode", + "amb_query": "SELECT CAST(SUM(CASE WHEN T2.language IN ('Chinese Simplified language', 'Simplified Chinese language', 'Simplified Chinese', 'Chinese (Simplified)', 'Chinese Simplified') AND T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(*) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode" + }, + { + "db_id": "card_games", + "question": "What is the Simplified Chinese translation of the name of the set \"Eighth Edition\"?", + "evidence": "Eighth Edition is the name of card set which refers to name = 'Eighth Edition'; Simplified Chinese refers to language = 'Chinese Simplified'; translation of the name refers to translation", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language = 'Chinese Simplified'", + "amb_query": "SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language IN ('Chinese Simplified language', 'Simplified Chinese language', 'Simplified Chinese', 'Chinese (Simplified)', 'Chinese Simplified')" + }, + { + "db_id": "card_games", + "question": "Show the Simplified Chinese translation of the name of the set \"Mirrodin\"?", + "evidence": "Simplified Chinese translation refers to language = 'Chinese Simplified'; name of the set \"Mirrodin\" refers to name = 'Mirrodin'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT translation FROM set_translations WHERE setCode IN ( SELECT code FROM sets WHERE name = 'Mirrodin' ) AND language = 'Chinese Simplified'", + "amb_query": "SELECT translation FROM set_translations WHERE setCode IN (SELECT code FROM sets WHERE name = 'Mirrodin') AND language IN ('Chinese Simplified language', 'Simplified Chinese language', 'Simplified Chinese', 'Chinese (Simplified)', 'Chinese Simplified')" + }, + { + "db_id": "card_games", + "question": "Which Russian set of cards contains the most cards overall?", + "evidence": "Russian refers to language = 'Russian'; contains the most cards overall refers to MAX(baseSetSize)", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Russian' GROUP BY T1.baseSetSize ORDER BY T1.baseSetSize DESC LIMIT 1", + "amb_query": "SELECT T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language IN ('Russian version', 'Russian script', 'Russian dialect', 'Russian', 'Russian text') GROUP BY T1.baseSetSize ORDER BY T1.baseSetSize DESC LIMIT 1" + }, + { + "db_id": "card_games", + "question": "What's the French name of the set of cards with \"Tendo Ice Bridge\" is in?", + "evidence": "French refers to language = 'French'; \"Tendo Ice Bridge\" is a translated name of a card; translated name refers to translation", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Tendo Ice Bridge' AND T2.language = 'French' AND T2.translation IS NOT NULL", + "amb_query": "SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Tendo Ice Bridge' AND T2.language IN ('French', 'Language French', 'Français') AND NOT T2.translation IS NULL" + }, + { + "db_id": "card_games", + "question": "Lists the set code of all cards translated into Spanish.", + "evidence": "Spanish refer to language; set code refers to setCode", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT setCode FROM set_translations WHERE language = 'Spanish'", + "amb_query": "SELECT setCode FROM set_translations WHERE language IN ('Castilian', 'Spanish', 'Español')" + }, + { + "db_id": "card_games", + "question": "List all the sets available in Italian translation. State the total number of cards per set.", + "evidence": "Italian translation refers to language = 'Italian'; total number of card per set refers to totalSetSize;", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT T1.name, T1.totalSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Italian'", + "amb_query": "SELECT T1.name, T1.totalSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language IN ('Italian text', 'Italian dialect', 'Italian')" + }, + { + "db_id": "card_games", + "question": "What's the Italian name of the set of cards with \"Ancestor's Chosen\" is in?", + "evidence": "Italian is a language which refers to language = 'Italian'; with \"Ancestor's Chosen\" in the card set refers to name = 'Ancestor''s Chosen'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT translation FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen' ) AND language = 'Italian'", + "amb_query": "SELECT translation FROM set_translations WHERE setCode IN (SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen') AND language IN ('Italian text', 'Italian dialect', 'Italian')" + }, + { + "db_id": "card_games", + "question": "Among the sets of cards that have an Italian translation, how many of them have a base set number of under 100?", + "evidence": "Italian translation refers to language = 'Italian'; have a translation means translation is not null; base set number of under 100 refers to baseSetSize < 10", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation IS NOT NULL AND T1.baseSetSize < 100 AND T2.language = 'Italian'", + "amb_query": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE NOT T2.translation IS NULL AND T1.baseSetSize < 100 AND T2.language IN ('Italian text', 'Italian dialect', 'Italian')" + }, + { + "db_id": "card_games", + "question": "For the set of cards with \"Ancestor's Chosen\" in it, is there a Korean version of it?", + "evidence": "set of cards with \"Ancestor''s Chosen\" in it refers to name = 'Ancestor''s Chosen'; Korean version refers to language = 'Korean'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT IIF(SUM(CASE WHEN T2.language = 'Korean' AND T2.translation IS NOT NULL THEN 1 ELSE 0 END) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'", + "amb_query": "SELECT IIF(SUM(CASE WHEN T2.language IN ('Korean version', 'Korean translation', 'Korean language', 'Korean set', 'Korean') AND NOT T2.translation IS NULL THEN 1 ELSE 0 END) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'" + }, + { + "db_id": "card_games", + "question": "Find and list the names of sets which doesn't have Japanese translation but have Korean translation.", + "evidence": "names of sets refers to name; doesn't have Japanese translation refers to language not like '%Japanese%'; have Korean translation refers to language = 'Korean'", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT name FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Korean' AND language NOT LIKE '%Japanese%' )", + "amb_query": "SELECT name FROM sets WHERE code IN (SELECT setCode FROM set_translations WHERE language IN ('Korean version', 'Korean translation', 'Korean language', 'Korean set', 'Korean') AND NOT language LIKE '%Japanese%')" + }, + { + "db_id": "card_games", + "question": "For all the set of cards that has Brazil Portuguese translation, what is the percentage of them are only available online?", + "evidence": "Brazil Portuguese translation refers to language = 'Portuguese (Brazil)'; only available online refers to isOnlineOnly = 1; percentage of online only Brazil Portuguese in all Brazil Portuguese cards refers to DIVIDE(SUM(isOnlineOnly = 1), SUM(language = 'Portuguese (Brazil)))*100", + "schema_text_wo_content": "\nTable cards, columns = [`id` (unique id number identifying the cards), `artist` (artist), `asciiname` (ascii name), `availability` (availability), `bordercolor` (border color), `cardkingdomfoilid` (card kingdom foil id), `cardkingdomid` (card kingdom id), `coloridentity` (color identity), `colorindicator` (color indicator), `colors` (colors), `convertedmanacost` (converted mana cost), `dueldeck` (duel deck), `edhrecrank` (rec rank in edh), `faceconvertedmanacost` (face converted mana cost), `facename` (face name), `flavorname` (flavor name), `flavortext` (flavor text), `frameeffects` (frame effects), `frameversion` (frame version), `hand` (hand), `hasalternativedecklimit` (has alternative deck limit), `hascontentwarning` (has content warning), `hasfoil` (has foil), `hasnonfoil` (has non foil), `isalternative` (is alternative), `isfullart` (is full art), `isonlineonly` (is online only), `isoversized` (is oversized), `ispromo` (is promotion), `isreprint` (is reprint), `isreserved` (is reserved), `isstarter` (is starter), `isstoryspotlight` (is story spotlight), `istextless` (is text less), `istimeshifted` (is time shifted), `keywords` (keywords), `layout` (layout), `leadershipskills` (leadership skills), `life` (life), `loyalty` (loyalty), `manacost` (mana cost), `mcmid` (mcmid), `mcmmetaid` (mcmmetaid), `mtgarenaid` (mtgarenaid), `mtgjsonv4id` (mtgjsonv4id), `mtgofoilid` (mtgofoilid), `mtgoid` (mtgoid), `multiverseid` (multiverseid), `name` (name), `number` (number), `originalreleasedate` (originalreleasedate), `originaltext` (originaltext), `originaltype` (originaltype), `otherfaceids` (otherfaceids), `power` (power), `printings` (printings), `promotypes` (promo types), `purchaseurls` (purchase urls), `rarity` (rarity), `scryfallid` (scryfallid), `scryfallillustrationid` (scryfallillustrationid), `scryfalloracleid` (scryfalloracleid), `setcode` (set code), `side` (side), `subtypes` (subtypes), `supertypes` (super types), `tcgplayerproductid` (tcg player productid), `text` (text), `toughness` (toughness), `type` (type), `types` (types), `uuid` (uuid), `variations` (variations), `watermark` (watermark)]\nTable foreign_data, columns = [`id` (id), `flavortext` (flavor text), `language` (language), `multiverseid` (multiverseid), `name` (name), `text` (text), `type` (type), `uuid` (uuid)]\nTable legalities, columns = [`id` (id), `format` (format), `status` (status), `uuid` (uuid)]\nTable sets, columns = [`id` (id), `basesetsize` (base set size), `block` (block), `booster` (booster), `code` (code), `isfoilonly` (is foil only), `isforeignonly` (is foreign only), `isnonfoilonly` (is non foil only), `isonlineonly` (is online only), `ispartialpreview` (is partial preview), `keyrunecode` (keyrune code), `mcmid` (magic card market id), `mcmidextras` (magic card market id extras), `mcmname` (magic card market name), `mtgocode` (magic the gathering online code), `name` (name), `parentcode` (parent code), `releasedate` (release date), `tcgplayergroupid` (tcg player group id), `totalsetsize` (total set size), `type` (type)]\nTable set_translations, columns = [`id` (id), `language` (language), `setcode` (set code), `translation` (translation)]\nTable rulings, columns = [`id` (id), `date` (date), `text` (text), `uuid` (uuid)]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "schema_text_with_content": "\nTable cards, columns = [`id` (unique id number identifying the cards. Example values: [41138, 1349, 23810]), `artist` (artist. Example values: [Pete Venters, Volkan Baǵa, Justin Sweet]), `asciiname` (ascii name. Example values: [None, El-Hajjaj, Junun Efreet]), `availability` (availability. Example values: [available in mtgo and paper, mtgo & paper, paper and mtgo]), `bordercolor` (border color. Example values: [black border, black color, black]), `cardkingdomfoilid` (card kingdom foil id. Example values: [None, 123094, 123095]), `cardkingdomid` (card kingdom id. Example values: [122719, 122720, 122725]), `coloridentity` (color identity. Example values: [W, B, U]), `colorindicator` (color indicator. Example values: [None, U, G]), `colors` (colors. Example values: [W, Black-Blue, Black-Colorless]), `convertedmanacost` (converted mana cost. Example values: [7.0, 5.0, 4.0]), `dueldeck` (duel deck. Example values: [None, a, b]), `edhrecrank` (rec rank in edh. Example values: [15650, 12702, 11081]), `faceconvertedmanacost` (face converted mana cost. Example values: [None, 4.0, 5.0]), `facename` (face name. Example values: [None, Dusk, Dawn]), `flavorname` (flavor name. Example values: [None, Godzilla, King of the Monsters, King Caesar, Ancient Guardian]), `flavortext` (flavor text. Example values: [None, Every tear shed is a drop of immortality., The perfect antidote for a tightly packed formation.]), `frameeffects` (frame effects. Example values: [None, legendary frame effect, legendary cards]), `frameversion` (frame version. Example values: [2003 layout version, 2003 card frame, 2003]), `hand` (hand. Example values: [None, 1, 0]), `hasalternativedecklimit` (has alternative deck limit. Example values: [0, 1]), `hascontentwarning` (has content warning. Example values: [0, 1]), `hasfoil` (has foil. Example values: [0, 1]), `hasnonfoil` (has non foil. Example values: [1, 0]), `isalternative` (is alternative. Example values: [0, 1]), `isfullart` (is full art. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `isoversized` (is oversized. Example values: [0, 1]), `ispromo` (is promotion. Example values: [0, 1]), `isreprint` (is reprint. Example values: [1, 0]), `isreserved` (is reserved. Example values: [0, 1]), `isstarter` (is starter. Example values: [0, 1]), `isstoryspotlight` (is story spotlight. Example values: [0, 1]), `istextless` (is text less. Example values: [0, 1]), `istimeshifted` (is time shifted. Example values: [0, 1]), `keywords` (keywords. Example values: [First strike, Flying, None]), `layout` (layout. Example values: [regular layout, typical layout, normal layout]), `leadershipskills` (leadership skills. Example values: [None, {'brawl': False, 'commander': True, 'oathbreaker': False}, {'brawl': False, 'commander': False, 'oathbreaker': True}]), `life` (life. Example values: [None, -5, -1]), `loyalty` (loyalty. Example values: [None, 6, 3]), `manacost` (mana cost. Example values: [{5}{W}{W}, {4}{W}, {3}{W}]), `mcmid` (mcmid. Example values: [16165, 16166, 16171]), `mcmmetaid` (mcmmetaid. Example values: [156, 176, 368]), `mtgarenaid` (mtgarenaid. Example values: [None, 74983, 74986]), `mtgjsonv4id` (mtgjsonv4id. Example values: [ad41be73-582f-58ed-abd4-a88c1f616ac3, 9eb2e54c-a12b-5e88-a9c0-d8c84c52d59c, c0de6fd8-367a-50fb-b2f4-2b8fa5aeb7d9]), `mtgofoilid` (mtgofoilid. Example values: [27501, 26993, 27473]), `mtgoid` (mtgoid. Example values: [27500, 26992, 27472]), `multiverseid` (multiverseid. Example values: [130550, 129465, 129470]), `name` (name. Example values: [Ancestor's Chosen, Angel of Mercy, Aven Cloudchaser]), `number` (number. Example values: [1, 2, 7]), `originalreleasedate` (originalreleasedate. Example values: [None, 2012/12/1, 2006/12/1]), `originaltext` (originaltext. Example values: []), `originaltype` (originaltype. Example values: [Creature - Human Cleric, Creature - Angel, Creature - Bird Soldier]), `otherfaceids` (otherfaceids. Example values: [None, 87f0062a-8321-5c16-960e-a12ce1df5839, f9f10d34-071c-57a6-b58c-7553abad5c20]), `power` (power. Example values: [4, 3, 2]), `printings` (printings. Example values: [10E,JUD,UMA, 10E,8ED,9ED,DDC,DVD,IMA,INV,JMP,MB1,P02,PS11,PSAL,S99, 10E,8ED,9ED,ODY]), `promotypes` (promo types. Example values: [None, boxtopper,boosterfun, boosterfun]), `purchaseurls` (purchase urls. Example values: []), `rarity` (rarity. Example values: [not common, common, uncommon rarity]), `scryfallid` (scryfallid. Example values: [7a5cd03c-4227-4551-aa4b-7d119f0468b5, 8f7980d4-da43-4d6d-ad16-14b8a34ae91d, 407110e9-19af-4ff5-97b2-c03225031a73]), `scryfallillustrationid` (scryfallillustrationid. Example values: [be2f7173-c8b7-4172-a388-9b2c6b3c16e5, e4d6c53f-e936-4be8-8b70-47c2be863b20, 2eb663cd-020a-46d8-a6d9-bb63d4b5c848]), `scryfalloracleid` (scryfalloracleid. Example values: [fc2ccab7-cab1-4463-b73d-898070136d74, a2daaf32-dbfe-4618-892e-0da24f63a44a, 48bda7dd-d023-41e8-8c28-e0cfda0d07ca]), `setcode` (set code. Example values: [10E, 2ED, 2XM]), `side` (side. Example values: [None, a, b]), `subtypes` (subtypes. Example values: [Human,Cleric, Angel creature, Bird,Soldier]), `supertypes` (super types. Example values: [None, Legendary, Basic]), `tcgplayerproductid` (tcg player productid. Example values: [15032, 15033, 15045]), `text` (text. Example values: [Flying\nWhen Angel of Mercy enters the battlefield, you gain 3 life.]), `toughness` (toughness. Example values: [4, 3, 2]), `type` (type. Example values: [Creature — Human Cleric, Creature — Angel, Creature — Bird Soldier]), `types` (types. Example values: [Creature category, Creature class, Instant]), `uuid` (uuid. Example values: [00010d56-fe38-5e35-8aed-518019aa36a5, 0001e0d0-2dcd-5640-aadc-a84765cf5fc9, 0003caab-9ff5-5d1a-bc06-976dd0457f19]), `variations` (variations. Example values: [b7c19924-b4bf-56fc-aa73-f586e940bd42, 8fd4e2eb-3eb4-50ea-856b-ef638fa47f8a, 6adaf14d-43e3-521a-adf1-960c808e5b1a]), `watermark` (watermark. Example values: [None, set (HOU), LGN set])]\nTable foreign_data, columns = [`id` (id. Example values: [1, 2, 3]), `flavortext` (flavor text. Example values: [„Es ist der Wille aller, und meine Hand, die ihn ausführt.\", \"La voluntad de todos, realizada por mi mano.\", « La volonté de tous passe par ma main. »]), `language` (language. Example values: [German, Español, Language French]), `multiverseid` (multiverseid. Example values: [148411, 150317, 149934]), `name` (name. Example values: [Ausgewählter der Ahnfrau, Elegido de la Antepasada, Élu de l'Ancêtre]), `text` (text. Example values: []), `type` (type. Example values: [Kreatur — Mensch, Kleriker, Criatura — Clérigo humano, Créature : humain et clerc]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable legalities, columns = [`id` (id. Example values: [1, 2, 3]), `format` (format. Example values: [commander, duel match, legacy game format]), `status` (status. Example values: [Permitted, Legally allowed, Approved]), `uuid` (uuid. Example values: [5f8287b1-5bb6-5f4c-ad17-316a40d5bb0c, 57aaebc1-850c-503d-9f6e-bb8d00d8bf7c, 8ac972b5-9f6e-5cc8-91c3-b9a40a98232e])]\nTable sets, columns = [`id` (id. Example values: [1, 2, 3]), `basesetsize` (base set size. Example values: [383, 302, 332]), `block` (block. Example values: [Core Set edition, None, Core Set]), `booster` (booster. Example values: []), `code` (code. Example values: [10E, 2ED, 2XM]), `isfoilonly` (is foil only. Example values: [0, 1]), `isforeignonly` (is foreign only. Example values: [0, 1]), `isnonfoilonly` (is non foil only. Example values: [0, 1]), `isonlineonly` (is online only. Example values: [0, 1]), `ispartialpreview` (is partial preview. Example values: [0, 1]), `keyrunecode` (keyrune code. Example values: [10E, 2ED, 2XM]), `mcmid` (magic card market id. Example values: [74, None, 3204]), `mcmidextras` (magic card market id extras. Example values: [None, 3209, 3459]), `mcmname` (magic card market name. Example values: [Tenth Edition, None, Double Masters]), `mtgocode` (magic the gathering online code. Example values: [10E, None, 2XM]), `name` (name. Example values: [Tenth Edition, Unlimited Edition, Double Masters]), `parentcode` (parent code. Example values: [None, JMP, MH1]), `releasedate` (release date. Example values: [2007-07-13, 1993-12-01, 2020-08-07]), `tcgplayergroupid` (tcg player group id. Example values: [1, 115, 2655]), `totalsetsize` (total set size. Example values: [508, 302, 384]), `type` (type. Example values: [core expansion, core, masters])]\nTable set_translations, columns = [`id` (id. Example values: [1, 2, 3]), `language` (language. Example values: [Simplified Chinese language, Chinese Traditional, Français]), `setcode` (set code. Example values: [10E, 4ED, 5DN]), `translation` (translation. Example values: [核心系列第十版, Dixième édition, Hauptset Zehnte Edition])]\nTable rulings, columns = [`id` (id. Example values: [1, 2, 3]), `date` (date. Example values: [2007-07-15, February 1, 2007, 2010-08-15]), `text` (text. Example values: []), `uuid` (uuid. Example values: [6d268c95-c176-5766-9a46-c14f739aba1c, 56f4935b-f6c5-59b9-88bf-9bcce20247ce, 7fef665c-36a1-5f7a-9299-cf8938708710])]\nforeign keys = [foreign_data.uuid = cards.uuid, legalities.uuid = cards.uuid, set_translations.setCode = sets.code, rulings.uuid = cards.uuid]", + "ori_query": "SELECT CAST(SUM(CASE WHEN isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Portuguese (Brazil)' )", + "amb_query": "SELECT CAST(SUM(CASE WHEN isOnlineOnly = 1 THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(id) FROM sets WHERE code IN (SELECT setCode FROM set_translations WHERE language IN ('Portuguese translation for Brazil', 'Portuguese (BR)', 'Portuguese (Brazil)', 'Brazilian Portuguese'))" + }, + { + "db_id": "superhero", + "question": "How many superheroes have Brown/Black eyes?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Brown/Black'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Brown and Black color', 'Brown/Black')" + }, + { + "db_id": "superhero", + "question": "How many superheroes have Strawberry Blond eyes?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Strawberry Blond'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Strawberry Blond', 'Strawberry-blond')" + }, + { + "db_id": "superhero", + "question": "How many superheroes have Yellow/Red eyes?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Yellow/Red'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Yellow/Red', 'Yellow-Red')" + }, + { + "db_id": "superhero", + "question": "Among the superheroes with Red eyes, how many of them have the super power of \"Size Changing\"?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Size Changing' AND T4.colour = 'Red'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name IN ('Size Changing', 'Size Alteration') AND T4.colour IN ('Crimson', 'Red')" + }, + { + "db_id": "superhero", + "question": "Among the superheroes with Red/Orange eyes, how many of them have the super power of \"Qwardian Power Ring\"?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Qwardian Power Ring' AND T4.colour = 'Red/Orange'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name IN ('Qwardian Power Ring', 'Power Ring of Qward') AND T4.colour IN ('Red Orange', 'Red/Orange')" + }, + { + "db_id": "superhero", + "question": "Please list the superhero names of all the superheroes that have Magenta eyes and Blue/White hair.", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; blond hair refers to colour = 'Blond' and hair_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Magenta' AND T3.colour = 'Magenta/White'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour IN ('Pinkish-purple', 'Magenta') AND T3.colour = 'Magenta/White'" + }, + { + "db_id": "superhero", + "question": "Please list the superhero names of all the superheroes that have Silver eyes and Purple hair.", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; blond hair refers to colour = 'Blond' and hair_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Silver' AND T3.colour = 'Purple'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour IN ('Silver', 'Silver color') AND T3.colour = 'Purple'" + }, + { + "db_id": "superhero", + "question": "Which superheroes have Red/White eyes with Orange/White hair?", + "evidence": "which superheroes refers to superhero_name; blue eyes refers to color = 'Blue' and color.id = eye_colour_id; brown hair refers to color = 'Brown' and color.id = hair_colour_id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Red/White' AND T3.colour = 'Orange/White'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour IN ('Red/White', 'Red & White') AND T3.colour IN ('Orange White', 'Orange/White')" + }, + { + "db_id": "superhero", + "question": "Calculate the percentage of superheroes with Red/Grey eyes.", + "evidence": "percentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id = eye_colour_id = 7;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T2.colour = 'Red/Grey' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T2.colour IN ('Red/Grey', 'Red/Grey color') THEN 1 ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id" + }, + { + "db_id": "superhero", + "question": "List down at least five full names of superheroes with Black/Blue eyes.", + "evidence": "blue eyes refers to colour.colour = 'Blue' WHERE eye_colour_id = colour.id; Name of superheroes refers to superhero_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Black/Blue' LIMIT 5", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Black/Blue color', 'Black/Blue') LIMIT 5" + }, + { + "db_id": "superhero", + "question": "How many superheroes have blue eyes?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Blue colour', 'Blue')" + }, + { + "db_id": "superhero", + "question": "Among the superheroes with blue eyes, how many of them have the super power of \"Agility\"?", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name IN ('Agility superpower', 'Agility') AND T4.colour IN ('Blue colour', 'Blue')" + }, + { + "db_id": "superhero", + "question": "Please list the superhero names of all the superheroes that have blue eyes and blond hair.", + "evidence": "blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; blond hair refers to colour = 'Blond' and hair_colour_id = colour.id; super power of \"Agility\" refers to power_name = 'Agility'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Blond'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour IN ('Blue colour', 'Blue') AND T3.colour IN ('Blond', 'Blonde')" + }, + { + "db_id": "superhero", + "question": "What is the percentage of blue female superheroes among all female superheroes?", + "evidence": "percentage = MULTIPLY(DIVIDE(SUM(colour = 'Blue' WHERE gender = 'Female'), COUNT(gender = 'Female')), 100); blue refers to the color = 'Blue' WHERE skin_colour_id = colour.id; female refers to gender = 'Female';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T3.colour = 'Blue' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.gender = 'Female'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T3.colour IN ('Blue colour', 'Blue') THEN T1.id ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "Which superheroes have blue eyes with brown hair?", + "evidence": "which superheroes refers to superhero_name; blue eyes refers to color = 'Blue' and color.id = eye_colour_id; brown hair refers to color = 'Brown' and color.id = hair_colour_id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Brown'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour IN ('Blue colour', 'Blue') AND T3.colour IN ('Brown', 'Brunette')" + }, + { + "db_id": "superhero", + "question": "Calculate the percentage of superheroes with blue eyes.", + "evidence": "percentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id = eye_colour_id = 7;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T2.colour = 'Blue' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T2.colour IN ('Blue colour', 'Blue') THEN 1 ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id" + }, + { + "db_id": "superhero", + "question": "List down at least five full names of superheroes with blue eyes.", + "evidence": "blue eyes refers to colour.colour = 'Blue' WHERE eye_colour_id = colour.id; Name of superheroes refers to superhero_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue' LIMIT 5", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Blue colour', 'Blue') LIMIT 5" + }, + { + "db_id": "superhero", + "question": "Give the race of the blue-haired male superhero.", + "evidence": "blue-haired refers to colour.colour = 'blue' WHERE hair_colour_id = colour.id; male refers to gender = 'male';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T3.race FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T2.colour = 'Blue' AND T4.gender = 'Male'", + "amb_query": "SELECT T3.race FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T2.colour IN ('Blue colour', 'Blue') AND T4.gender IN ('Male', 'male gender')" + }, + { + "db_id": "superhero", + "question": "How many superheroes with blonde hair are there?", + "evidence": "superheroes with blonde hair refers to colour = 'Blond' where hair_colour_id = colour.id", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour = 'Blond'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour IN ('Blond', 'Blonde')" + }, + { + "db_id": "superhero", + "question": "How many gold-eyed superheroes did Marvel Comics publish?", + "evidence": "gold-eyed refers to colour = 'Gold' where eye_colour_id = colour.id; superheroes that Marvel Comics published refers to publisher_name = 'Marvel Comics'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Gold'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour IN ('Gold', 'Gold shade')" + }, + { + "db_id": "superhero", + "question": "Provide the eye colours of the heroes whose skin colours are gold.", + "evidence": "skin colours are gold refers to colour.colour = 'Gold' WHERE skin_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T3.colour = 'Gold'", + "amb_query": "SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T3.colour IN ('Gold', 'Gold shade')" + }, + { + "db_id": "superhero", + "question": "Among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color.", + "evidence": "height from 170 to 190 refers to height_cm BETWEEN 170 AND 190; no eye color refers to colour = 'No Colour'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT DISTINCT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.height_cm BETWEEN 170 AND 190 AND T2.colour = 'No Colour'", + "amb_query": "SELECT DISTINCT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.height_cm BETWEEN 170 AND 190 AND T2.colour IN ('Colorless', 'No Colour')" + }, + { + "db_id": "superhero", + "question": "Provide the heights of the heroes whose eye colours are amber.", + "evidence": "heights of the heroes refers to height_cm; eye colours are amber refers to colour.colour = 'Amber' WHERE eye_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Amber'", + "amb_query": "SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour IN ('Amber colour', 'Amber')" + }, + { + "db_id": "superhero", + "question": "List the heroes' names whose eyes and hair colours are both black.", + "evidence": "heroes' names refers to superhero_name; eyes and hair colours are both black refers to eye_colour_id AND hair_colour_id WHERE colour.colour = 'Black';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id AND T1.hair_colour_id = T2.id WHERE T2.colour = 'Black'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id AND T1.hair_colour_id = T2.id WHERE T2.colour IN ('Jet black', 'Black')" + }, + { + "db_id": "superhero", + "question": "In superheroes with weight less than 100, list the full name of the superheroes with brown eyes.", + "evidence": "weight less than 100 refers to weight_kg < 100", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg < 100 AND T2.colour = 'Brown'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg < 100 AND T2.colour IN ('Brown', 'Brunette')" + }, + { + "db_id": "superhero", + "question": "How many green-skinned villains are there in the superhero universe?", + "evidence": "green-skinned refers to colour.colour = 'Green' WHERE skin_colour_id = colour.id; villains refers to alignment = 'Bad';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment = 'Bad' AND T3.colour = 'Green'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment IN ('Wicked', 'Bad') AND T3.colour IN ('Green', 'green color')" + }, + { + "db_id": "superhero", + "question": "How many Atlantean superheroes are there?", + "evidence": "vampire superheroes refers to race = 'Vampire'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Atlantean'", + "amb_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Atlantean characters', 'Atlantean')" + }, + { + "db_id": "superhero", + "question": "How many Korugaran superheroes are there?", + "evidence": "vampire superheroes refers to race = 'Vampire'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Korugaran'", + "amb_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Korugaran characters', 'Korugaran')" + }, + { + "db_id": "superhero", + "question": "How many Human / Altered superheroes are there?", + "evidence": "vampire superheroes refers to race = 'Vampire'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Human / Altered'", + "amb_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Human Altered', 'Human / Altered')" + }, + { + "db_id": "superhero", + "question": "How many Human-Spartoi superheroes are there?", + "evidence": "vampire superheroes refers to race = 'Vampire'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Human-Spartoi'", + "amb_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Human-Spartoi species', 'Human-Spartoi')" + }, + { + "db_id": "superhero", + "question": "Provide the full names of Human-Vuldarian heroes.", + "evidence": "vampire heroes refers to race = 'Vampire';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Human-Vuldarian'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Human-Vuldarian race', 'Human-Vuldarian')" + }, + { + "db_id": "superhero", + "question": "Provide the full names of Cyborg heroes.", + "evidence": "vampire heroes refers to race = 'Vampire';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Cyborg'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Cyborg'" + }, + { + "db_id": "superhero", + "question": "Provide the full names of Planet heroes.", + "evidence": "vampire heroes refers to race = 'Vampire';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Planet'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Planet'" + }, + { + "db_id": "superhero", + "question": "Give the name of the Yoda's species superheroes.", + "evidence": "alien superheroes refers to race = 'Alien'; name of superhero refers to superhero_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Yoda's species'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Planet'" + }, + { + "db_id": "superhero", + "question": "Give the name of the Android superheroes.", + "evidence": "alien superheroes refers to race = 'Alien'; name of superhero refers to superhero_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Android'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Android character', 'Android')" + }, + { + "db_id": "superhero", + "question": "Give the name of the Zombie superheroes.", + "evidence": "alien superheroes refers to race = 'Alien'; name of superhero refers to superhero_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Zombie'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Reanimated corpse', 'Zombie')" + }, + { + "db_id": "superhero", + "question": "List down at least five full name of Strontian superheroes.", + "evidence": "Demi-God superheroes refers to race = 'Demi-God'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Strontian'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Strontian beings', 'Strontian')" + }, + { + "db_id": "superhero", + "question": "List down at least five full name of Alpha superheroes.", + "evidence": "Demi-God superheroes refers to race = 'Demi-God'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alpha'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Alpha species', 'Alpha')" + }, + { + "db_id": "superhero", + "question": "List down at least five full name of Martian superheroes.", + "evidence": "Demi-God superheroes refers to race = 'Demi-God'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Martian'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Martian race', 'Martian')" + }, + { + "db_id": "superhero", + "question": "Provide the hair colour of the Asgardian superhero who is 185 cm tall.", + "evidence": "185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Asgardian'", + "amb_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race IN ('Asgardian', 'Asgardian character')" + }, + { + "db_id": "superhero", + "question": "Provide the hair colour of the Human-Kree superhero who is 185 cm tall.", + "evidence": "185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Human-Kree'", + "amb_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race IN ('Human Kree', 'Human-Kree')" + }, + { + "db_id": "superhero", + "question": "Provide the hair colour of the Parademon superhero who is 185 cm tall.", + "evidence": "185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Parademon'", + "amb_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race IN ('Parademon', 'Parademon being')" + }, + { + "db_id": "superhero", + "question": "What is the average height of a non-Cosmic Entity superhero in Dark Horse Comics?", + "evidence": "average = AVG(height_cm); non-human superhero refers to race <> 'Human'; Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.race != 'Cosmic Entity'", + "amb_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND NOT T3.race IN ('Cosmic Being', 'Cosmic Entity')" + }, + { + "db_id": "superhero", + "question": "What is the average height of a non-Symbiote superhero in Dark Horse Comics?", + "evidence": "average = AVG(height_cm); non-human superhero refers to race <> 'Human'; Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.race != 'Symbiote'", + "amb_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND NOT T3.race IN ('Symbiote', 'Symbiote species')" + }, + { + "db_id": "superhero", + "question": "What is the average height of a non-Human / Clone superhero in Dark Horse Comics?", + "evidence": "average = AVG(height_cm); non-human superhero refers to race <> 'Human'; Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.race != 'Human / Clone'", + "amb_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND NOT T3.race IN ('Human and Clone', 'Human / Clone')" + }, + { + "db_id": "superhero", + "question": "How many vampire superheroes are there?", + "evidence": "vampire superheroes refers to race = 'Vampire'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'", + "amb_query": "SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Vampire beings', 'Vampire')" + }, + { + "db_id": "superhero", + "question": "Provide the full names of vampire heroes.", + "evidence": "vampire heroes refers to race = 'Vampire';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Vampire beings', 'Vampire')" + }, + { + "db_id": "superhero", + "question": "Give the name of the alien superheroes.", + "evidence": "alien superheroes refers to race = 'Alien'; name of superhero refers to superhero_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Alien', 'Alien species')" + }, + { + "db_id": "superhero", + "question": "Find the average weight of the heroes who are aliens.", + "evidence": "average = AVG(weight_kg); aliens refers to race = 'Alien';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(SUM(T1.weight_kg) AS REAL) / COUNT(T1.id) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien'", + "amb_query": "SELECT CAST(SUM(T1.weight_kg) AS FLOAT) / COUNT(T1.id) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Alien', 'Alien species')" + }, + { + "db_id": "superhero", + "question": "List down at least five full name of Demi-God superheroes.", + "evidence": "Demi-God superheroes refers to race = 'Demi-God'", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Demi-God'", + "amb_query": "SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race IN ('Demi-God', 'Demi God')" + }, + { + "db_id": "superhero", + "question": "Provide the hair colour of the human superhero who is 185 cm tall.", + "evidence": "185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Human'", + "amb_query": "SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race IN ('Human', 'Homo sapiens')" + }, + { + "db_id": "superhero", + "question": "What is the average height of a non-human superhero in Dark Horse Comics?", + "evidence": "average = AVG(height_cm); non-human superhero refers to race <> 'Human'; Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.race != 'Human'", + "amb_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN race AS T3 ON T1.race_id = T3.id WHERE T2.publisher_name = 'Dark Horse Comics' AND NOT T3.race IN ('Human', 'Homo sapiens')" + }, + { + "db_id": "superhero", + "question": "How many female superheroes have a strength value of 100?", + "evidence": "female refers to gender = 'Female'; strength value of 100 refers to attribute_name = 'Strength' AND attribute_value = 100", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender = 'Female'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "What is the average weight of all female superheroes?", + "evidence": "female refers to gender = 'Female'; average weight refers to AVG(weight_kg)", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.weight_kg) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Female'", + "amb_query": "SELECT AVG(T1.weight_kg) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.", + "evidence": "eyes refers to eye_colour_id; hair refers to hair_colour_id; skin colour refers to skin_colour_id; female superheroes refers to gender = 'Female'; published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.eye_colour_id, T1.hair_colour_id, T1.skin_colour_id FROM superhero AS T1 INNER JOIN publisher AS T2 ON T2.id = T1.publisher_id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.gender = 'Female'", + "amb_query": "SELECT T1.eye_colour_id, T1.hair_colour_id, T1.skin_colour_id FROM superhero AS T1 INNER JOIN publisher AS T2 ON T2.id = T1.publisher_id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "How many percent of female heroes were published by Marvel Comics?", + "evidence": "percent = MULTIPLY(DIVIDE(SUM(gender = 'Female' WHERE publisher_name = 'Marvel Comics'), COUNT(publisher_name = 'Marvel Comics')), 100); female heroes refers to gender = 'Female'; Marvel Comics refers to publisher_name = 'Marvel Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T3.gender = 'Female'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T3.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "Find the ratio between male superheroes and female superheroes.", + "evidence": "ratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2)); male superheroes refers to gender = 'Female'; female superheroes refers to gender = 'Male';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T2.gender = 'Male' THEN T1.id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.gender = 'Female' THEN T1.id ELSE NULL END) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T2.gender IN ('Male', 'male gender') THEN T1.id ELSE NULL END) AS FLOAT) / COUNT(CASE WHEN T2.gender IN ('Female', 'female superhero') THEN T1.id ELSE NULL END) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id" + }, + { + "db_id": "superhero", + "question": "Count the good female superheroes.", + "evidence": "good refers to alignment.id = 1; female refers to gender.id = 2;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.alignment = 'Good' AND T3.gender = 'Female'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.alignment IN ('Virtuous', 'Good') AND T3.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "Among the bad superheroes, what is the percentage of female superheroes?", + "evidence": "bad superheroes refers to alignment.id = 2; percentage = MULTIPLY(DIVIDE(SUM(gender.id = 2 WHERE alignment.id = 2), COUNT(alignment.id = 2)), 100.0); female refers to gender.id = 2;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T3.gender = 'Female' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.alignment = 'Bad'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T3.gender IN ('Female', 'female superhero') THEN T1.id ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.alignment IN ('Wicked', 'Bad')" + }, + { + "db_id": "superhero", + "question": "How many female superheroes are in Marvel Comics?", + "evidence": "female refers to gender = 'Female'; Marvel Comics refers to publisher_name = 'Marvel Comics';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.gender = 'Female'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.gender IN ('Female', 'female superhero')" + }, + { + "db_id": "superhero", + "question": "Among all superheroes created by George Lucas, identify the percentage of female superheroes.", + "evidence": "created by George Lucas refers to publisher_name = 'George Lucas'; percentage = MULTIPLY(DIVIDE(SUM(gender = 'Female' WHERE publisher_name = 'George Lucas'), COUNT(publisher_name = 'George Lucas')), 100.0); female refers to gender = 'Female';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T3.gender = 'Female' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.publisher_name = 'George Lucas'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T3.gender IN ('Female', 'female superhero') THEN 1 ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.publisher_name = 'George Lucas'" + }, + { + "db_id": "superhero", + "question": "List down at least five superpowers of male superheroes.", + "evidence": "male refers to gender = 'Male'; superpowers refers to power_name;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN gender AS T4 ON T4.id = T1.gender_id WHERE T4.gender = 'Male' LIMIT 5", + "amb_query": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN gender AS T4 ON T4.id = T1.gender_id WHERE T4.gender IN ('Male', 'male gender') LIMIT 5" + }, + { + "db_id": "superhero", + "question": "Among the male superheroes, list the super hero names of superheroes with weight greater than the 79% average weight of all superheroes.", + "evidence": "super hero names refers to superhero_name;male superheros refers to gender = 'Male';Calculation = weight_kg > MULTIPLY(AVG(weight_kg), 0.79)", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Male' AND T1.weight_kg * 100 > ( SELECT AVG(weight_kg) FROM superhero ) * 79", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender IN ('Male', 'male gender') AND T1.weight_kg * 100 > (SELECT AVG(weight_kg) FROM superhero) * 79" + }, + { + "db_id": "superhero", + "question": "What is the percentage of superheroes who act in their own self-interest or make decisions based on their own moral code? Indicate how many of the said superheroes were published by Marvel Comics.", + "evidence": "published by Marvel Comics refers to publisher_name = 'Marvel Comics'; superheroes who act in their own self-interest or make decisions based on their own moral code refers to alignment = 'Bad'; calculation = MULTIPLY(DIVIDE(SUM(alignment = 'Bad); count(id)), 100)", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT (CAST(COUNT(*) AS REAL) * 100 / (SELECT COUNT(*) FROM superhero)), CAST(SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) AS REAL) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T3.id = T1.alignment_id WHERE T3.alignment = 'Bad'", + "amb_query": "SELECT (CAST(COUNT(*) AS FLOAT) * 100 / (SELECT COUNT(*) FROM superhero)), CAST(SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) AS FLOAT) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T3.id = T1.alignment_id WHERE T3.alignment IN ('Wicked', 'Bad')" + }, + { + "db_id": "superhero", + "question": "How many bad superheroes are there?", + "evidence": "bad superheroes refers to alignment_id = Bad", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Bad'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment IN ('Wicked', 'Bad')" + }, + { + "db_id": "superhero", + "question": "Describe the names of neutral alignment superheroes.", + "evidence": "names of superheroes refers to superhero_name; neutral alignment refers to alignment = 'Neutral';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'", + "amb_query": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment IN ('Neutral moral alignment', 'Neutral')" + }, + { + "db_id": "superhero", + "question": "How many superheroes have a neutral alignment?", + "evidence": "neutral alignment refers to alignment_id = 3;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'", + "amb_query": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment IN ('Neutral moral alignment', 'Neutral')" + }, + { + "db_id": "superhero", + "question": "Calculate the average attribute value of all neutral superheroes.", + "evidence": "average = AVG(attribute_value); neutral superheroes refers to alignment_id = 3;", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.attribute_value) FROM hero_attribute AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id INNER JOIN alignment AS T3 ON T2.alignment_id = T3.id WHERE T3.alignment = 'Neutral'", + "amb_query": "SELECT AVG(T1.attribute_value) FROM hero_attribute AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id INNER JOIN alignment AS T3 ON T2.alignment_id = T3.id WHERE T3.alignment IN ('Neutral moral alignment', 'Neutral')" + }, + { + "db_id": "superhero", + "question": "Calculate the average height of all neutral superheroes.", + "evidence": "", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'", + "amb_query": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment IN ('Neutral moral alignment', 'Neutral')" + }, + { + "db_id": "superhero", + "question": "Among all superheroes in Marvel Comics, identify the percentage of 'good' superheroes.", + "evidence": "Marvel Comics refers to publisher_name = 'Marvel Comics'; percentage = MULTIPLY(DIVIDE(SUM(alignment = 'Good' WHERE publisher_name = 'Marvel Comics'), COUNT(publisher_name = 'Marvel Comics')), 100.0); good superheroes refers to alignment = 'Good';", + "schema_text_wo_content": "\nTable alignment, columns = [`id` (id), `alignment` (alignment)]\nTable attribute, columns = [`id` (id), `attribute_name` (attribute name)]\nTable colour, columns = [`id` (id), `colour` (colour)]\nTable gender, columns = [`id` (id), `gender` (gender)]\nTable publisher, columns = [`id` (id), `publisher_name` (publisher_name)]\nTable race, columns = [`id` (id), `race` (race)]\nTable superhero, columns = [`id` (id), `superhero_name` (superhero name), `full_name` (full name), `gender_id` (gender id), `eye_colour_id` (eye colour id), `hair_colour_id` (hair colour id), `skin_colour_id` (skin colour id), `race_id` (race id), `publisher_id` (publisher id), `alignment_id` (alignment id), `height_cm` (height cm), `weight_kg` (weight kg)]\nTable hero_attribute, columns = [`hero_id` (hero id), `attribute_id` (attribute id), `attribute_value` (attribute value)]\nTable superpower, columns = [`id` (id), `power_name` (power name)]\nTable hero_power, columns = [`hero_id` (hero id), `power_id` (power id)]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "schema_text_with_content": "\nTable alignment, columns = [`id` (id. Example values: [1, 2, 3]), `alignment` (alignment. Example values: [Virtuous, Wicked, Neutral moral alignment])]\nTable attribute, columns = [`id` (id. Example values: [1, 2, 3]), `attribute_name` (attribute name. Example values: [Intelligence, Strength, Speed])]\nTable colour, columns = [`id` (id. Example values: [1, 2, 3]), `colour` (colour. Example values: [Colorless, Amber colour, Auburn])]\nTable gender, columns = [`id` (id. Example values: [1, 2, 3]), `gender` (gender. Example values: [male gender, female superhero, N/A])]\nTable publisher, columns = [`id` (id. Example values: [1, 2, 3]), `publisher_name` (publisher_name. Example values: [, ABC Studios, Dark Horse Comics])]\nTable race, columns = [`id` (id. Example values: [1, 2, 3]), `race` (race. Example values: [-, Alien species, Alpha species])]\nTable superhero, columns = [`id` (id. Example values: [1, 2, 3]), `superhero_name` (superhero name. Example values: [3-D Man, A-Bomb, Abe Sapien]), `full_name` (full name. Example values: [Charles Chandler, Richard Milhouse Jones, Abraham Sapien]), `gender_id` (gender id. Example values: [1, 2, 3]), `eye_colour_id` (eye colour id. Example values: [9, 33, 7]), `hair_colour_id` (hair colour id. Example values: [13, 1, 4]), `skin_colour_id` (skin colour id. Example values: [1, 7, 23]), `race_id` (race id. Example values: [1, 24, 33]), `publisher_id` (publisher id. Example values: [13, 3, 4]), `alignment_id` (alignment id. Example values: [1, 2, None]), `height_cm` (height cm. Example values: [188, 203, 191]), `weight_kg` (weight kg. Example values: [90, 441, 65])]\nTable hero_attribute, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `attribute_id` (attribute id. Example values: [1, 2, 3]), `attribute_value` (attribute value. Example values: [80, 75, 95])]\nTable superpower, columns = [`id` (id. Example values: [1, 2, 3]), `power_name` (power name. Example values: [Agility superpower, Accelerated Healing, Lantern Power Ring])]\nTable hero_power, columns = [`hero_id` (hero id. Example values: [1, 2, 3]), `power_id` (power id. Example values: [1, 18, 26])]\nforeign keys = [superhero.skin_colour_id = colour.id, superhero.race_id = race.id, superhero.publisher_id = publisher.id, superhero.hair_colour_id = colour.id, superhero.gender_id = gender.id, superhero.eye_colour_id = colour.id, superhero.alignment_id = alignment.id, hero_attribute.hero_id = superhero.id, hero_attribute.attribute_id = attribute.id, hero_power.power_id = superpower.id, hero_power.hero_id = superhero.id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN T3.alignment = 'Good' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T1.alignment_id = T3.id WHERE T2.publisher_name = 'Marvel Comics'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN T3.alignment IN ('Virtuous', 'Good') THEN T1.id ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T1.alignment_id = T3.id WHERE T2.publisher_name = 'Marvel Comics'" + }, + { + "db_id": "european_football_2", + "question": "How many matches in the 2014/2015 season were held in Scotland Premier League\n?", + "evidence": "Scotland Premier League refers to League.name = 'Scotland Premier League';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2014/2015' AND t1.name = 'Scotland Premier League'", + "amb_query": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season IN ('2014-2015 season', '2014/2015', '2014 to 2015 season') AND t1.name = 'Scotland Premier League'" + }, + { + "db_id": "european_football_2", + "question": "Give the name of the league had the most goals in the 2016 season?", + "evidence": "league that had the most goals refers to MAX(SUM(home_team_goal, away_team_goal)); 2016 season refers to season = '2015/2016';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' GROUP BY t2.name ORDER BY SUM(t1.home_team_goal + t1.away_team_goal) DESC LIMIT 1", + "amb_query": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season IN ('2015-16 season', 'season 2015-2016', '2015/2016', '2015-2016', '2015/16') GROUP BY t2.name ORDER BY SUM(t1.home_team_goal + t1.away_team_goal) DESC LIMIT 1" + }, + { + "db_id": "european_football_2", + "question": "Which home team had lost the fewest matches in the 2016 season?", + "evidence": "home team lost the matches refers to SUBTRACT(home_team_goal, away_team_goal) < 0; 2016 season refers to season = '2015/2016';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT teamDetails.team_long_name FROM Match AS matchData INNER JOIN Team AS teamDetails ON matchData.home_team_api_id = teamDetails.team_api_id WHERE matchData.season = '2015/2016' AND matchData.home_team_goal - matchData.away_team_goal < 0 GROUP BY matchData.home_team_api_id ORDER BY COUNT(*) ASC LIMIT 1", + "amb_query": "SELECT teamDetails.team_long_name FROM Match AS matchData INNER JOIN Team AS teamDetails ON matchData.home_team_api_id = teamDetails.team_api_id WHERE matchData.season IN ('2015-16 season', 'season 2015-2016', '2015/2016', '2015-2016', '2015/16') AND matchData.home_team_goal - matchData.away_team_goal < 0 GROUP BY matchData.home_team_api_id ORDER BY COUNT(*) ASC LIMIT 1" + }, + { + "db_id": "european_football_2", + "question": "Give the name of the league had the most matches end as draw in the 2016 season?", + "evidence": "most matches end as draw refers to MAX(SUM(home_team_goal = away_team_goal)); 2016 season refers to season = '2015/2016';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' AND t1.home_team_goal = t1.away_team_goal GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1", + "amb_query": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season IN ('2015-16 season', 'season 2015-2016', '2015/2016', '2015-2016', '2015/16') AND t1.home_team_goal = t1.away_team_goal GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1" + }, + { + "db_id": "european_football_2", + "question": "How many matches in the 2015/2016 season were held in Scotland Premier League\n?", + "evidence": "Scotland Premier League refers to League.name = 'Scotland Premier League';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' AND t1.name = 'Scotland Premier League'", + "amb_query": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season IN ('2015-16 season', 'season 2015-2016', '2015/2016', '2015-2016', '2015/16') AND t1.name = 'Scotland Premier League'" + }, + { + "db_id": "european_football_2", + "question": "In the 2015–2016 season, how many games were played in the Italian Serie A league?", + "evidence": "In the 2015–2016 season refers to season = '2015/2016'", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Italy Serie A' AND t2.season = '2015/2016'", + "amb_query": "SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Italy Serie A' AND t2.season IN ('2015-16 season', 'season 2015-2016', '2015/2016', '2015-2016', '2015/16')" + }, + { + "db_id": "european_football_2", + "question": "Which top 4 leagues had the most games in the 2015-2016 season?", + "evidence": "in the 2015-2016 season refers to season = '2015/2016'; league with most games refers to League.name where MAX(COUNT(id))", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 4", + "amb_query": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season IN ('2015-16 season', 'season 2015-2016', '2015/2016', '2015-2016', '2015/16') GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 4" + }, + { + "db_id": "european_football_2", + "question": "In Scotland Premier League, which away team won the most during the 2010 season?", + "evidence": "Final result should return the Team.team_long_name; Scotland Premier League refers to League.name = 'Scotland Premier League'; away team refers to away_team_api_id; away team that won the most refers to MAX(SUBTRACT(away_team_goal, home_team_goal) > 0); 2010 season refers to season = '2009/2010'; won the most refers to MAX(COUNT(*));", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT teamInfo.team_long_name FROM League AS leagueData INNER JOIN Match AS matchData ON leagueData.id = matchData.league_id INNER JOIN Team AS teamInfo ON matchData.away_team_api_id = teamInfo.team_api_id WHERE leagueData.name = 'Scotland Premier League' AND matchData.season = '2009/2010' AND matchData.away_team_goal - matchData.home_team_goal > 0 GROUP BY matchData.away_team_api_id ORDER BY COUNT(*) DESC LIMIT 1", + "amb_query": "SELECT teamInfo.team_long_name FROM League AS leagueData INNER JOIN Match AS matchData ON leagueData.id = matchData.league_id INNER JOIN Team AS teamInfo ON matchData.away_team_api_id = teamInfo.team_api_id WHERE leagueData.name = 'Scotland Premier League' AND matchData.season IN ('2009-10 season', '2009-2010', '2009/2010') AND matchData.away_team_goal - matchData.home_team_goal > 0 GROUP BY matchData.away_team_api_id ORDER BY COUNT(*) DESC LIMIT 1" + }, + { + "db_id": "european_football_2", + "question": "List the name of leagues in which the average goals by the home team is higher than the away team in the 2009/2010 season.", + "evidence": "name of league refers to League.name; average goals by the home team is higher than the away team = AVG(home_team_goal) > AVG(away_team_goal); AVG(xx_goal) = SUM(xx_goal) / COUNT(DISTINCT Match.id); 2009/2010 season refers to season = '2009/2010'", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2009/2010' GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) > 0", + "amb_query": "SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season IN ('2009-10 season', '2009-2010', '2009/2010') GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS FLOAT) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS FLOAT) / COUNT(DISTINCT t2.id)) > 0" + }, + { + "db_id": "european_football_2", + "question": "Calculate the average home team goal in the 2010/2011 season in the country of Poland.", + "evidence": "average home team goal = AVG(home_team_goal)= SUM(home_team_goal) / COUNT(DISTINCT Match.id) WHERE name = 'Poland' and season = '2010/2011';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Poland' AND t2.season = '2010/2011'", + "amb_query": "SELECT CAST(SUM(t2.home_team_goal) AS FLOAT) / COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name IN ('Poland', 'the country of Poland') AND t2.season IN ('2010/2011', '2010-2011 season', '2010-11 season', 'season 2010/2011')" + }, + { + "db_id": "european_football_2", + "question": "How many matches in the 2008/2009 season were held in Belgium?", + "evidence": "Belgium refers to Country.name = 'Belgium';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Belgium' AND t2.season = '2008/2009'", + "amb_query": "SELECT COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name IN ('Belgian country', 'Belgium') AND t2.season IN ('season 2008/2009', '2008/2009', '2008-2009 season', 'matches in 2008/2009 season')" + }, + { + "db_id": "european_football_2", + "question": "Give the name of the league had the most matches in the 2008/2009 season?", + "evidence": "league that had the most matches in the 2008/2009 season refers to MAX(league_name WHERE season = '2008/2009');", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id))", + "amb_query": "SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season IN ('season 2008/2009', '2008/2009', '2008-2009 season', 'matches in 2008/2009 season') GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season IN ('season 2008/2009', '2008/2009', '2008-2009 season', 'matches in 2008/2009 season') GROUP BY t2.league_id))" + }, + { + "db_id": "european_football_2", + "question": "Among the players with an overall rating between 60 to 65, how many players whose going to be in all of your attack moves instead of defensing?", + "evidence": "overall_rating > = 60 AND overall_rating < 65; players whose going to be in all of your attack moves instead of defensing refers to defensive_work_rate = 'low';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(id) FROM Player_Attributes WHERE overall_rating BETWEEN 60 AND 65 AND defensive_work_rate = 'low'", + "amb_query": "SELECT COUNT(id) FROM Player_Attributes WHERE overall_rating BETWEEN 60 AND 65 AND defensive_work_rate = 'low'" + }, + { + "db_id": "european_football_2", + "question": "Among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked?", + "evidence": "players born before the year 1986 refers to strftime('%Y', birthday)<'1986'; players who would remain in his position and defense while the team attacked refers to defensive_work_rate = 'high'; Should consider DISTINCT in the final result;", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'", + "amb_query": "SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y', t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'" + }, + { + "db_id": "european_football_2", + "question": "Among the players whose preferred foot was the left foot when attacking, how many of them would remain in his position when the team attacked?", + "evidence": "preferred foot when attacking was the left refers to preferred_foot = 'left'; players who would remain in his position when the team attacked refers to attacking_work_rate = 'low';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'", + "amb_query": "SELECT COUNT(player_api_id) FROM Player_Attributes WHERE preferred_foot IN ('left', 'preferred left foot', 'left foot', 'left-sided', 'left preference') AND attacking_work_rate = 'low'" + }, + { + "db_id": "european_football_2", + "question": "Who are the players that tend to be attacking when their mates were doing attack moves? List down their name.", + "evidence": "tend to be attacking when their mates were doing attack moves refers to attacking_work_rate = 'high';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'", + "amb_query": "SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'" + }, + { + "db_id": "european_football_2", + "question": "Calculate the percentage of players who prefer left foot, who were born between 1987 and 1992.", + "evidence": "players who prefer left foot refers to preferred_foot = 'left'; percentage of players who prefer left foot = DIVIDE(MULTIPLY((SUM(preferred_foot = 'left'), 100)), COUNT(player_fifa_api_id)); born between 1987 and 1992 refers to YEAR(birthday) BETWEEN '1987' AND '1992';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT CAST(COUNT(CASE WHEN t2.preferred_foot = 'left' THEN t1.id ELSE NULL END) AS REAL) * 100 / COUNT(t1.id) percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) BETWEEN '1987' AND '1992'", + "amb_query": "SELECT CAST(COUNT(CASE WHEN t2.preferred_foot IN ('left', 'preferred left foot', 'left foot', 'left-sided', 'left preference') THEN t1.id ELSE NULL END) AS FLOAT) * 100 / COUNT(t1.id) AS percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) BETWEEN '1987' AND '1992'" + }, + { + "db_id": "european_football_2", + "question": "Among all the players whose weight is under 130, how many of them preferred foot in attacking is left?", + "evidence": "weight < 130; preferred foot in attacking refers to preferred_foot; preferred_foot = 'left';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.weight < 130 AND t2.preferred_foot = 'left'", + "amb_query": "SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.weight < 130 AND t2.preferred_foot IN ('left', 'preferred left foot', 'left foot', 'left-sided', 'left preference')" + }, + { + "db_id": "european_football_2", + "question": "List out of players whose preferred foot is left.", + "evidence": "preferred_foot = 'left';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT DISTINCT t1.id, 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'", + "amb_query": "SELECT DISTINCT t1.id, 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 IN ('left', 'preferred left foot', 'left foot', 'left-sided', 'left preference')" + }, + { + "db_id": "european_football_2", + "question": "How many players had the highest potential score for crossing that preferred to use their left foots while attacking?", + "evidence": "highest potential score for crossing refers to MAX(crossing); preferred to use their left foots while attacking refers to preferred_foot = 'left'", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT COUNT(t1.id) FROM Player_Attributes AS t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) FROM Player_Attributes)", + "amb_query": "SELECT COUNT(t1.id) FROM Player_Attributes AS t1 WHERE t1.preferred_foot IN ('left', 'preferred left foot', 'left foot', 'left-sided', 'left preference') AND t1.crossing = (SELECT MAX(crossing) FROM Player_Attributes)" + }, + { + "db_id": "european_football_2", + "question": "Please provide top five football players' IDs who are among the lowest potential players and prefer to use the right foot when attacking.", + "evidence": "lowest potential players refers to MIN(potential); prefer to use the right foot when attacking refers to preferred_foot = 'right'", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT id FROM Player_Attributes WHERE preferred_foot = 'right' ORDER BY potential DESC LIMIT 5", + "amb_query": "SELECT id FROM Player_Attributes WHERE preferred_foot IN ('right-footed players', 'right foot', 'right') ORDER BY potential DESC LIMIT 5" + }, + { + "db_id": "european_football_2", + "question": "List the football teams that has a chance creation passing class of Risky. Inidcate its short name only.", + "evidence": "chance creation passing class refers to chanceCreationPassingClass; chanceCreationPassingClass = 'Risky'; short name refers to team_short_name;", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Risky'", + "amb_query": "SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass IN ('Risky chance creation', 'Risky passing class', 'Risky passing type', 'Risky')" + }, + { + "db_id": "european_football_2", + "question": "What are the short name of team who played safe while creating chance of passing?", + "evidence": "played safe while creating chance of passing refers to chanceCreationPassingClass = 'Safe'; short name of team refers to team_short_name", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Safe'", + "amb_query": "SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass IN ('Safe chance creation', 'Safe strategy', 'Safe passing', 'Safe', 'Safe passing class')" + }, + { + "db_id": "european_football_2", + "question": "Please list all team names which the speed class is fast.", + "evidence": "team names refers to team_long_name; speed class refers to buildUpPlaySpeedClass; buildUpPlaySpeedClass = 'Fast';", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT DISTINCT t1.team_long_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeedClass = 'Fast'", + "amb_query": "SELECT DISTINCT t1.team_long_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeedClass IN ('Rapid', 'Speed class Fast', 'Fast', 'Quick')" + }, + { + "db_id": "european_football_2", + "question": "List down the long name for slow speed class team.", + "evidence": "slow speed class refers to buildUpPlaySpeedClass = 'Slow'; long name refers to team_long_name", + "schema_text_wo_content": "\nTable Player_Attributes, columns = [`id` (id), `player_fifa_api_id` (player federation international football association api id), `player_api_id` (player api id), `date` (date), `overall_rating` (overall_rating), `potential` (potential), `preferred_foot` (preferred foot), `attacking_work_rate` (attacking work rate), `defensive_work_rate` (defensive_work_rate), `crossing` (crossing), `finishing` (finishing), `heading_accuracy` (heading accuracy), `short_passing` (short passing), `volleys` (volleys), `dribbling` (dribbling), `curve` (curve), `free_kick_accuracy` (free kick accuracy), `long_passing` (long passing), `ball_control` (ball control), `acceleration` (acceleration), `sprint_speed` (sprint speed), `agility` (agility), `reactions` (reactions), `balance` (balance), `shot_power` (shot power), `jumping` (jumping), `stamina` (stamina), `strength` (strength), `long_shots` (long shots), `aggression` (aggression), `interceptions` (interceptions), `positioning` (positioning), `vision` (vision), `penalties` (penalties), `marking` (marking), `standing_tackle` (standing tackle), `sliding_tackle` (sliding tackle), `gk_diving` (goalkeep diving), `gk_handling` (goalkeep handling), `gk_kicking` (goalkeep kicking), `gk_positioning` (goalkeep positioning), `gk_reflexes` (goalkeep reflexes)]\nTable Player, columns = [`id` (id), `player_api_id` (player api id), `player_name` (player name), `player_fifa_api_id` (player federation international football association api id), `birthday` (birthday), `height` (height), `weight` (weight)]\nTable League, columns = [`id` (id), `country_id` (country id), `name` (name)]\nTable Country, columns = [`id` (id), `name` (name)]\nTable Team, columns = [`id` (id), `team_api_id` (team api id), `team_fifa_api_id` (team federation international football association api id), `team_long_name` (team long name), `team_short_name` (team short name)]\nTable Team_Attributes, columns = [`id` (id), `team_fifa_api_id` (team federation international football association api id), `team_api_id` (team api id), `date` (date), `buildupplayspeed` (build up play speed), `buildupplayspeedclass` (build up play speed class), `buildupplaydribbling` (build up play dribbling), `buildupplaydribblingclass` (build up play dribbling class), `buildupplaypassing` (build up play passing), `buildupplaypassingclass` (build up play passing class), `buildupplaypositioningclass` (build up play positioning class), `chancecreationpassing` (chance creation passing), `chancecreationpassingclass` (chance creation passing class), `chancecreationcrossing` (chance creation crossing), `chancecreationcrossingclass` (chance creation crossing class), `chancecreationshooting` (chance creation shooting), `chancecreationshootingclass` (chance creation shooting class), `chancecreationpositioningclass` (chance creation positioning class), `defencepressure` (defence pressure), `defencepressureclass` (defence pressure class), `defenceaggression` (defence aggression), `defenceaggressionclass` (defence aggression class), `defenceteamwidth` (defence team width), `defenceteamwidthclass` (defence team width class), `defencedefenderlineclass` (defence defender line class)]\nTable Match, columns = [`id` (id), `country_id` (country id), `league_id` (league id), `season` (season), `stage` (stage), `date` (date), `match_api_id` (match api id), `home_team_api_id` (home team api id), `away_team_api_id` (away team api id), `home_team_goal` (home team goal), `away_team_goal` (away team goal), `home_player_x1` (home_player_x1), `home_player_x2` (home_player_x2), `home_player_x3` (home_player_x3), `home_player_x4` (home_player_x4), `home_player_x5` (home_player_x5), `home_player_x6` (home_player_x6), `home_player_x7` (home_player_x7), `home_player_x8` (home_player_x8), `home_player_x9` (home_player_x9), `home_player_x10` (home_player_x10), `home_player_x11` (home_player_x11), `away_player_x1` (away_player_x1), `away_player_x2` (away_player_x2), `away_player_x3` (away_player_x3), `away_player_x4` (away_player_x4), `away_player_x5` (away_player_x5), `away_player_x6` (away_player_x6), `away_player_x7` (away_player_x7), `away_player_x8` (away_player_x8), `away_player_x9` (away_player_x9), `away_player_x10` (away_player_x10), `away_player_x11` (away_player_x11), `home_player_y1` (home_player_y1), `home_player_y2` (home_player_y2), `home_player_y3` (home_player_y3), `home_player_y4` (home_player_y4), `home_player_y5` (home_player_y5), `home_player_y6` (home_player_y6), `home_player_y7` (home_player_y7), `home_player_y8` (home_player_y8), `home_player_y9` (home_player_y9), `home_player_y10` (home_player_y10), `home_player_y11` (home_player_y11), `away_player_y1` (away_player_y1), `away_player_y2` (away_player_y2), `away_player_y3` (away_player_y3), `away_player_y4` (away_player_y4), `away_player_y5` (away_player_y5), `away_player_y6` (away_player_y6), `away_player_y7` (away_player_y7), `away_player_y8` (away_player_y8), `away_player_y9` (away_player_y9), `away_player_y10` (away_player_y10), `away_player_y11` (away_player_y11), `home_player_1` (home_player_1), `home_player_2` (home_player_2), `home_player_3` (home_player_3), `home_player_4` (home_player_4), `home_player_5` (home_player_5), `home_player_6` (home_player_6), `home_player_7` (home_player_7), `home_player_8` (home_player_8), `home_player_9` (home_player_9), `home_player_10` (home_player_10), `home_player_11` (home_player_11), `away_player_1` (away_player_1), `away_player_2` (away_player_2), `away_player_3` (away_player_3), `away_player_4` (away_player_4), `away_player_5` (away_player_5), `away_player_6` (away_player_6), `away_player_7` (away_player_7), `away_player_8` (away_player_8), `away_player_9` (away_player_9), `away_player_10` (away_player_10), `away_player_11` (away_player_11), `goal` (goal), `shoton` (shot on), `shotoff` (shot off), `foulcommit` (foul commit), `card` (card), `cross` (cross), `corner` (corner), `possession` (possession), `b365h` (b365h), `b365d` (b365d), `b365a` (b365a), `bwh` (bwh), `bwd` (bwd), `bwa` (bwa), `iwh` (iwh), `iwd` (iwd), `iwa` (iwa), `lbh` (lbh), `lbd` (lbd), `lba` (lba), `psh` (psh), `psd` (psd), `psa` (psa), `whh` (whh), `whd` (whd), `wha` (wha), `sjh` (sjh), `sjd` (sjd), `sja` (sja), `vch` (vch), `vcd` (vcd), `vca` (vca), `gbh` (gbh), `gbd` (gbd), `gba` (gba), `bsh` (bsh), `bsd` (bsd), `bsa` (bsa)]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "schema_text_with_content": "\nTable Player_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `player_fifa_api_id` (player federation international football association api id. Example values: [218353, 189615, 186170]), `player_api_id` (player api id. Example values: [505942, 155782, 162549]), `date` (date. Example values: [2016-02-18 00:00:00, 2015-11-19 00:00:00, 2015-09-21 00:00:00]), `overall_rating` (overall_rating. Example values: [67, 62, 61]), `potential` (potential. Example values: [71, 66, 65]), `preferred_foot` (preferred foot. Example values: [right-footed players, right foot, left foot]), `attacking_work_rate` (attacking work rate. Example values: [medium, high, None]), `defensive_work_rate` (defensive_work_rate. Example values: [medium, high, low]), `crossing` (crossing. Example values: [49, 48, 80]), `finishing` (finishing. Example values: [44, 43, 53]), `heading_accuracy` (heading accuracy. Example values: [71, 70, 58]), `short_passing` (short passing. Example values: [61, 60, 71]), `volleys` (volleys. Example values: [44, 43, 40]), `dribbling` (dribbling. Example values: [51, 50, 73]), `curve` (curve. Example values: [45, 44, 70]), `free_kick_accuracy` (free kick accuracy. Example values: [39, 38, 69]), `long_passing` (long passing. Example values: [64, 63, 68]), `ball_control` (ball control. Example values: [49, 48, 71]), `acceleration` (acceleration. Example values: [60, 79, 80]), `sprint_speed` (sprint speed. Example values: [64, 78, 82]), `agility` (agility. Example values: [59, 78, 79]), `reactions` (reactions. Example values: [47, 46, 67]), `balance` (balance. Example values: [65, 90, 87]), `shot_power` (shot power. Example values: [55, 54, 71]), `jumping` (jumping. Example values: [58, 85, 84]), `stamina` (stamina. Example values: [54, 79, 80]), `strength` (strength. Example values: [76, 56, 50]), `long_shots` (long shots. Example values: [35, 34, 62]), `aggression` (aggression. Example values: [71, 63, 62]), `interceptions` (interceptions. Example values: [70, 41, 40]), `positioning` (positioning. Example values: [45, 44, 60]), `vision` (vision. Example values: [54, 53, 66]), `penalties` (penalties. Example values: [48, 47, 59]), `marking` (marking. Example values: [65, 62, 76]), `standing_tackle` (standing tackle. Example values: [69, 66, 63]), `sliding_tackle` (sliding tackle. Example values: [69, 66, 78]), `gk_diving` (goalkeep diving. Example values: [6, 5, 14]), `gk_handling` (goalkeep handling. Example values: [11, 10, 7]), `gk_kicking` (goalkeep kicking. Example values: [10, 9, 8]), `gk_positioning` (goalkeep positioning. Example values: [8, 7, 9]), `gk_reflexes` (goalkeep reflexes. Example values: [8, 7, 12])]\nTable Player, columns = [`id` (id. Example values: [3879, 401, 9179]), `player_api_id` (player api id. Example values: [2625, 2752, 2768]), `player_name` (player name. Example values: [Aaron Appindangoye, Aaron Cresswell, Aaron Doran]), `player_fifa_api_id` (player federation international football association api id. Example values: [2, 6, 11]), `birthday` (birthday. Example values: [1992-02-29 00:00:00, 1989-12-15 00:00:00, 1991-05-13 00:00:00]), `height` (height. Example values: [182.88, 170.18, 172.72]), `weight` (weight. Example values: [187, 146, 163])]\nTable League, columns = [`id` (id. Example values: [1, 1729, 4769]), `country_id` (country id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgium Jupiler League, England Premier League, France Ligue 1])]\nTable Country, columns = [`id` (id. Example values: [1, 1729, 4769]), `name` (name. Example values: [Belgian country, England, France])]\nTable Team, columns = [`id` (id. Example values: [31446, 1513, 31456]), `team_api_id` (team api id. Example values: [1601, 1773, 1957]), `team_fifa_api_id` (team federation international football association api id. Example values: [673, 675, 15005]), `team_long_name` (team long name. Example values: [KRC Genk, Beerschot AC, SV Zulte-Waregem]), `team_short_name` (team short name. Example values: [GEN, BAC, ZUL])]\nTable Team_Attributes, columns = [`id` (id. Example values: [1, 2, 3]), `team_fifa_api_id` (team federation international football association api id. Example values: [434, 77, 614]), `team_api_id` (team api id. Example values: [9930, 8485, 8576]), `date` (date. Example values: [2010-02-22 00:00:00, 2014-09-19 00:00:00, 2015-09-10 00:00:00]), `buildupplayspeed` (build up play speed. Example values: [60, 52, 47]), `buildupplayspeedclass` (build up play speed class. Example values: [Balanced, Quick, Slow pace team]), `buildupplaydribbling` (build up play dribbling. Example values: [None, 48, 41]), `buildupplaydribblingclass` (build up play dribbling class. Example values: [Little, Normal, Lots]), `buildupplaypassing` (build up play passing. Example values: [50, 56, 54]), `buildupplaypassingclass` (build up play passing class. Example values: [Mixed, Long, Short]), `buildupplaypositioningclass` (build up play positioning class. Example values: [Organised, Free Form]), `chancecreationpassing` (chance creation passing. Example values: [60, 54, 70]), `chancecreationpassingclass` (chance creation passing class. Example values: [Normal, Risky chance creation, Safe chance creation]), `chancecreationcrossing` (chance creation crossing. Example values: [65, 63, 70]), `chancecreationcrossingclass` (chance creation crossing class. Example values: [Normal, Lots, Little]), `chancecreationshooting` (chance creation shooting. Example values: [55, 64, 70]), `chancecreationshootingclass` (chance creation shooting class. Example values: [Normal, Lots, Little]), `chancecreationpositioningclass` (chance creation positioning class. Example values: [Organised, Free Form]), `defencepressure` (defence pressure. Example values: [50, 47, 60]), `defencepressureclass` (defence pressure class. Example values: [Medium, Deep, High]), `defenceaggression` (defence aggression. Example values: [55, 44, 70]), `defenceaggressionclass` (defence aggression class. Example values: [Press, Double, Contain]), `defenceteamwidth` (defence team width. Example values: [45, 54, 70]), `defenceteamwidthclass` (defence team width class. Example values: [Normal, Wide, Narrow]), `defencedefenderlineclass` (defence defender line class. Example values: [Cover, Offside Trap])]\nTable Match, columns = [`id` (id. Example values: [4769, 4770, 4771]), `country_id` (country id. Example values: [1, 1729, 4769]), `league_id` (league id. Example values: [1, 1729, 4769]), `season` (season. Example values: [season 2008/2009, 2008-2009 season, matches in 2008/2009 season]), `stage` (stage. Example values: [1, 10, 11]), `date` (date. Example values: [2008-08-17 00:00:00, 2008-08-16 00:00:00, 2008-09-24 00:00:00]), `match_api_id` (match api id. Example values: [483129, 483130, 483131]), `home_team_api_id` (home team api id. Example values: [9987, 10000, 9984]), `away_team_api_id` (away team api id. Example values: [9993, 9994, 8635]), `home_team_goal` (home team goal. Example values: [1, 0, 5]), `away_team_goal` (away team goal. Example values: [1, 0, 3]), `home_player_x1` (home_player_x1. Example values: [None, 1, 2]), `home_player_x2` (home_player_x2. Example values: [None, 2, 4]), `home_player_x3` (home_player_x3. Example values: [None, 4, 6]), `home_player_x4` (home_player_x4. Example values: [None, 6, 8]), `home_player_x5` (home_player_x5. Example values: [None, 8, 6]), `home_player_x6` (home_player_x6. Example values: [None, 2, 6]), `home_player_x7` (home_player_x7. Example values: [None, 4, 8]), `home_player_x8` (home_player_x8. Example values: [None, 6, 2]), `home_player_x9` (home_player_x9. Example values: [None, 8, 4]), `home_player_x10` (home_player_x10. Example values: [None, 4, 6]), `home_player_x11` (home_player_x11. Example values: [None, 6, 4]), `away_player_x1` (away_player_x1. Example values: [None, 1, 2]), `away_player_x2` (away_player_x2. Example values: [None, 2, 4]), `away_player_x3` (away_player_x3. Example values: [None, 4, 6]), `away_player_x4` (away_player_x4. Example values: [None, 6, 8]), `away_player_x5` (away_player_x5. Example values: [None, 8, 6]), `away_player_x6` (away_player_x6. Example values: [None, 2, 4]), `away_player_x7` (away_player_x7. Example values: [None, 4, 6]), `away_player_x8` (away_player_x8. Example values: [None, 6, 8]), `away_player_x9` (away_player_x9. Example values: [None, 8, 2]), `away_player_x10` (away_player_x10. Example values: [None, 4, 6]), `away_player_x11` (away_player_x11. Example values: [None, 6, 4]), `home_player_y1` (home_player_y1. Example values: [None, 1, 3]), `home_player_y2` (home_player_y2. Example values: [None, 3, 0]), `home_player_y3` (home_player_y3. Example values: [None, 3, 5]), `home_player_y4` (home_player_y4. Example values: [None, 3, 5]), `home_player_y5` (home_player_y5. Example values: [None, 3, 7]), `home_player_y6` (home_player_y6. Example values: [None, 7, 3]), `home_player_y7` (home_player_y7. Example values: [None, 7, 6]), `home_player_y8` (home_player_y8. Example values: [None, 7, 8]), `home_player_y9` (home_player_y9. Example values: [None, 7, 10]), `home_player_y10` (home_player_y10. Example values: [None, 10, 7]), `home_player_y11` (home_player_y11. Example values: [None, 10, 11]), `away_player_y1` (away_player_y1. Example values: [None, 1, 3]), `away_player_y2` (away_player_y2. Example values: [None, 3]), `away_player_y3` (away_player_y3. Example values: [None, 3, 7]), `away_player_y4` (away_player_y4. Example values: [None, 3, 5]), `away_player_y5` (away_player_y5. Example values: [None, 3, 7]), `away_player_y6` (away_player_y6. Example values: [None, 7, 3]), `away_player_y7` (away_player_y7. Example values: [None, 7, 6]), `away_player_y8` (away_player_y8. Example values: [None, 7, 8]), `away_player_y9` (away_player_y9. Example values: [None, 7, 10]), `away_player_y10` (away_player_y10. Example values: [None, 10, 7]), `away_player_y11` (away_player_y11. Example values: [None, 10, 11]), `home_player_1` (home_player_1. Example values: [None, 39890, 38327]), `home_player_2` (home_player_2. Example values: [None, 67950, 39580]), `home_player_3` (home_player_3. Example values: [None, 38788, 67958]), `home_player_4` (home_player_4. Example values: [None, 38312, 67959]), `home_player_5` (home_player_5. Example values: [None, 26235, 37112]), `home_player_6` (home_player_6. Example values: [None, 36393, 46004]), `home_player_7` (home_player_7. Example values: [None, 148286, 164732]), `home_player_8` (home_player_8. Example values: [None, 67898, 39631]), `home_player_9` (home_player_9. Example values: [None, 26916, 164352]), `home_player_10` (home_player_10. Example values: [None, 38801, 38423]), `home_player_11` (home_player_11. Example values: [None, 94289, 26502]), `away_player_1` (away_player_1. Example values: [None, 34480, 37937]), `away_player_2` (away_player_2. Example values: [None, 38388, 38293]), `away_player_3` (away_player_3. Example values: [None, 26458, 148313]), `away_player_4` (away_player_4. Example values: [None, 13423, 104411]), `away_player_5` (away_player_5. Example values: [None, 38389, 148314]), `away_player_6` (away_player_6. Example values: [None, 38798, 37202]), `away_player_7` (away_player_7. Example values: [None, 30949, 43158]), `away_player_8` (away_player_8. Example values: [None, 38253, 9307]), `away_player_9` (away_player_9. Example values: [None, 106013, 42153]), `away_player_10` (away_player_10. Example values: [None, 38383, 32690]), `away_player_11` (away_player_11. Example values: [None, 46552, 38782]), `goal` (goal. Example values: [None]), `shoton` (shot on. Example values: [None]), `shotoff` (shot off. Example values: [None]), `foulcommit` (foul commit. Example values: [None]), `card` (card. Example values: [None, ]), `cross` (cross. Example values: [None]), `corner` (corner. Example values: [None]), `possession` (possession. Example values: [None]), `b365h` (b365h. Example values: [1.73, 1.95, 2.38]), `b365d` (b365d. Example values: [3.4, 3.2, 3.3]), `b365a` (b365a. Example values: [5.0, 3.6, 2.75]), `bwh` (bwh. Example values: [1.75, 1.8, 2.4]), `bwd` (bwd. Example values: [3.35, 3.3, 4.0]), `bwa` (bwa. Example values: [4.2, 3.95, 2.55]), `iwh` (iwh. Example values: [1.85, 1.9, 2.6]), `iwd` (iwd. Example values: [3.2, 3.1, 3.9]), `iwa` (iwa. Example values: [3.5, 2.3, 6.0]), `lbh` (lbh. Example values: [1.8, 1.9, 2.5]), `lbd` (lbd. Example values: [3.3, 3.2, 3.6]), `lba` (lba. Example values: [3.75, 3.5, 2.5]), `psh` (psh. Example values: [None, 5.1, 2.48]), `psd` (psd. Example values: [None, 3.82, 3.52]), `psa` (psa. Example values: [None, 1.76, 2.96]), `whh` (whh. Example values: [1.7, 1.83, 2.5]), `whd` (whd. Example values: [3.3, 3.25, 3.75]), `wha` (wha. Example values: [4.33, 3.6, 2.4]), `sjh` (sjh. Example values: [1.9, 1.95, 2.63]), `sjd` (sjd. Example values: [3.3, 4.0, 3.5]), `sja` (sja. Example values: [4.0, 3.8, 2.5]), `vch` (vch. Example values: [1.65, 2.0, 2.35]), `vcd` (vcd. Example values: [3.4, 3.25, 3.75]), `vca` (vca. Example values: [4.5, 3.25, 2.65]), `gbh` (gbh. Example values: [1.78, 1.85, 2.5]), `gbd` (gbd. Example values: [3.25, 3.2, 3.75]), `gba` (gba. Example values: [4.0, 3.75, 2.5]), `bsh` (bsh. Example values: [1.73, 1.91, 2.3]), `bsd` (bsd. Example values: [3.4, 3.25, 3.2]), `bsa` (bsa. Example values: [4.2, 3.6, 2.75])]\nforeign keys = [Player_Attributes.player_api_id = Player.player_api_id, Player_Attributes.player_fifa_api_id = Player.player_fifa_api_id, League.country_id = Country.id, Team_Attributes.team_api_id = Team.team_api_id, Team_Attributes.team_fifa_api_id = Team.team_fifa_api_id, Match.away_player_11 = Player.player_api_id, Match.away_player_10 = Player.player_api_id, Match.away_player_9 = Player.player_api_id, Match.away_player_8 = Player.player_api_id, Match.away_player_7 = Player.player_api_id, Match.away_player_6 = Player.player_api_id, Match.away_player_5 = Player.player_api_id, Match.away_player_4 = Player.player_api_id, Match.away_player_3 = Player.player_api_id, Match.away_player_2 = Player.player_api_id, Match.away_player_1 = Player.player_api_id, Match.home_player_11 = Player.player_api_id, Match.home_player_10 = Player.player_api_id, Match.home_player_9 = Player.player_api_id, Match.home_player_8 = Player.player_api_id, Match.home_player_7 = Player.player_api_id, Match.home_player_6 = Player.player_api_id, Match.home_player_5 = Player.player_api_id, Match.home_player_4 = Player.player_api_id, Match.home_player_3 = Player.player_api_id, Match.home_player_2 = Player.player_api_id, Match.home_player_1 = Player.player_api_id, Match.away_team_api_id = Team.team_api_id, Match.home_team_api_id = Team.team_api_id]", + "ori_query": "SELECT DISTINCT t1.team_long_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeedClass = 'Slow'", + "amb_query": "SELECT DISTINCT t1.team_long_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeedClass IN ('Slow', 'Slow buildup play speed', 'Slow pace team', 'Slow team speed')" + }, + { + "db_id": "1-15621965-17", + "question": "What is the latest number of the forward-center position from the Wake Forest school team?", + "evidence": "", + "schema_text_wo_content": "Table 1-15621965-17, columns = [Player, No., Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 1-15621965-17, columns = [`Player` (Example values: [jeryl sasser, danny schayes, dennis scott]), `No.` (Example values: [9.0, 5.0, 24.0]), `Nationality` (Example values: [united states, lebanon]), `Position` (Example values: [guard player, basketball guard, forward-center player]), `Years in Orlando` (Example values: [2001–2003, 1996–1999, 1990–1997]), `School/Club Team` (Example values: [southern methodist, syracuse, georgia tech])]\n", + "ori_query": "select max(`no.`) from `1-15621965-17` where `position` = 'forward-center' and `school/club team` = 'wake forest'", + "amb_query": "SELECT MAX(\"no.\") FROM \"1-15621965-17\" WHERE position IN ('forward-center player', 'forward-center') AND \"school/club team\" = 'wake forest'" + }, + { + "db_id": "1-15621965-17", + "question": "What is the latest number of the guard position from the Wake Forest school team?", + "evidence": "", + "schema_text_wo_content": "Table 1-15621965-17, columns = [Player, No., Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 1-15621965-17, columns = [`Player` (Example values: [jeryl sasser, danny schayes, dennis scott]), `No.` (Example values: [9.0, 5.0, 24.0]), `Nationality` (Example values: [united states, lebanon]), `Position` (Example values: [guard player, basketball guard, forward-center player]), `Years in Orlando` (Example values: [2001–2003, 1996–1999, 1990–1997]), `School/Club Team` (Example values: [southern methodist, syracuse, georgia tech])]\n", + "ori_query": "select max(`no.`) from `1-15621965-17` where `position` = 'guard' and `school/club team` = 'wake forest'", + "amb_query": "SELECT MAX(\"no.\") FROM \"1-15621965-17\" WHERE position IN ('guard', 'basketball guard', 'guard position', 'guard player') AND \"school/club team\" = 'wake forest'" + }, + { + "db_id": "1-1008653-1", + "question": "What is the English name of the country whose official native language is portuguese?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `country ( exonym )` from `1-1008653-1` where `official or native language(s) (alphabet/script)` = 'portuguese'", + "amb_query": "SELECT \"country ( exonym )\" FROM \"1-1008653-1\" WHERE official or native language(s) (alphabet/script) IN ('portuguese', 'portuguese language')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the English name of the country whose official native language is german?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `country ( exonym )` from `1-1008653-1` where `official or native language(s) (alphabet/script)` = 'german'", + "amb_query": "SELECT \"country ( exonym )\" FROM \"1-1008653-1\" WHERE official or native language(s) (alphabet/script) IN ('german', 'german tongue')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the English name of the country whose official native language is Dutch Papiamento?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `country ( exonym )` from `1-1008653-1` where `official or native language(s) (alphabet/script)` = 'dutch papiamento'", + "amb_query": "SELECT \"country ( exonym )\" FROM \"1-1008653-1\" WHERE official or native language(s) (alphabet/script) IN ('dutch papiamento', 'dutch papiamento language')" + }, + { + "db_id": "1-1008653-1", + "question": "What official or native languages are spoken in the country whose capital city is yerevan?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `official or native language(s) (alphabet/script)` from `1-1008653-1` where `capital ( exonym )` = 'yerevan'", + "amb_query": "SELECT \"official or native language(s) (alphabet/script)\" FROM \"1-1008653-1\" WHERE capital ( exonym ) IN ('yerevan, republic of armenia', 'yerevan')" + }, + { + "db_id": "1-1008653-1", + "question": "What official or native languages are spoken in the country whose capital city is saint john's?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `official or native language(s) (alphabet/script)` from `1-1008653-1` where `capital ( exonym )` = 'saint john's'", + "amb_query": "SELECT \"official or native language(s) (alphabet/script)\" FROM \"1-1008653-1\" WHERE capital ( exonym ) IN ('yerevan, republic of armenia', 'yerevan')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the local name given to the city of oranjestad?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `capital ( endonym )` from `1-1008653-1` where `capital ( exonym )` = 'oranjestad'", + "amb_query": "SELECT \"capital ( endonym )\" FROM \"1-1008653-1\" WHERE capital ( exonym ) IN ('oranjestad', 'oranjestad, aruba')" + }, + { + "db_id": "1-1008653-1", + "question": "What official or native languages are spoken in the country whose capital city is Canberra?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `official or native language(s) (alphabet/script)` from `1-1008653-1` where `capital ( exonym )` = 'canberra'", + "amb_query": "SELECT \"official or native language(s) (alphabet/script)\" FROM \"1-1008653-1\" WHERE capital ( exonym ) IN ('canberra', 'canberra city')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the local name given to the city of Canberra?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `capital ( endonym )` from `1-1008653-1` where `capital ( exonym )` = 'canberra'", + "amb_query": "SELECT \"capital ( endonym )\" FROM \"1-1008653-1\" WHERE capital ( exonym ) IN ('canberra', 'canberra city')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the English name given to the city of luanda?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `capital ( exonym )` from `1-1008653-1` where `capital ( endonym )` = \"luanda\"", + "amb_query": "SELECT \"capital ( exonym )\" FROM \"1-1008653-1\" WHERE capital ( endonym ) IN ('luanda, capital city of angola', 'luanda')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the English name given to the city of buenos aires?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `capital ( exonym )` from `1-1008653-1` where `capital ( endonym )` = \"buenos aires\"", + "amb_query": "SELECT \"capital ( exonym )\" FROM \"1-1008653-1\" WHERE capital ( endonym ) IN ('capital of argentina', 'buenos aires')" + }, + { + "db_id": "1-1008653-1", + "question": "What is the English name given to the city of St. John's?", + "evidence": "", + "schema_text_wo_content": "Table 1-1008653-1, columns = [Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)]\n", + "schema_text_with_content": "Table 1-1008653-1, columns = [`Country ( exonym )` (Example values: [afghanistan, albania, american samoa]), `Capital ( exonym )` (Example values: [kabul, tirana, pago pago]), `Country ( endonym )` (Example values: [afghanestan افغانستان, shqipëria, amerika sāmoa american samoa]), `Capital ( endonym )` (Example values: [kaalu كابل, tiranë, pago pago pago pago]), `Official or native language(s) (alphabet/script)` (Example values: [pashto / dari ( arabic script ), albanian, samoan english])]\n", + "ori_query": "select `capital ( exonym )` from `1-1008653-1` where `capital ( endonym )` = \"st. john's\"", + "amb_query": "SELECT \"capital ( exonym )\" FROM \"1-1008653-1\" WHERE \"capital ( endonym )\" = 'st. john''s'" + }, + { + "db_id": "2-15123149-2", + "question": "Which Elector is german?", + "evidence": "", + "schema_text_wo_content": "Table 2-15123149-2, columns = [Elector, Nationality, Cardinalatial Title, Elevated, Elevator]\n", + "schema_text_with_content": "Table 2-15123149-2, columns = [`Elector` (Example values: [pierre de foix , o.f.m., petrus von schaumberg, dénes szécsi]), `Nationality` (Example values: [french, german language, hungarian nationality]), `Cardinalatial Title` (Example values: [bishop of albano, priest of s. vitale, priest of s. ciriaco]), `Elevated` (Example values: [september, 1414, 1439, december 18, 1448, december 20]), `Elevator` (Example values: [antipope john xxiii, pope eugenius iv, pope nicholas v])]\n", + "ori_query": "select `elector` from `2-15123149-2` where `nationality` = 'german'", + "amb_query": "SELECT \"elector\" FROM \"2-15123149-2\" WHERE nationality IN ('german', 'german language')" + }, + { + "db_id": "2-15123149-2", + "question": "Which Elector is hungarian?", + "evidence": "", + "schema_text_wo_content": "Table 2-15123149-2, columns = [Elector, Nationality, Cardinalatial Title, Elevated, Elevator]\n", + "schema_text_with_content": "Table 2-15123149-2, columns = [`Elector` (Example values: [pierre de foix , o.f.m., petrus von schaumberg, dénes szécsi]), `Nationality` (Example values: [french, german language, hungarian nationality]), `Cardinalatial Title` (Example values: [bishop of albano, priest of s. vitale, priest of s. ciriaco]), `Elevated` (Example values: [september, 1414, 1439, december 18, 1448, december 20]), `Elevator` (Example values: [antipope john xxiii, pope eugenius iv, pope nicholas v])]\n", + "ori_query": "select `elector` from `2-15123149-2` where `nationality` = 'hungarian'", + "amb_query": "SELECT \"elector\" FROM \"2-15123149-2\" WHERE nationality IN ('hungarian nationality', 'hungarian')" + }, + { + "db_id": "1-10342194-3", + "question": "What is the amount of trees, that require replacement when district is ordzhonikidzevsky?", + "evidence": "", + "schema_text_wo_content": "Table 1-10342194-3, columns = [District, Total amount of trees, Prevailing types, %, Amount of old trees, Amount of trees, that require replacement]\n", + "schema_text_with_content": "Table 1-10342194-3, columns = [`District` (Example values: [kirovsky, motovilikhinsky district, ordzhonikidzevsky district]), `Total amount of trees` (Example values: [188497.0, 129888.0, 101566.0]), `Prevailing types, %` (Example values: [pine — 29.37 poplar — 26.12 acer negundo — 13.2, acer negundo — 27.62 poplar — 15.88 willow — 14.05, poplar — 24.09 birch — 17.32 acer negundo — 13.02]), `Amount of old trees` (Example values: [98,374 (52.18%), 13,603 (10.47%), 1,928 (1.89%)]), `Amount of trees, that require replacement` (Example values: [2,322 (2.36%), 1,419 (10.43%), 1,297 (67.27%)])]\n", + "ori_query": "select `amount of trees, that require replacement` from `1-10342194-3` where `district` = 'ordzhonikidzevsky'", + "amb_query": "SELECT \"amount of trees, that require replacement\" FROM \"1-10342194-3\" WHERE district IN ('ordzhonikidzevsky', 'ordzhonikidzevsky district')" + }, + { + "db_id": "1-10342194-3", + "question": "What is the amount of trees, that require replacement when district is leninsky?", + "evidence": "", + "schema_text_wo_content": "Table 1-10342194-3, columns = [District, Total amount of trees, Prevailing types, %, Amount of old trees, Amount of trees, that require replacement]\n", + "schema_text_with_content": "Table 1-10342194-3, columns = [`District` (Example values: [kirovsky, motovilikhinsky district, ordzhonikidzevsky district]), `Total amount of trees` (Example values: [188497.0, 129888.0, 101566.0]), `Prevailing types, %` (Example values: [pine — 29.37 poplar — 26.12 acer negundo — 13.2, acer negundo — 27.62 poplar — 15.88 willow — 14.05, poplar — 24.09 birch — 17.32 acer negundo — 13.02]), `Amount of old trees` (Example values: [98,374 (52.18%), 13,603 (10.47%), 1,928 (1.89%)]), `Amount of trees, that require replacement` (Example values: [2,322 (2.36%), 1,419 (10.43%), 1,297 (67.27%)])]\n", + "ori_query": "select `amount of trees, that require replacement` from `1-10342194-3` where `district` = 'leninsky'", + "amb_query": "SELECT \"amount of trees, that require replacement\" FROM \"1-10342194-3\" WHERE district IN ('leninsky', 'leninsky, russia')" + }, + { + "db_id": "1-10342194-3", + "question": "What is the total amount of trees when district is leninsky?", + "evidence": "", + "schema_text_wo_content": "Table 1-10342194-3, columns = [District, Total amount of trees, Prevailing types, %, Amount of old trees, Amount of trees, that require replacement]\n", + "schema_text_with_content": "Table 1-10342194-3, columns = [`District` (Example values: [kirovsky, motovilikhinsky district, ordzhonikidzevsky district]), `Total amount of trees` (Example values: [188497.0, 129888.0, 101566.0]), `Prevailing types, %` (Example values: [pine — 29.37 poplar — 26.12 acer negundo — 13.2, acer negundo — 27.62 poplar — 15.88 willow — 14.05, poplar — 24.09 birch — 17.32 acer negundo — 13.02]), `Amount of old trees` (Example values: [98,374 (52.18%), 13,603 (10.47%), 1,928 (1.89%)]), `Amount of trees, that require replacement` (Example values: [2,322 (2.36%), 1,419 (10.43%), 1,297 (67.27%)])]\n", + "ori_query": "select max(`total amount of trees`) from `1-10342194-3` where `district` = 'leninsky'", + "amb_query": "SELECT MAX(\"total amount of trees\") FROM \"1-10342194-3\" WHERE district IN ('leninsky', 'leninsky, russia')" + }, + { + "db_id": "1-10342194-3", + "question": "What is the amount of trees, that require replacement when the district is motovilikhinsky?", + "evidence": "", + "schema_text_wo_content": "Table 1-10342194-3, columns = [District, Total amount of trees, Prevailing types, %, Amount of old trees, Amount of trees, that require replacement]\n", + "schema_text_with_content": "Table 1-10342194-3, columns = [`District` (Example values: [kirovsky, motovilikhinsky district, ordzhonikidzevsky district]), `Total amount of trees` (Example values: [188497.0, 129888.0, 101566.0]), `Prevailing types, %` (Example values: [pine — 29.37 poplar — 26.12 acer negundo — 13.2, acer negundo — 27.62 poplar — 15.88 willow — 14.05, poplar — 24.09 birch — 17.32 acer negundo — 13.02]), `Amount of old trees` (Example values: [98,374 (52.18%), 13,603 (10.47%), 1,928 (1.89%)]), `Amount of trees, that require replacement` (Example values: [2,322 (2.36%), 1,419 (10.43%), 1,297 (67.27%)])]\n", + "ori_query": "select `amount of trees, that require replacement` from `1-10342194-3` where `district` = 'motovilikhinsky'", + "amb_query": "SELECT \"amount of trees, that require replacement\" FROM \"1-10342194-3\" WHERE district IN ('motovilikhinsky', 'motovilikhinsky district')" + }, + { + "db_id": "1-10712301-5", + "question": "What is the license award date for central scotland?", + "evidence": "", + "schema_text_wo_content": "Table 1-10712301-5, columns = [Region, Operator, Licence award date, On air date, Closure date]\n", + "schema_text_with_content": "Table 1-10712301-5, columns = [`Region` (Example values: [central scotland, united kingdom, north east england area, south wales and the severn estuary]), `Operator` (Example values: [switch digital, mxr ltd]), `Licence award date` (Example values: [6 october 2000, 15 december 2000, 23 january 2001]), `On air date` (Example values: [june 2001, july 2001, august 2001]), `Closure date` (Example values: [n/a, 29 july 2013, 27 august 2013])]\n", + "ori_query": "select `licence award date` from `1-10712301-5` where `region` = 'central scotland'", + "amb_query": "SELECT \"licence award date\" FROM \"1-10712301-5\" WHERE region IN ('central scotland', 'central scotland, united kingdom')" + }, + { + "db_id": "1-10712301-5", + "question": "What is the license award date for North East England?", + "evidence": "", + "schema_text_wo_content": "Table 1-10712301-5, columns = [Region, Operator, Licence award date, On air date, Closure date]\n", + "schema_text_with_content": "Table 1-10712301-5, columns = [`Region` (Example values: [central scotland, united kingdom, north east england area, south wales and the severn estuary]), `Operator` (Example values: [switch digital, mxr ltd]), `Licence award date` (Example values: [6 october 2000, 15 december 2000, 23 january 2001]), `On air date` (Example values: [june 2001, july 2001, august 2001]), `Closure date` (Example values: [n/a, 29 july 2013, 27 august 2013])]\n", + "ori_query": "select `licence award date` from `1-10712301-5` where `region` = 'north east england'", + "amb_query": "SELECT \"licence award date\" FROM \"1-10712301-5\" WHERE region IN ('north east england', 'north east england area')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the percentage of growth in 2000-2008 in gabon?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select `% growth (2000–2008)` from `1-10733530-3` where `nation` = 'gabon'", + "amb_query": "SELECT \"% growth (2000–2008)\" FROM \"1-10733530-3\" WHERE nation IN ('gabon', 'gabon, central africa')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the percentage of growth in 2000-2008 in egypt?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select `% growth (2000–2008)` from `1-10733530-3` where `nation` = 'egypt'", + "amb_query": "SELECT \"% growth (2000–2008)\" FROM \"1-10733530-3\" WHERE nation IN ('egypt, africa', 'egypt')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the percentage of growth in 2000-2008 in camerun?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select `% growth (2000–2008)` from `1-10733530-3` where `nation` = 'camerun'", + "amb_query": "SELECT \"% growth (2000–2008)\" FROM \"1-10733530-3\" WHERE nation IN ('cameroon nation', 'camerun')" + }, + { + "db_id": "1-10733530-3", + "question": "Name the total number of percentage growth 2000-2008 of comoros?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select count(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'comoros'", + "amb_query": "SELECT COUNT(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('comoros republic', 'comoros')" + }, + { + "db_id": "1-10733530-3", + "question": "Name the total number of percentage growth 2000-2008 of guinea?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select count(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'guinea'", + "amb_query": "SELECT COUNT(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('guinea', 'guinea conakry')" + }, + { + "db_id": "1-10733530-3", + "question": "Name the total number of percentage growth 2000-2008 of namibia?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select count(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'namibia'", + "amb_query": "SELECT COUNT(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('namibia', 'namibia country')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the maximum percentage grown 2000-2008 in central african republic", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select max(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'central african republic'", + "amb_query": "SELECT MAX(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('car', 'central african republic')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the maximum percentage grown 2000-2008 in botswana", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select max(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'botswana'", + "amb_query": "SELECT MAX(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('botswana, africa', 'botswana')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the maximum percentage grown 2000-2008 in sierra leone", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select max(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'sierra leone'", + "amb_query": "SELECT MAX(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('sierra leone, west africa', 'sierra leone')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the percentage of growth in 2000-2008 in ethiopia?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select `% growth (2000–2008)` from `1-10733530-3` where `nation` = 'ethiopia'", + "amb_query": "SELECT \"% growth (2000–2008)\" FROM \"1-10733530-3\" WHERE nation IN ('ethiopian nation', 'ethiopia')" + }, + { + "db_id": "1-10733530-3", + "question": "Name the total number of percentage growth 2000-2008 of uganda?", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select count(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'uganda'", + "amb_query": "SELECT COUNT(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('uganda', 'uganda, east africa')" + }, + { + "db_id": "1-10733530-3", + "question": "What is the maximum percentage grown 2000-2008 in burundi", + "evidence": "", + "schema_text_wo_content": "Table 1-10733530-3, columns = [Nation, Population (thousands), Internet subscriptions (2000) (thousands of users), Internet subscriptions (2008) (thousands of users), % growth (2000–2008), % Internet users]\n", + "schema_text_with_content": "Table 1-10733530-3, columns = [`Nation` (Example values: [algeria, angola, benin]), `Population (thousands)` (Example values: [33770.0, 12531.0, 8295.0]), `Internet subscriptions (2000) (thousands of users)` (Example values: [50.0, 30.0, 15.0]), `Internet subscriptions (2008) (thousands of users)` (Example values: [3500.0, 100.0, 150.0]), `% growth (2000–2008)` (Example values: [69.0, 233.0, 900.0]), `% Internet users` (Example values: [10.0, 1.0, 2.0])]\n", + "ori_query": "select max(`% growth (2000–2008)`) from `1-10733530-3` where `nation` = 'burundi'", + "amb_query": "SELECT MAX(\"% growth (2000–2008)\") FROM \"1-10733530-3\" WHERE nation IN ('burundi', 'burundi, east africa')" + }, + { + "db_id": "1-10798421-1", + "question": "Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele hmelše. ", + "evidence": "", + "schema_text_wo_content": "Table 1-10798421-1, columns = [Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951]\n", + "schema_text_with_content": "Table 1-10798421-1, columns = [`Village (German)` (Example values: [zell freibach, zell homölisch, zell mitterwinkel]), `Village (Slovenian)` (Example values: [sele borovnica village, the village named sele hmelše, sele srednji kot village]), `Number of people 1991` (Example values: [187.0, 23.0, 98.0]), `Percent of Slovenes 1991` (Example values: [92.5%, 47.8%, 98%]), `Percent of Slovenes 1951` (Example values: [96.9%, 76.3%, 95.7%])]\n", + "ori_query": "select `village (german)` from `1-10798421-1` where `village (slovenian)` = 'sele hmelše'", + "amb_query": "SELECT \"village (german)\" FROM \"1-10798421-1\" WHERE village (slovenian) IN ('the village named sele hmelše', 'sele hmelše')" + }, + { + "db_id": "1-10798421-1", + "question": "Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele srednji kot. ", + "evidence": "", + "schema_text_wo_content": "Table 1-10798421-1, columns = [Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951]\n", + "schema_text_with_content": "Table 1-10798421-1, columns = [`Village (German)` (Example values: [zell freibach, zell homölisch, zell mitterwinkel]), `Village (Slovenian)` (Example values: [sele borovnica village, the village named sele hmelše, sele srednji kot village]), `Number of people 1991` (Example values: [187.0, 23.0, 98.0]), `Percent of Slovenes 1991` (Example values: [92.5%, 47.8%, 98%]), `Percent of Slovenes 1951` (Example values: [96.9%, 76.3%, 95.7%])]\n", + "ori_query": "select `village (german)` from `1-10798421-1` where `village (slovenian)` = 'sele srednji kot'", + "amb_query": "SELECT \"village (german)\" FROM \"1-10798421-1\" WHERE village (slovenian) IN ('sele srednji kot', 'sele srednji kot village')" + }, + { + "db_id": "1-10798421-1", + "question": "Provide with the names of the village (German) that is part of village (Slovenian) with sele srednji kot.", + "evidence": "", + "schema_text_wo_content": "Table 1-10798421-1, columns = [Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951]\n", + "schema_text_with_content": "Table 1-10798421-1, columns = [`Village (German)` (Example values: [zell freibach, zell homölisch, zell mitterwinkel]), `Village (Slovenian)` (Example values: [sele borovnica village, the village named sele hmelše, sele srednji kot village]), `Number of people 1991` (Example values: [187.0, 23.0, 98.0]), `Percent of Slovenes 1991` (Example values: [92.5%, 47.8%, 98%]), `Percent of Slovenes 1951` (Example values: [96.9%, 76.3%, 95.7%])]\n", + "ori_query": "select `village (german)` from `1-10798421-1` where `village (slovenian)` = 'sele srednji kot'", + "amb_query": "SELECT \"village (german)\" FROM \"1-10798421-1\" WHERE village (slovenian) IN ('sele srednji kot', 'sele srednji kot village')" + }, + { + "db_id": "1-10798421-1", + "question": "Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele borovnica.", + "evidence": "", + "schema_text_wo_content": "Table 1-10798421-1, columns = [Village (German), Village (Slovenian), Number of people 1991, Percent of Slovenes 1991, Percent of Slovenes 1951]\n", + "schema_text_with_content": "Table 1-10798421-1, columns = [`Village (German)` (Example values: [zell freibach, zell homölisch, zell mitterwinkel]), `Village (Slovenian)` (Example values: [sele borovnica village, the village named sele hmelše, sele srednji kot village]), `Number of people 1991` (Example values: [187.0, 23.0, 98.0]), `Percent of Slovenes 1991` (Example values: [92.5%, 47.8%, 98%]), `Percent of Slovenes 1951` (Example values: [96.9%, 76.3%, 95.7%])]\n", + "ori_query": "select `village (german)` from `1-10798421-1` where `village (slovenian)` = 'sele borovnica'", + "amb_query": "SELECT \"village (german)\" FROM \"1-10798421-1\" WHERE village (slovenian) IN ('sele borovnica village', 'sele borovnica')" + }, + { + "db_id": "1-1134091-4", + "question": "When was the successor seated when the district was wisconsin 3rd?", + "evidence": "", + "schema_text_wo_content": "Table 1-1134091-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-1134091-4, columns = [`District` (Example values: [michigan 7th, maryland 1st, pennsylvania 12th district]), `Vacator` (Example values: [donald w. riegle, jr. (r), william mills (r), john saylor (r)]), `Reason for change` (Example values: [switched party affiliation, may 24, 1973 suicide, died october 28, 1973]), `Successor` (Example values: [donald w. riegle, jr. (d), robert bauman (r), john murtha (d)]), `Date successor seated` (Example values: [february 27, 1973, august 21, 1973, february 5, 1974])]\n", + "ori_query": "select `date successor seated` from `1-1134091-4` where `district` = 'wisconsin 3rd'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-1134091-4\" WHERE district IN ('wisconsin 3rd', 'wisconsin 3rd, usa')" + }, + { + "db_id": "1-1134091-4", + "question": "When was the successor seated when the district was pennsylvania 12th?", + "evidence": "", + "schema_text_wo_content": "Table 1-1134091-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-1134091-4, columns = [`District` (Example values: [michigan 7th, maryland 1st, pennsylvania 12th district]), `Vacator` (Example values: [donald w. riegle, jr. (r), william mills (r), john saylor (r)]), `Reason for change` (Example values: [switched party affiliation, may 24, 1973 suicide, died october 28, 1973]), `Successor` (Example values: [donald w. riegle, jr. (d), robert bauman (r), john murtha (d)]), `Date successor seated` (Example values: [february 27, 1973, august 21, 1973, february 5, 1974])]\n", + "ori_query": "select `date successor seated` from `1-1134091-4` where `district` = 'pennsylvania 12th'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-1134091-4\" WHERE district IN ('pennsylvania 12th district', 'pennsylvania 12th')" + }, + { + "db_id": "1-1134091-4", + "question": "When was the successor seated when the district was california 13th?", + "evidence": "", + "schema_text_wo_content": "Table 1-1134091-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-1134091-4, columns = [`District` (Example values: [michigan 7th, maryland 1st, pennsylvania 12th district]), `Vacator` (Example values: [donald w. riegle, jr. (r), william mills (r), john saylor (r)]), `Reason for change` (Example values: [switched party affiliation, may 24, 1973 suicide, died october 28, 1973]), `Successor` (Example values: [donald w. riegle, jr. (d), robert bauman (r), john murtha (d)]), `Date successor seated` (Example values: [february 27, 1973, august 21, 1973, february 5, 1974])]\n", + "ori_query": "select `date successor seated` from `1-1134091-4` where `district` = 'california 13th'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-1134091-4\" WHERE \"district\" = 'california 13th'" + }, + { + "db_id": "1-1134091-4", + "question": "When was the successor seated when the district was California 10th?", + "evidence": "", + "schema_text_wo_content": "Table 1-1134091-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-1134091-4, columns = [`District` (Example values: [michigan 7th, maryland 1st, pennsylvania 12th district]), `Vacator` (Example values: [donald w. riegle, jr. (r), william mills (r), john saylor (r)]), `Reason for change` (Example values: [switched party affiliation, may 24, 1973 suicide, died october 28, 1973]), `Successor` (Example values: [donald w. riegle, jr. (d), robert bauman (r), john murtha (d)]), `Date successor seated` (Example values: [february 27, 1973, august 21, 1973, february 5, 1974])]\n", + "ori_query": "select `date successor seated` from `1-1134091-4` where `district` = 'california 10th'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-1134091-4\" WHERE district IN ('california 10th congressional district', 'california 10th')" + }, + { + "db_id": "1-1134091-4", + "question": "What was the district when the reason for change was committed suicide may 24, 1973?", + "evidence": "", + "schema_text_wo_content": "Table 1-1134091-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-1134091-4, columns = [`District` (Example values: [michigan 7th, maryland 1st, pennsylvania 12th district]), `Vacator` (Example values: [donald w. riegle, jr. (r), william mills (r), john saylor (r)]), `Reason for change` (Example values: [switched party affiliation, may 24, 1973 suicide, died october 28, 1973]), `Successor` (Example values: [donald w. riegle, jr. (d), robert bauman (r), john murtha (d)]), `Date successor seated` (Example values: [february 27, 1973, august 21, 1973, february 5, 1974])]\n", + "ori_query": "select `district` from `1-1134091-4` where `reason for change` = 'committed suicide may 24, 1973'", + "amb_query": "SELECT \"district\" FROM \"1-1134091-4\" WHERE reason for change IN ('may 24, 1973 suicide', 'committed suicide may 24, 1973')" + }, + { + "db_id": "1-1134091-4", + "question": "What was the district when the reason for change was died January 1, 1974?", + "evidence": "", + "schema_text_wo_content": "Table 1-1134091-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-1134091-4, columns = [`District` (Example values: [michigan 7th, maryland 1st, pennsylvania 12th district]), `Vacator` (Example values: [donald w. riegle, jr. (r), william mills (r), john saylor (r)]), `Reason for change` (Example values: [switched party affiliation, may 24, 1973 suicide, died october 28, 1973]), `Successor` (Example values: [donald w. riegle, jr. (d), robert bauman (r), john murtha (d)]), `Date successor seated` (Example values: [february 27, 1973, august 21, 1973, february 5, 1974])]\n", + "ori_query": "select `district` from `1-1134091-4` where `reason for change` = 'died january 1, 1974'", + "amb_query": "SELECT \"district\" FROM \"1-1134091-4\" WHERE reason for change IN ('expired january 1, 1974', 'died january 1, 1974')" + }, + { + "db_id": "1-1160161-12", + "question": "Which Allied Force targetted ophoven?", + "evidence": "", + "schema_text_wo_content": "Table 1-1160161-12, columns = [Target, Target Code (Allied), Luftwaffe unit (wing), Allied forces, Effect on Allied Squadrons (according to official figures)]\n", + "schema_text_with_content": "Table 1-1160161-12, columns = [`Target` (Example values: [asch, brussels—grimbergen, sint-denijs-westrem, ghent]), `Target Code (Allied)` (Example values: [y-29, b-60, b-61]), `Luftwaffe unit (wing)` (Example values: [jg 11, jg 26 and jg 54, jg 1]), `Allied forces` (Example values: [usaaf 366th fighter group , 352nd fighter group ., only six aircraft were present, no. 131 wing raf]), `Effect on Allied Squadrons (according to official figures)` (Example values: [one abandoned b-17 destroyed, three damaged., all six aircraft destroyed., 16 destroyed several damaged.])]\n", + "ori_query": "select `allied forces` from `1-1160161-12` where `target` = 'ophoven'", + "amb_query": "SELECT \"allied forces\" FROM \"1-1160161-12\" WHERE target IN ('ophoven', 'ophoven, belgium')" + }, + { + "db_id": "1-1160161-12", + "question": "What is the allied target code of the group that targetted maldegem?", + "evidence": "", + "schema_text_wo_content": "Table 1-1160161-12, columns = [Target, Target Code (Allied), Luftwaffe unit (wing), Allied forces, Effect on Allied Squadrons (according to official figures)]\n", + "schema_text_with_content": "Table 1-1160161-12, columns = [`Target` (Example values: [asch, brussels—grimbergen, sint-denijs-westrem, ghent]), `Target Code (Allied)` (Example values: [y-29, b-60, b-61]), `Luftwaffe unit (wing)` (Example values: [jg 11, jg 26 and jg 54, jg 1]), `Allied forces` (Example values: [usaaf 366th fighter group , 352nd fighter group ., only six aircraft were present, no. 131 wing raf]), `Effect on Allied Squadrons (according to official figures)` (Example values: [one abandoned b-17 destroyed, three damaged., all six aircraft destroyed., 16 destroyed several damaged.])]\n", + "ori_query": "select `target code (allied)` from `1-1160161-12` where `target` = 'maldegem'", + "amb_query": "SELECT \"target code (allied)\" FROM \"1-1160161-12\" WHERE target IN ('maldegem municipality', 'maldegem')" + }, + { + "db_id": "1-1160161-12", + "question": "Which Allied Force targetted Woensdrecht?", + "evidence": "", + "schema_text_wo_content": "Table 1-1160161-12, columns = [Target, Target Code (Allied), Luftwaffe unit (wing), Allied forces, Effect on Allied Squadrons (according to official figures)]\n", + "schema_text_with_content": "Table 1-1160161-12, columns = [`Target` (Example values: [asch, brussels—grimbergen, sint-denijs-westrem, ghent]), `Target Code (Allied)` (Example values: [y-29, b-60, b-61]), `Luftwaffe unit (wing)` (Example values: [jg 11, jg 26 and jg 54, jg 1]), `Allied forces` (Example values: [usaaf 366th fighter group , 352nd fighter group ., only six aircraft were present, no. 131 wing raf]), `Effect on Allied Squadrons (according to official figures)` (Example values: [one abandoned b-17 destroyed, three damaged., all six aircraft destroyed., 16 destroyed several damaged.])]\n", + "ori_query": "select `allied forces` from `1-1160161-12` where `target` = 'woensdrecht'", + "amb_query": "SELECT \"allied forces\" FROM \"1-1160161-12\" WHERE target IN ('woensdrecht region', 'woensdrecht')" + }, + { + "db_id": "1-1160161-12", + "question": "What is the allied target code of the group that targetted ghent/sint-denijs-westrem?", + "evidence": "", + "schema_text_wo_content": "Table 1-1160161-12, columns = [Target, Target Code (Allied), Luftwaffe unit (wing), Allied forces, Effect on Allied Squadrons (according to official figures)]\n", + "schema_text_with_content": "Table 1-1160161-12, columns = [`Target` (Example values: [asch, brussels—grimbergen, sint-denijs-westrem, ghent]), `Target Code (Allied)` (Example values: [y-29, b-60, b-61]), `Luftwaffe unit (wing)` (Example values: [jg 11, jg 26 and jg 54, jg 1]), `Allied forces` (Example values: [usaaf 366th fighter group , 352nd fighter group ., only six aircraft were present, no. 131 wing raf]), `Effect on Allied Squadrons (according to official figures)` (Example values: [one abandoned b-17 destroyed, three damaged., all six aircraft destroyed., 16 destroyed several damaged.])]\n", + "ori_query": "select `target code (allied)` from `1-1160161-12` where `target` = 'ghent/sint-denijs-westrem'", + "amb_query": "SELECT \"target code (allied)\" FROM \"1-1160161-12\" WHERE target IN ('ghent/sint-denijs-westrem', 'sint-denijs-westrem, ghent')" + }, + { + "db_id": "1-11609814-1", + "question": "what is the total number of constancy where purity is devotion", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select count(`constancy`) from `1-11609814-1` where `purity` = 'devotion'", + "amb_query": "SELECT COUNT(\"constancy\") FROM \"1-11609814-1\" WHERE purity IN ('loyalty', 'devotion')" + }, + { + "db_id": "1-11609814-1", + "question": "what is the total number of constancy where purity is falling", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select count(`constancy`) from `1-11609814-1` where `purity` = 'falling'", + "amb_query": "SELECT COUNT(\"constancy\") FROM \"1-11609814-1\" WHERE purity IN ('falling', 'falling condition')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the permanence of the body where purity is rudra", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `permanence of the body` from `1-11609814-1` where `purity` = 'rudra'", + "amb_query": "SELECT \"permanence of the body\" FROM \"1-11609814-1\" WHERE \"purity\" = 'rudra'" + }, + { + "db_id": "1-11609814-1", + "question": " what's the permanence of the body where purity is apprehension", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `permanence of the body` from `1-11609814-1` where `purity` = 'apprehension'", + "amb_query": "SELECT \"permanence of the body\" FROM \"1-11609814-1\" WHERE purity IN ('apprehension', 'dread')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the permanence of the body where penance is loss of demerit", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `permanence of the body` from `1-11609814-1` where `penance` = 'loss of demerit'", + "amb_query": "SELECT \"permanence of the body\" FROM \"1-11609814-1\" WHERE penance IN ('penance involving loss of demerit', 'loss of demerit')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the permanence of the body where penance is the undifferenced", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `permanence of the body` from `1-11609814-1` where `penance` = 'the undifferenced'", + "amb_query": "SELECT \"permanence of the body\" FROM \"1-11609814-1\" WHERE penance IN ('the undifferenced', 'the unmarked')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the constancy where permanence of the body is the rite", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `constancy` from `1-11609814-1` where `permanence of the body` = 'the rite'", + "amb_query": "SELECT \"constancy\" FROM \"1-11609814-1\" WHERE permanence of the body IN ('the rite', 'the body rite')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the constancy where permanence of the body is meditation", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `constancy` from `1-11609814-1` where `permanence of the body` = 'meditation'", + "amb_query": "SELECT \"constancy\" FROM \"1-11609814-1\" WHERE permanence of the body IN ('meditation', 'meditation technique')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the permanence of the body where constancy is loss of interestedness", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `permanence of the body` from `1-11609814-1` where `constancy` = 'loss of interestedness'", + "amb_query": "SELECT \"permanence of the body\" FROM \"1-11609814-1\" WHERE constancy IN ('loss of attentiveness', 'loss of interestedness')" + }, + { + "db_id": "1-11609814-1", + "question": " what's the permanence of the body where constancy is interestedness", + "evidence": "", + "schema_text_wo_content": "Table 1-11609814-1, columns = [Acquisition, knowledge, penance, permanence of the body, constancy, purity]\n", + "schema_text_with_content": "Table 1-11609814-1, columns = [`Acquisition` (Example values: [impurity, expedient, locality]), `knowledge` (Example values: [false conception, use of habitation, spiritual teachers]), `penance` (Example values: [demerit, pious muttering, a cavern]), `permanence of the body` (Example values: [attachment, meditation technique, a special place]), `constancy` (Example values: [interest, constant recollection of rudra, the burning ground]), `purity` (Example values: [falling condition, dread, rudra])]\n", + "ori_query": "select `permanence of the body` from `1-11609814-1` where `constancy` = 'interestedness'", + "amb_query": "SELECT \"permanence of the body\" FROM \"1-11609814-1\" WHERE constancy IN ('interestedness', 'interest')" + }, + { + "db_id": "1-11734041-2", + "question": "What school did the guard whose number is 10 belong to?", + "evidence": "", + "schema_text_wo_content": "Table 1-11734041-2, columns = [Player, No.(s), Height in Ft., Position, Years for Rockets, School/Club Team/Country]\n", + "schema_text_with_content": "Table 1-11734041-2, columns = [`Player` (Example values: [bailey, gus gus bailey, bailey, james james bailey, baker, vin vin baker]), `No.(s)` (Example values: [22, 2, 42]), `Height in Ft.` (Example values: [6-6, 6-9, 6-11]), `Position` (Example values: [guard player, forward player, center]), `Years for Rockets` (Example values: [1974-76, 1982-84, 2004-05]), `School/Club Team/Country` (Example values: [texas-el paso, xavierian brothers, hartford])]\n", + "ori_query": "select `school/club team/country` from `1-11734041-2` where `no.(s)` = '10' and `position` = 'guard'", + "amb_query": "SELECT \"school/club team/country\" FROM \"1-11734041-2\" WHERE \"no.(s)\" = '10' AND position IN ('guard', 'guard position', 'guard player', 'guard position player')" + }, + { + "db_id": "1-11734041-2", + "question": "What school did the forward whose number is 10 belong to?", + "evidence": "", + "schema_text_wo_content": "Table 1-11734041-2, columns = [Player, No.(s), Height in Ft., Position, Years for Rockets, School/Club Team/Country]\n", + "schema_text_with_content": "Table 1-11734041-2, columns = [`Player` (Example values: [bailey, gus gus bailey, bailey, james james bailey, baker, vin vin baker]), `No.(s)` (Example values: [22, 2, 42]), `Height in Ft.` (Example values: [6-6, 6-9, 6-11]), `Position` (Example values: [guard player, forward player, center]), `Years for Rockets` (Example values: [1974-76, 1982-84, 2004-05]), `School/Club Team/Country` (Example values: [texas-el paso, xavierian brothers, hartford])]\n", + "ori_query": "select `school/club team/country` from `1-11734041-2` where `no.(s)` = '10' and `position` = 'forward'", + "amb_query": "SELECT \"school/club team/country\" FROM \"1-11734041-2\" WHERE \"no.(s)\" = '10' AND position IN ('forward athlete', 'forward position player', 'forward role', 'forward', 'forward player')" + }, + { + "db_id": "1-15353123-1", + "question": "Who was the highest picked guard", + "evidence": "", + "schema_text_wo_content": "Table 1-15353123-1, columns = [Round #, Pick #, Player, Position, College]\n", + "schema_text_with_content": "Table 1-15353123-1, columns = [`Round #` (Example values: [1.0, 2.0, 3.0]), `Pick #` (Example values: [26.0, 54.0, 82.0]), `Player` (Example values: [henry jones, phil hansen, darryl wren]), `Position` (Example values: [defensive back, defensive end athlete, wide receiver]), `College` (Example values: [illinois, north dakota state, pittsburg state])]\n", + "ori_query": "select max(`pick #`) from `1-15353123-1` where `position` = 'guard'", + "amb_query": "SELECT MAX(\"pick #\") FROM \"1-15353123-1\" WHERE position IN ('guard role', 'guard')" + }, + { + "db_id": "1-15353123-1", + "question": "Who was the highest picked defensive end", + "evidence": "", + "schema_text_wo_content": "Table 1-15353123-1, columns = [Round #, Pick #, Player, Position, College]\n", + "schema_text_with_content": "Table 1-15353123-1, columns = [`Round #` (Example values: [1.0, 2.0, 3.0]), `Pick #` (Example values: [26.0, 54.0, 82.0]), `Player` (Example values: [henry jones, phil hansen, darryl wren]), `Position` (Example values: [defensive back, defensive end athlete, wide receiver]), `College` (Example values: [illinois, north dakota state, pittsburg state])]\n", + "ori_query": "select max(`pick #`) from `1-15353123-1` where `position` = 'defensive end'", + "amb_query": "SELECT MAX(\"pick #\") FROM \"1-15353123-1\" WHERE position IN ('defensive end athlete', 'defensive end')" + }, + { + "db_id": "1-11961582-6", + "question": "Name the number of teams at the philips arena 19,701?", + "evidence": "", + "schema_text_wo_content": "Table 1-11961582-6, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-11961582-6, columns = [`Game` (Example values: [44.0, 45.0, 46.0]), `Date` (Example values: [february 2, february 4, february 6]), `Team` (Example values: [new jersey, philadelphia, la lakers]), `Score` (Example values: [w 104–32, w 96–91, w 98–95]), `High points` (Example values: [m. williams (24), j. childress (21), j. johnson (28)]), `High rebounds` (Example values: [j. smith (8), a. horford (8), a. horford (20)]), `High assists` (Example values: [a. law (8), j. smith (9), j. johnson (8)]), `Location Attendance` (Example values: [philips arena 18,102, philips arena 14,563, philips arena, atlanta]), `Record` (Example values: [20–24, 21–24, 22–24])]\n", + "ori_query": "select count(`team`) from `1-11961582-6` where `location attendance` = 'philips arena 19,701'", + "amb_query": "SELECT COUNT(\"team\") FROM \"1-11961582-6\" WHERE location attendance IN ('philips arena, atlanta', 'philips arena 19,701')" + }, + { + "db_id": "1-11961582-6", + "question": "Name the number of teams at the philips arena 15,661?", + "evidence": "", + "schema_text_wo_content": "Table 1-11961582-6, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-11961582-6, columns = [`Game` (Example values: [44.0, 45.0, 46.0]), `Date` (Example values: [february 2, february 4, february 6]), `Team` (Example values: [new jersey, philadelphia, la lakers]), `Score` (Example values: [w 104–32, w 96–91, w 98–95]), `High points` (Example values: [m. williams (24), j. childress (21), j. johnson (28)]), `High rebounds` (Example values: [j. smith (8), a. horford (8), a. horford (20)]), `High assists` (Example values: [a. law (8), j. smith (9), j. johnson (8)]), `Location Attendance` (Example values: [philips arena 18,102, philips arena 14,563, philips arena, atlanta]), `Record` (Example values: [20–24, 21–24, 22–24])]\n", + "ori_query": "select count(`team`) from `1-11961582-6` where `location attendance` = 'philips arena 15,661'", + "amb_query": "SELECT COUNT(\"team\") FROM \"1-11961582-6\" WHERE location attendance IN ('philips arena 15,661', 'philips arena, usa')" + }, + { + "db_id": "1-11961582-6", + "question": "What is the team located at charlotte bobcats arena 11,213?", + "evidence": "", + "schema_text_wo_content": "Table 1-11961582-6, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-11961582-6, columns = [`Game` (Example values: [44.0, 45.0, 46.0]), `Date` (Example values: [february 2, february 4, february 6]), `Team` (Example values: [new jersey, philadelphia, la lakers]), `Score` (Example values: [w 104–32, w 96–91, w 98–95]), `High points` (Example values: [m. williams (24), j. childress (21), j. johnson (28)]), `High rebounds` (Example values: [j. smith (8), a. horford (8), a. horford (20)]), `High assists` (Example values: [a. law (8), j. smith (9), j. johnson (8)]), `Location Attendance` (Example values: [philips arena 18,102, philips arena 14,563, philips arena, atlanta]), `Record` (Example values: [20–24, 21–24, 22–24])]\n", + "ori_query": "select `team` from `1-11961582-6` where `location attendance` = 'charlotte bobcats arena 11,213'", + "amb_query": "SELECT \"team\" FROM \"1-11961582-6\" WHERE location attendance IN ('charlotte arena 11,213', 'charlotte bobcats arena 11,213')" + }, + { + "db_id": "1-11961582-6", + "question": "Name the number of teams at the philips arena 19,335?", + "evidence": "", + "schema_text_wo_content": "Table 1-11961582-6, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-11961582-6, columns = [`Game` (Example values: [44.0, 45.0, 46.0]), `Date` (Example values: [february 2, february 4, february 6]), `Team` (Example values: [new jersey, philadelphia, la lakers]), `Score` (Example values: [w 104–32, w 96–91, w 98–95]), `High points` (Example values: [m. williams (24), j. childress (21), j. johnson (28)]), `High rebounds` (Example values: [j. smith (8), a. horford (8), a. horford (20)]), `High assists` (Example values: [a. law (8), j. smith (9), j. johnson (8)]), `Location Attendance` (Example values: [philips arena 18,102, philips arena 14,563, philips arena, atlanta]), `Record` (Example values: [20–24, 21–24, 22–24])]\n", + "ori_query": "select count(`team`) from `1-11961582-6` where `location attendance` = 'philips arena 19,335'", + "amb_query": "SELECT COUNT(\"team\") FROM \"1-11961582-6\" WHERE location attendance IN ('philips arena 19,335', 'philips arena 19,335 capacity')" + }, + { + "db_id": "1-11961582-6", + "question": "What is the team located at philips arena 18,227?", + "evidence": "", + "schema_text_wo_content": "Table 1-11961582-6, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-11961582-6, columns = [`Game` (Example values: [44.0, 45.0, 46.0]), `Date` (Example values: [february 2, february 4, february 6]), `Team` (Example values: [new jersey, philadelphia, la lakers]), `Score` (Example values: [w 104–32, w 96–91, w 98–95]), `High points` (Example values: [m. williams (24), j. childress (21), j. johnson (28)]), `High rebounds` (Example values: [j. smith (8), a. horford (8), a. horford (20)]), `High assists` (Example values: [a. law (8), j. smith (9), j. johnson (8)]), `Location Attendance` (Example values: [philips arena 18,102, philips arena 14,563, philips arena, atlanta]), `Record` (Example values: [20–24, 21–24, 22–24])]\n", + "ori_query": "select `team` from `1-11961582-6` where `location attendance` = 'philips arena 18,227'", + "amb_query": "SELECT \"team\" FROM \"1-11961582-6\" WHERE location attendance IN ('philips arena 18,227', 'philips arena 19,701')" + }, + { + "db_id": "1-12094609-1", + "question": " what's the preliminaries where state is new jersey", + "evidence": "", + "schema_text_wo_content": "Table 1-12094609-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094609-1, columns = [`State` (Example values: [oklahoma, texas, new york]), `Preliminaries` (Example values: [8.977, 8.851, 8.888]), `Interview` (Example values: [9.488, 9.333, 9.155]), `Swimsuit` (Example values: [9.488, 9.411, 9.100]), `Evening Gown` (Example values: [9.533, 9.500, 8.988]), `Average` (Example values: [9.503, 9.414, 9.081])]\n", + "ori_query": "select `preliminaries` from `1-12094609-1` where `state` = 'new jersey'", + "amb_query": "SELECT \"preliminaries\" FROM \"1-12094609-1\" WHERE state IN ('new jersey', 'new jersey, usa')" + }, + { + "db_id": "1-12094609-1", + "question": " what's the evening gown where state is virginia", + "evidence": "", + "schema_text_wo_content": "Table 1-12094609-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094609-1, columns = [`State` (Example values: [oklahoma, texas, new york]), `Preliminaries` (Example values: [8.977, 8.851, 8.888]), `Interview` (Example values: [9.488, 9.333, 9.155]), `Swimsuit` (Example values: [9.488, 9.411, 9.100]), `Evening Gown` (Example values: [9.533, 9.500, 8.988]), `Average` (Example values: [9.503, 9.414, 9.081])]\n", + "ori_query": "select `evening gown` from `1-12094609-1` where `state` = 'virginia'", + "amb_query": "SELECT \"evening gown\" FROM \"1-12094609-1\" WHERE state IN ('virginia', 'commonwealth of virginia')" + }, + { + "db_id": "1-12094609-1", + "question": " what's the preliminaries where state is south dakota", + "evidence": "", + "schema_text_wo_content": "Table 1-12094609-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094609-1, columns = [`State` (Example values: [oklahoma, texas, new york]), `Preliminaries` (Example values: [8.977, 8.851, 8.888]), `Interview` (Example values: [9.488, 9.333, 9.155]), `Swimsuit` (Example values: [9.488, 9.411, 9.100]), `Evening Gown` (Example values: [9.533, 9.500, 8.988]), `Average` (Example values: [9.503, 9.414, 9.081])]\n", + "ori_query": "select `preliminaries` from `1-12094609-1` where `state` = 'south dakota'", + "amb_query": "SELECT \"preliminaries\" FROM \"1-12094609-1\" WHERE state IN ('sd', 'south dakota')" + }, + { + "db_id": "1-12094609-1", + "question": " what's the evening gown where state is south dakota", + "evidence": "", + "schema_text_wo_content": "Table 1-12094609-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094609-1, columns = [`State` (Example values: [oklahoma, texas, new york]), `Preliminaries` (Example values: [8.977, 8.851, 8.888]), `Interview` (Example values: [9.488, 9.333, 9.155]), `Swimsuit` (Example values: [9.488, 9.411, 9.100]), `Evening Gown` (Example values: [9.533, 9.500, 8.988]), `Average` (Example values: [9.503, 9.414, 9.081])]\n", + "ori_query": "select `evening gown` from `1-12094609-1` where `state` = 'south dakota'", + "amb_query": "SELECT \"evening gown\" FROM \"1-12094609-1\" WHERE state IN ('sd', 'south dakota')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the rank for the year opened in 1959 in virginia?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `rank` from `2-18204624-1` where `year opened` = '1959' and `state` = 'virginia'", + "amb_query": "SELECT \"rank\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1959' AND state IN ('virginia', 'virginia state', 'va, usa')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the city in connecticut that opened in 1996?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `city` from `2-18204624-1` where `year opened` = '1996' and `state` = 'connecticut'", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('connecticut state', 'connecticut', 'us-ct state')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the city in mississippi that opened in 1996?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `city` from `2-18204624-1` where `year opened` = '1996' and `state` = 'mississippi'", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('mississippi', 'mississippi state', 'mississippi river state')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the rank for the year opened in 1959 in michigan?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `rank` from `2-18204624-1` where `year opened` = '1959' and `state` = 'michigan'", + "amb_query": "SELECT \"rank\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1959' AND state IN ('michigan, united states', 'state of michigan', 'michigan state', 'michigan')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the rank for the year opened in 1959 in california?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `rank` from `2-18204624-1` where `year opened` = '1959' and `state` = 'california'", + "amb_query": "SELECT \"rank\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1959' AND state IN ('california, the united states', 'california', 'california state', 'california, usa')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the city in wyoming that opened in 1996?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `city` from `2-18204624-1` where `year opened` = '1996' and `state` = 'wyoming'", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('wyoming', 'wyoming state')" + }, + { + "db_id": "2-18204624-1", + "question": "What was the year opened for louisiana with a smaller than 21,500 capacity?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `year opened` from `2-18204624-1` where `state` = 'louisiana' and `capacity` < 21,500", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('wyoming', 'wyoming state')" + }, + { + "db_id": "2-18204624-1", + "question": "What was the year opened for texas with a smaller than 21,500 capacity?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `year opened` from `2-18204624-1` where `state` = 'texas' and `capacity` < 21,500", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('wyoming', 'wyoming state')" + }, + { + "db_id": "2-18204624-1", + "question": "What was the year opened for minnesota with a smaller than 21,500 capacity?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `year opened` from `2-18204624-1` where `state` = 'minnesota' and `capacity` < 21,500", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('wyoming', 'wyoming state')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the city in Alabama that opened in 1996?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `city` from `2-18204624-1` where `year opened` = '1996' and `state` = 'alabama'", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('alabama', 'alabama, united states', 'heart of dixie')" + }, + { + "db_id": "2-18204624-1", + "question": "What was the year opened for North Carolina with a smaller than 21,500 capacity?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `year opened` from `2-18204624-1` where `state` = 'north carolina' and `capacity` < 21,500", + "amb_query": "SELECT \"city\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1996' AND state IN ('alabama', 'alabama, united states', 'heart of dixie')" + }, + { + "db_id": "2-18204624-1", + "question": "What is the rank for the year opened in 1959 in Pennsylvania?", + "evidence": "", + "schema_text_wo_content": "Table 2-18204624-1, columns = [Rank, Capacity, City, State, Year opened]\n", + "schema_text_with_content": "Table 2-18204624-1, columns = [`Rank` (Example values: [1, 2, 3]), `Capacity` (Example values: [109,901, 107,282, 102,455]), `City` (Example values: [ann arbor, state college, knoxville]), `State` (Example values: [michigan state, pennsylvania, tennessee]), `Year opened` (Example values: [1927, 1960, 1921])]\n", + "ori_query": "select `rank` from `2-18204624-1` where `year opened` = '1959' and `state` = 'pennsylvania'", + "amb_query": "SELECT \"rank\" FROM \"2-18204624-1\" WHERE \"year opened\" = '1959' AND state IN ('pennsylvania', 'state of pennsylvania', 'pennsylvania, usa')" + }, + { + "db_id": "2-14611466-1", + "question": "Which Tournament has a Location of virginia, and a Winner of tom watson (39)?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611466-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611466-1, columns = [`Date` (Example values: [jan 11, jan 18, jan 25]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, arizona, aloha state]), `Winner` (Example values: [phil mickelson (12), fred couples (13), jesper parnevik (1)]), `Score` (Example values: [271 (–17), 332 (–28), 269 (–15)]), `1st prize ( $ )` (Example values: [306,000, 414,000, 450,000])]\n", + "ori_query": "select `tournament` from `2-14611466-1` where `location` = 'virginia' and `winner` = 'tom watson (39)'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611466-1\" WHERE location IN ('virginia', 'state of virginia') AND \"winner\" = 'tom watson (39)'" + }, + { + "db_id": "2-14611466-1", + "question": "Which Tournament has a Location of nevada, and a Winner of tom watson (39)?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611466-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611466-1, columns = [`Date` (Example values: [jan 11, jan 18, jan 25]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, arizona, aloha state]), `Winner` (Example values: [phil mickelson (12), fred couples (13), jesper parnevik (1)]), `Score` (Example values: [271 (–17), 332 (–28), 269 (–15)]), `1st prize ( $ )` (Example values: [306,000, 414,000, 450,000])]\n", + "ori_query": "select `tournament` from `2-14611466-1` where `location` = 'nevada' and `winner` = 'tom watson (39)'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611466-1\" WHERE location IN ('nevada state', 'nevada') AND \"winner\" = 'tom watson (39)'" + }, + { + "db_id": "2-14611466-1", + "question": "Which Tournament has a Location of hawaii, and a Winner of tom watson (39)?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611466-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611466-1, columns = [`Date` (Example values: [jan 11, jan 18, jan 25]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, arizona, aloha state]), `Winner` (Example values: [phil mickelson (12), fred couples (13), jesper parnevik (1)]), `Score` (Example values: [271 (–17), 332 (–28), 269 (–15)]), `1st prize ( $ )` (Example values: [306,000, 414,000, 450,000])]\n", + "ori_query": "select `tournament` from `2-14611466-1` where `location` = 'hawaii' and `winner` = 'tom watson (39)'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611466-1\" WHERE location IN ('hawaii', 'aloha state') AND \"winner\" = 'tom watson (39)'" + }, + { + "db_id": "2-14611466-1", + "question": "Which Tournament has a Location of texas, and a Winner of tom watson (39)?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611466-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611466-1, columns = [`Date` (Example values: [jan 11, jan 18, jan 25]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, arizona, aloha state]), `Winner` (Example values: [phil mickelson (12), fred couples (13), jesper parnevik (1)]), `Score` (Example values: [271 (–17), 332 (–28), 269 (–15)]), `1st prize ( $ )` (Example values: [306,000, 414,000, 450,000])]\n", + "ori_query": "select `tournament` from `2-14611466-1` where `location` = 'texas' and `winner` = 'tom watson (39)'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611466-1\" WHERE location IN ('texas, united states', 'tx, usa', 'texas') AND \"winner\" = 'tom watson (39)'" + }, + { + "db_id": "1-1211545-2", + "question": "What is the toll for light vehicles at the plaza near parys?", + "evidence": "", + "schema_text_wo_content": "Table 1-1211545-2, columns = [Name, Location, Light vehicle, Heavy vehicle (2 axles), Heavy vehicle (3/4 axles), Heavy vehicle (5+ axles)]\n", + "schema_text_with_content": "Table 1-1211545-2, columns = [`Name` (Example values: [huguenot toll plaza, verkeerdevlei toll plaza, vaal toll plaza]), `Location` (Example values: [paarl, near verkeerdevlei, adjacent to parys]), `Light vehicle` (Example values: [r27.00, r39.00, r45.00]), `Heavy vehicle (2 axles)` (Example values: [r75.00, r78.00, r85.00]), `Heavy vehicle (3/4 axles)` (Example values: [r117.00, r103.00, r48.00]), `Heavy vehicle (5+ axles)` (Example values: [r190.00, r164.00, r137.00])]\n", + "ori_query": "select `light vehicle` from `1-1211545-2` where `location` = 'near parys'", + "amb_query": "SELECT \"light vehicle\" FROM \"1-1211545-2\" WHERE location IN ('near parys', 'adjacent to parys')" + }, + { + "db_id": "1-1211545-2", + "question": "What is the toll for light vehicles at the plaza between bela bela and modimolle?", + "evidence": "", + "schema_text_wo_content": "Table 1-1211545-2, columns = [Name, Location, Light vehicle, Heavy vehicle (2 axles), Heavy vehicle (3/4 axles), Heavy vehicle (5+ axles)]\n", + "schema_text_with_content": "Table 1-1211545-2, columns = [`Name` (Example values: [huguenot toll plaza, verkeerdevlei toll plaza, vaal toll plaza]), `Location` (Example values: [paarl, near verkeerdevlei, adjacent to parys]), `Light vehicle` (Example values: [r27.00, r39.00, r45.00]), `Heavy vehicle (2 axles)` (Example values: [r75.00, r78.00, r85.00]), `Heavy vehicle (3/4 axles)` (Example values: [r117.00, r103.00, r48.00]), `Heavy vehicle (5+ axles)` (Example values: [r190.00, r164.00, r137.00])]\n", + "ori_query": "select `light vehicle` from `1-1211545-2` where `location` = 'between bela bela and modimolle'", + "amb_query": "SELECT \"light vehicle\" FROM \"1-1211545-2\" WHERE location IN ('route from bela bela to modimolle', 'between bela bela and modimolle')" + }, + { + "db_id": "1-1281200-1", + "question": "From the round name of first round; what would the new entries this round that would be found?", + "evidence": "", + "schema_text_wo_content": "Table 1-1281200-1, columns = [Phase, Round, Clubs remaining, Clubs involved, Winners from previous round, New entries this round, Leagues entering at this round]\n", + "schema_text_with_content": "Table 1-1281200-1, columns = [`Phase` (Example values: [first phase, first stage, initial phase]), `Round` (Example values: [first stage, second round, third stage]), `Clubs remaining` (Example values: [78.0, 60.0, 40.0]), `Clubs involved` (Example values: [36.0, 40.0, 32.0]), `Winners from previous round` (Example values: [none, 18, 20]), `New entries this round` (Example values: [36, 22, 12]), `Leagues entering at this round` (Example values: [teams from lega pro and serie d, serie b, lowest-ranked serie a teams])]\n", + "ori_query": "select `new entries this round` from `1-1281200-1` where `round` = 'first round'", + "amb_query": "SELECT \"new entries this round\" FROM \"1-1281200-1\" WHERE round IN ('first round', 'first stage')" + }, + { + "db_id": "1-1281200-1", + "question": "From the round name of third round; what would the new entries this round that would be found?", + "evidence": "", + "schema_text_wo_content": "Table 1-1281200-1, columns = [Phase, Round, Clubs remaining, Clubs involved, Winners from previous round, New entries this round, Leagues entering at this round]\n", + "schema_text_with_content": "Table 1-1281200-1, columns = [`Phase` (Example values: [first phase, first stage, initial phase]), `Round` (Example values: [first stage, second round, third stage]), `Clubs remaining` (Example values: [78.0, 60.0, 40.0]), `Clubs involved` (Example values: [36.0, 40.0, 32.0]), `Winners from previous round` (Example values: [none, 18, 20]), `New entries this round` (Example values: [36, 22, 12]), `Leagues entering at this round` (Example values: [teams from lega pro and serie d, serie b, lowest-ranked serie a teams])]\n", + "ori_query": "select `new entries this round` from `1-1281200-1` where `round` = 'third round'", + "amb_query": "SELECT \"new entries this round\" FROM \"1-1281200-1\" WHERE round IN ('third stage', 'third round')" + }, + { + "db_id": "1-1281200-1", + "question": "During the first phase portion of phase and having 16 clubs involved; what would you find for the winners from previous round?", + "evidence": "", + "schema_text_wo_content": "Table 1-1281200-1, columns = [Phase, Round, Clubs remaining, Clubs involved, Winners from previous round, New entries this round, Leagues entering at this round]\n", + "schema_text_with_content": "Table 1-1281200-1, columns = [`Phase` (Example values: [first phase, first stage, initial phase]), `Round` (Example values: [first stage, second round, third stage]), `Clubs remaining` (Example values: [78.0, 60.0, 40.0]), `Clubs involved` (Example values: [36.0, 40.0, 32.0]), `Winners from previous round` (Example values: [none, 18, 20]), `New entries this round` (Example values: [36, 22, 12]), `Leagues entering at this round` (Example values: [teams from lega pro and serie d, serie b, lowest-ranked serie a teams])]\n", + "ori_query": "select `winners from previous round` from `1-1281200-1` where `phase` = 'first phase' and `clubs involved` = 16", + "amb_query": "SELECT \"winners from previous round\" FROM \"1-1281200-1\" WHERE phase IN ('first phase', 'initial phase', 'first stage') AND \"clubs involved\" = 16" + }, + { + "db_id": "1-1341453-15", + "question": "What was the result in illinois 12?", + "evidence": "", + "schema_text_wo_content": "Table 1-1341453-15, columns = [District, Incumbent, Party, First elected, Results, Candidates]\n", + "schema_text_with_content": "Table 1-1341453-15, columns = [`District` (Example values: [illinois 3, illinois 5, district of illinois 7]), `Incumbent` (Example values: [bill lipinski, rod blagojevich, danny k. davis]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1982.0, 1996.0, 1969.0]), `Results` (Example values: [re-elected, retired republican hold, retired to run for governor democratic hold]), `Candidates` (Example values: [bill lipinski (d) 72.5% robert marshall (r) 27.5%, rod blagojevich (d) 74% alan spitz (r) 26%, danny k. davis (d) 92.9% dorn van cleave (l) 7.1%])]\n", + "ori_query": "select `results` from `1-1341453-15` where `district` = 'illinois 12'", + "amb_query": "SELECT \"results\" FROM \"1-1341453-15\" WHERE district IN ('illinois 12', 'illinois 12 region')" + }, + { + "db_id": "1-1341453-15", + "question": "What was the result in illinois 16?", + "evidence": "", + "schema_text_wo_content": "Table 1-1341453-15, columns = [District, Incumbent, Party, First elected, Results, Candidates]\n", + "schema_text_with_content": "Table 1-1341453-15, columns = [`District` (Example values: [illinois 3, illinois 5, district of illinois 7]), `Incumbent` (Example values: [bill lipinski, rod blagojevich, danny k. davis]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1982.0, 1996.0, 1969.0]), `Results` (Example values: [re-elected, retired republican hold, retired to run for governor democratic hold]), `Candidates` (Example values: [bill lipinski (d) 72.5% robert marshall (r) 27.5%, rod blagojevich (d) 74% alan spitz (r) 26%, danny k. davis (d) 92.9% dorn van cleave (l) 7.1%])]\n", + "ori_query": "select `results` from `1-1341453-15` where `district` = 'illinois 16'", + "amb_query": "SELECT \"results\" FROM \"1-1341453-15\" WHERE district IN ('illinois 16', 'illinois 16 area')" + }, + { + "db_id": "1-1341453-15", + "question": "What was the result in Illinois 7?", + "evidence": "", + "schema_text_wo_content": "Table 1-1341453-15, columns = [District, Incumbent, Party, First elected, Results, Candidates]\n", + "schema_text_with_content": "Table 1-1341453-15, columns = [`District` (Example values: [illinois 3, illinois 5, district of illinois 7]), `Incumbent` (Example values: [bill lipinski, rod blagojevich, danny k. davis]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1982.0, 1996.0, 1969.0]), `Results` (Example values: [re-elected, retired republican hold, retired to run for governor democratic hold]), `Candidates` (Example values: [bill lipinski (d) 72.5% robert marshall (r) 27.5%, rod blagojevich (d) 74% alan spitz (r) 26%, danny k. davis (d) 92.9% dorn van cleave (l) 7.1%])]\n", + "ori_query": "select `results` from `1-1341453-15` where `district` = 'illinois 7'", + "amb_query": "SELECT \"results\" FROM \"1-1341453-15\" WHERE district IN ('district of illinois 7', 'illinois 7')" + }, + { + "db_id": "1-1341604-11", + "question": "Name the candidates for georgia 7", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-11, columns = [`District` (Example values: [georgia 1, georgia 2, georgia 3 area]), `Incumbent` (Example values: [ronald \"bo\" ginn, charles floyd hatcher, jack thomas brinkley]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1980.0, 1966.0]), `Result` (Example values: [retired to run for governor democratic hold, re-elected, retired democratic hold]), `Candidates` (Example values: [lindsay thomas (d) 64.1% herb jones (r) 35.9%, charles floyd hatcher (d) unopposed, richard ray (d) 71.0% tyron elliott (r) 29.0%])]\n", + "ori_query": "select `candidates` from `1-1341604-11` where `district` = 'georgia 7'", + "amb_query": "SELECT \"candidates\" FROM \"1-1341604-11\" WHERE district IN ('7th district of georgia', 'georgia 7')" + }, + { + "db_id": "1-1341604-11", + "question": "Name the party of georgia 3", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-11, columns = [`District` (Example values: [georgia 1, georgia 2, georgia 3 area]), `Incumbent` (Example values: [ronald \"bo\" ginn, charles floyd hatcher, jack thomas brinkley]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1980.0, 1966.0]), `Result` (Example values: [retired to run for governor democratic hold, re-elected, retired democratic hold]), `Candidates` (Example values: [lindsay thomas (d) 64.1% herb jones (r) 35.9%, charles floyd hatcher (d) unopposed, richard ray (d) 71.0% tyron elliott (r) 29.0%])]\n", + "ori_query": "select `party` from `1-1341604-11` where `district` = 'georgia 3'", + "amb_query": "SELECT \"party\" FROM \"1-1341604-11\" WHERE district IN ('georgia 3 area', 'georgia 3')" + }, + { + "db_id": "1-1341604-11", + "question": "Name the candidates for georgia 8", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-11, columns = [`District` (Example values: [georgia 1, georgia 2, georgia 3 area]), `Incumbent` (Example values: [ronald \"bo\" ginn, charles floyd hatcher, jack thomas brinkley]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1980.0, 1966.0]), `Result` (Example values: [retired to run for governor democratic hold, re-elected, retired democratic hold]), `Candidates` (Example values: [lindsay thomas (d) 64.1% herb jones (r) 35.9%, charles floyd hatcher (d) unopposed, richard ray (d) 71.0% tyron elliott (r) 29.0%])]\n", + "ori_query": "select `candidates` from `1-1341604-11` where `district` = 'georgia 8'", + "amb_query": "SELECT \"candidates\" FROM \"1-1341604-11\" WHERE district IN ('georgia 8', 'georgia 8 area')" + }, + { + "db_id": "1-1341604-11", + "question": "Name the party of georgia 4", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-11, columns = [`District` (Example values: [georgia 1, georgia 2, georgia 3 area]), `Incumbent` (Example values: [ronald \"bo\" ginn, charles floyd hatcher, jack thomas brinkley]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1980.0, 1966.0]), `Result` (Example values: [retired to run for governor democratic hold, re-elected, retired democratic hold]), `Candidates` (Example values: [lindsay thomas (d) 64.1% herb jones (r) 35.9%, charles floyd hatcher (d) unopposed, richard ray (d) 71.0% tyron elliott (r) 29.0%])]\n", + "ori_query": "select `party` from `1-1341604-11` where `district` = 'georgia 4'", + "amb_query": "SELECT \"party\" FROM \"1-1341604-11\" WHERE district IN ('georgia 4', 'georgia 4 area')" + }, + { + "db_id": "1-1341604-10", + "question": "what's the result with district being florida 18", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select `result` from `1-1341604-10` where `district` = 'florida 18'", + "amb_query": "SELECT \"result\" FROM \"1-1341604-10\" WHERE district IN ('district florida 18', 'florida 18')" + }, + { + "db_id": "1-1341604-10", + "question": "what's the first elected with district being florida 10", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select `first elected` from `1-1341604-10` where `district` = 'florida 10'", + "amb_query": "SELECT \"first elected\" FROM \"1-1341604-10\" WHERE district IN ('florida 10', 'district 10 of florida')" + }, + { + "db_id": "1-1341604-10", + "question": " how many result with district being florida 17", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select count(`result`) from `1-1341604-10` where `district` = 'florida 17'", + "amb_query": "SELECT COUNT(\"result\") FROM \"1-1341604-10\" WHERE district IN ('florida 17', 'florida 17 region')" + }, + { + "db_id": "1-1341604-10", + "question": "what's the result with district being florida 7", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select `result` from `1-1341604-10` where `district` = 'florida 7'", + "amb_query": "SELECT \"result\" FROM \"1-1341604-10\" WHERE district IN ('florida 7', 'florida 7 area')" + }, + { + "db_id": "1-1341604-10", + "question": "what's the first elected with district being florida 7", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select `first elected` from `1-1341604-10` where `district` = 'florida 7'", + "amb_query": "SELECT \"first elected\" FROM \"1-1341604-10\" WHERE district IN ('florida 7', 'florida 7 area')" + }, + { + "db_id": "1-1341604-10", + "question": " how many result with district being florida 14", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select count(`result`) from `1-1341604-10` where `district` = 'florida 14'", + "amb_query": "SELECT COUNT(\"result\") FROM \"1-1341604-10\" WHERE district IN ('florida 14', 'florida 14 zone')" + }, + { + "db_id": "1-1341604-10", + "question": "what's the district with result being new seat democratic gain", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select `district` from `1-1341604-10` where `result` = 'new seat democratic gain'", + "amb_query": "SELECT \"district\" FROM \"1-1341604-10\" WHERE result IN ('new seat dem gain', 'new seat democratic gain')" + }, + { + "db_id": "1-1341604-10", + "question": " how many candidates with result being new seat democratic gain", + "evidence": "", + "schema_text_wo_content": "Table 1-1341604-10, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341604-10, columns = [`District` (Example values: [florida 2, florida 5, florida 6]), `Incumbent` (Example values: [don fuqua, bill mccollum, none (district created)]), `Party` (Example values: [democratic, republican, none (district created)]), `First elected` (Example values: [1962, 1980, none (district created)]), `Result` (Example values: [re-elected, new seat dem gain, new seat republican gain]), `Candidates` (Example values: [don fuqua (d) 61.7% ron mcneil (r) 38.3%, bill mccollum (r) 58.8% dick batchelor (d) 41.2%, buddy mackay (d) 61.4% ed havill (r) 38.6%])]\n", + "ori_query": "select count(`candidates`) from `1-1341604-10` where `result` = 'new seat democratic gain'", + "amb_query": "SELECT COUNT(\"candidates\") FROM \"1-1341604-10\" WHERE result IN ('new seat dem gain', 'new seat democratic gain')" + }, + { + "db_id": "1-1341640-11", + "question": "What is the earliest first elected for district georgia 8?", + "evidence": "", + "schema_text_wo_content": "Table 1-1341640-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341640-11, columns = [`District` (Example values: [georgia district 1, georgia 3, georgia 5]), `Incumbent` (Example values: [ronald \"bo\" ginn, jack thomas brinkley, wyche fowler]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1966.0, 1977.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ronald \"bo\" ginn (d) unopposed, jack thomas brinkley (d) unopposed, wyche fowler (d) 74.0% f. william dowda (r) 26.0%])]\n", + "ori_query": "select min(`first elected`) from `1-1341640-11` where `district` = 'georgia 8'", + "amb_query": "SELECT MIN(\"first elected\") FROM \"1-1341640-11\" WHERE district IN ('georgia 8', 'district 8 of georgia')" + }, + { + "db_id": "1-1341640-11", + "question": "What is the earliest first elected for district georgia 1?", + "evidence": "", + "schema_text_wo_content": "Table 1-1341640-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341640-11, columns = [`District` (Example values: [georgia district 1, georgia 3, georgia 5]), `Incumbent` (Example values: [ronald \"bo\" ginn, jack thomas brinkley, wyche fowler]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1966.0, 1977.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ronald \"bo\" ginn (d) unopposed, jack thomas brinkley (d) unopposed, wyche fowler (d) 74.0% f. william dowda (r) 26.0%])]\n", + "ori_query": "select min(`first elected`) from `1-1341640-11` where `district` = 'georgia 1'", + "amb_query": "SELECT MIN(\"first elected\") FROM \"1-1341640-11\" WHERE district IN ('georgia 1', 'georgia district 1')" + }, + { + "db_id": "1-1341640-11", + "question": "How many incumbents were for district georgia 6?", + "evidence": "", + "schema_text_wo_content": "Table 1-1341640-11, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341640-11, columns = [`District` (Example values: [georgia district 1, georgia 3, georgia 5]), `Incumbent` (Example values: [ronald \"bo\" ginn, jack thomas brinkley, wyche fowler]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1972.0, 1966.0, 1977.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ronald \"bo\" ginn (d) unopposed, jack thomas brinkley (d) unopposed, wyche fowler (d) 74.0% f. william dowda (r) 26.0%])]\n", + "ori_query": "select count(`incumbent`) from `1-1341640-11` where `district` = 'georgia 6'", + "amb_query": "SELECT COUNT(\"incumbent\") FROM \"1-1341640-11\" WHERE district IN ('georgia 6', 'georgia 6th district')" + }, + { + "db_id": "1-1341672-14", + "question": "Name the candidates for illinois 18", + "evidence": "", + "schema_text_wo_content": "Table 1-1341672-14, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341672-14, columns = [`District` (Example values: [illinois 2, illinois 4, illinois 5]), `Incumbent` (Example values: [morgan f. murphy, ed derwinski, john g. fary]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1970.0, 1958.0, 1975.0]), `Result` (Example values: [re-elected, lost re-election republican gain]), `Candidates` (Example values: [morgan f. murphy (d) 84.7% spencer leak (r) 15.3%, ed derwinski (r) 65.8% ronald a. rodger (d) 34.2%, john g. fary (d) 76.9% vincent krok (r) 23.1%])]\n", + "ori_query": "select `candidates` from `1-1341672-14` where `district` = 'illinois 18'", + "amb_query": "SELECT \"candidates\" FROM \"1-1341672-14\" WHERE district IN ('illinois 18th district', 'illinois 18')" + }, + { + "db_id": "1-1341672-14", + "question": "Name the candidates for illinois 10", + "evidence": "", + "schema_text_wo_content": "Table 1-1341672-14, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341672-14, columns = [`District` (Example values: [illinois 2, illinois 4, illinois 5]), `Incumbent` (Example values: [morgan f. murphy, ed derwinski, john g. fary]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1970.0, 1958.0, 1975.0]), `Result` (Example values: [re-elected, lost re-election republican gain]), `Candidates` (Example values: [morgan f. murphy (d) 84.7% spencer leak (r) 15.3%, ed derwinski (r) 65.8% ronald a. rodger (d) 34.2%, john g. fary (d) 76.9% vincent krok (r) 23.1%])]\n", + "ori_query": "select `candidates` from `1-1341672-14` where `district` = 'illinois 10'", + "amb_query": "SELECT \"candidates\" FROM \"1-1341672-14\" WHERE district IN ('illinois 10', 'illinois 10, usa')" + }, + { + "db_id": "1-1341672-14", + "question": "Name the candidates for illinois 15", + "evidence": "", + "schema_text_wo_content": "Table 1-1341672-14, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1341672-14, columns = [`District` (Example values: [illinois 2, illinois 4, illinois 5]), `Incumbent` (Example values: [morgan f. murphy, ed derwinski, john g. fary]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [1970.0, 1958.0, 1975.0]), `Result` (Example values: [re-elected, lost re-election republican gain]), `Candidates` (Example values: [morgan f. murphy (d) 84.7% spencer leak (r) 15.3%, ed derwinski (r) 65.8% ronald a. rodger (d) 34.2%, john g. fary (d) 76.9% vincent krok (r) 23.1%])]\n", + "ori_query": "select `candidates` from `1-1341672-14` where `district` = 'illinois 15'", + "amb_query": "SELECT \"candidates\" FROM \"1-1341672-14\" WHERE district IN ('district of illinois 15', 'illinois 15')" + }, + { + "db_id": "1-1342359-5", + "question": " how many candidates with district being california 2", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-5, columns = [`District` (Example values: [california 1, district of california 2, california 4]), `Incumbent` (Example values: [clarence f. lea, harry lane englebright, florence prag kahn]), `Party` (Example values: [democratic affiliation, republican]), `First elected` (Example values: [1916.0, 1926.0, 1925.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [clarence f. lea (d) unopposed, harry lane englebright (r) unopposed, florence prag kahn (r) unopposed])]\n", + "ori_query": "select count(`candidates`) from `1-1342359-5` where `district` = 'california 2'", + "amb_query": "SELECT COUNT(\"candidates\") FROM \"1-1342359-5\" WHERE district IN ('california 2', 'district of california 2')" + }, + { + "db_id": "1-1342359-5", + "question": " how many candidates with district being california 7", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-5, columns = [`District` (Example values: [california 1, district of california 2, california 4]), `Incumbent` (Example values: [clarence f. lea, harry lane englebright, florence prag kahn]), `Party` (Example values: [democratic affiliation, republican]), `First elected` (Example values: [1916.0, 1926.0, 1925.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [clarence f. lea (d) unopposed, harry lane englebright (r) unopposed, florence prag kahn (r) unopposed])]\n", + "ori_query": "select count(`candidates`) from `1-1342359-5` where `district` = 'california 7'", + "amb_query": "SELECT COUNT(\"candidates\") FROM \"1-1342359-5\" WHERE district IN ('california 7 region', 'california 7')" + }, + { + "db_id": "1-1342359-5", + "question": "what's the districtwith party being democratic", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-5, columns = [`District` (Example values: [california 1, district of california 2, california 4]), `Incumbent` (Example values: [clarence f. lea, harry lane englebright, florence prag kahn]), `Party` (Example values: [democratic affiliation, republican]), `First elected` (Example values: [1916.0, 1926.0, 1925.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [clarence f. lea (d) unopposed, harry lane englebright (r) unopposed, florence prag kahn (r) unopposed])]\n", + "ori_query": "select `district` from `1-1342359-5` where `party` = 'democratic'", + "amb_query": "SELECT \"district\" FROM \"1-1342359-5\" WHERE party IN ('democratic affiliation', 'democratic')" + }, + { + "db_id": "1-1342233-24", + "question": "What candidates are from mississippi 1?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342233-24, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342233-24, columns = [`District` (Example values: [mississippi district 1, mississippi 2, mississippi 3]), `Incumbent` (Example values: [john e. rankin, jamie l. whitten, william madison whittington]), `Party` (Example values: [democratic]), `First elected` (Example values: [1920.0, 1941.0, 1924.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [john e. rankin (d) unopposed, jamie l. whitten (d) unopposed, william madison whittington (d) unopposed])]\n", + "ori_query": "select `candidates` from `1-1342233-24` where `district` = 'mississippi 1'", + "amb_query": "SELECT \"candidates\" FROM \"1-1342233-24\" WHERE district IN ('mississippi district 1', 'mississippi 1')" + }, + { + "db_id": "1-1342233-24", + "question": "What candidates are from mississippi 6?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342233-24, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342233-24, columns = [`District` (Example values: [mississippi district 1, mississippi 2, mississippi 3]), `Incumbent` (Example values: [john e. rankin, jamie l. whitten, william madison whittington]), `Party` (Example values: [democratic]), `First elected` (Example values: [1920.0, 1941.0, 1924.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [john e. rankin (d) unopposed, jamie l. whitten (d) unopposed, william madison whittington (d) unopposed])]\n", + "ori_query": "select `candidates` from `1-1342233-24` where `district` = 'mississippi 6'", + "amb_query": "SELECT \"candidates\" FROM \"1-1342233-24\" WHERE district IN ('mississippi 6', 'mississippi district 6')" + }, + { + "db_id": "1-1342233-5", + "question": "How many were first elected in the arkansas 1 district?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342233-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342233-5, columns = [`District` (Example values: [1st district of arkansas, arkansas 2, arkansas district 3]), `Incumbent` (Example values: [ezekiel c. gathings, wilbur mills, james william trimble]), `Party` (Example values: [democratic]), `First elected` (Example values: [1938.0, 1944.0, 1939.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ezekiel c. gathings (d) unopposed, wilbur mills (d) unopposed, james william trimble (d) unopposed])]\n", + "ori_query": "select count(`first elected`) from `1-1342233-5` where `district` = 'arkansas 1'", + "amb_query": "SELECT COUNT(\"first elected\") FROM \"1-1342233-5\" WHERE district IN ('1st district of arkansas', 'arkansas 1')" + }, + { + "db_id": "1-1342233-5", + "question": "How many were first elected in the Arkansas 4 district?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342233-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342233-5, columns = [`District` (Example values: [1st district of arkansas, arkansas 2, arkansas district 3]), `Incumbent` (Example values: [ezekiel c. gathings, wilbur mills, james william trimble]), `Party` (Example values: [democratic]), `First elected` (Example values: [1938.0, 1944.0, 1939.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ezekiel c. gathings (d) unopposed, wilbur mills (d) unopposed, james william trimble (d) unopposed])]\n", + "ori_query": "select count(`first elected`) from `1-1342233-5` where `district` = 'arkansas 4'", + "amb_query": "SELECT COUNT(\"first elected\") FROM \"1-1342233-5\" WHERE district IN ('arkansas 4', '4th district of arkansas')" + }, + { + "db_id": "1-1342233-5", + "question": "How many incumbents had a district of Arkansas 3?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342233-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342233-5, columns = [`District` (Example values: [1st district of arkansas, arkansas 2, arkansas district 3]), `Incumbent` (Example values: [ezekiel c. gathings, wilbur mills, james william trimble]), `Party` (Example values: [democratic]), `First elected` (Example values: [1938.0, 1944.0, 1939.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ezekiel c. gathings (d) unopposed, wilbur mills (d) unopposed, james william trimble (d) unopposed])]\n", + "ori_query": "select count(`incumbent`) from `1-1342233-5` where `district` = 'arkansas 3'", + "amb_query": "SELECT COUNT(\"incumbent\") FROM \"1-1342233-5\" WHERE district IN ('arkansas district 3', 'arkansas 3')" + }, + { + "db_id": "1-1342249-5", + "question": "What party did the incumbent from the arkansas 4 district belong to? ", + "evidence": "", + "schema_text_wo_content": "Table 1-1342249-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342249-5, columns = [`District` (Example values: [arkansas 1, arkansas 2, 4th district, arkansas]), `Incumbent` (Example values: [ezekiel c. gathings, wilbur mills, william fadjo cravens]), `Party` (Example values: [democratic]), `First elected` (Example values: [1938.0, 1943.0, 1942.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ezekiel c. gathings (d) unopposed, wilbur mills (d) unopposed, william fadjo cravens (d) unopposed])]\n", + "ori_query": "select `party` from `1-1342249-5` where `district` = 'arkansas 4'", + "amb_query": "SELECT \"party\" FROM \"1-1342249-5\" WHERE district IN ('4th district, arkansas', 'arkansas 4')" + }, + { + "db_id": "1-1342249-5", + "question": "What party did the incumbent from the Arkansas 5 district belong to? ", + "evidence": "", + "schema_text_wo_content": "Table 1-1342249-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342249-5, columns = [`District` (Example values: [arkansas 1, arkansas 2, 4th district, arkansas]), `Incumbent` (Example values: [ezekiel c. gathings, wilbur mills, william fadjo cravens]), `Party` (Example values: [democratic]), `First elected` (Example values: [1938.0, 1943.0, 1942.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ezekiel c. gathings (d) unopposed, wilbur mills (d) unopposed, william fadjo cravens (d) unopposed])]\n", + "ori_query": "select `party` from `1-1342249-5` where `district` = 'arkansas 5'", + "amb_query": "SELECT \"party\" FROM \"1-1342249-5\" WHERE district IN ('district 5 of arkansas', 'arkansas 5')" + }, + { + "db_id": "1-1342249-5", + "question": "What party did the incumbent of the Arkansas 6 district belong to? ", + "evidence": "", + "schema_text_wo_content": "Table 1-1342249-5, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342249-5, columns = [`District` (Example values: [arkansas 1, arkansas 2, 4th district, arkansas]), `Incumbent` (Example values: [ezekiel c. gathings, wilbur mills, william fadjo cravens]), `Party` (Example values: [democratic]), `First elected` (Example values: [1938.0, 1943.0, 1942.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [ezekiel c. gathings (d) unopposed, wilbur mills (d) unopposed, william fadjo cravens (d) unopposed])]\n", + "ori_query": "select `party` from `1-1342249-5` where `district` = 'arkansas 6'", + "amb_query": "SELECT \"party\" FROM \"1-1342249-5\" WHERE district IN ('arkansas 6', 'arkansas district 6')" + }, + { + "db_id": "1-1342338-3", + "question": "What kind of party is the district in alabama 4?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342338-3, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342338-3, columns = [`District` (Example values: [district of alabama 1, alabama 3, alabama 4 district]), `Incumbent` (Example values: [john mcduffie, henry b. steagall, lamar jeffers]), `Party` (Example values: [democratic]), `First elected` (Example values: [1918.0, 1914.0, 1921.0]), `Result` (Example values: [re-elected, lost renomination outcome]), `Candidates` (Example values: [john mcduffie (d) unopposed, henry b. steagall (d) unopposed, lamar jeffers (d) 83.9% hogan d. stewart (r) 16.1%])]\n", + "ori_query": "select `party` from `1-1342338-3` where `district` = 'alabama 4'", + "amb_query": "SELECT \"party\" FROM \"1-1342338-3\" WHERE district IN ('alabama 4', 'alabama 4 district')" + }, + { + "db_id": "1-1342338-3", + "question": "What kind of party is the district in Alabama 1?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342338-3, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342338-3, columns = [`District` (Example values: [district of alabama 1, alabama 3, alabama 4 district]), `Incumbent` (Example values: [john mcduffie, henry b. steagall, lamar jeffers]), `Party` (Example values: [democratic]), `First elected` (Example values: [1918.0, 1914.0, 1921.0]), `Result` (Example values: [re-elected, lost renomination outcome]), `Candidates` (Example values: [john mcduffie (d) unopposed, henry b. steagall (d) unopposed, lamar jeffers (d) 83.9% hogan d. stewart (r) 16.1%])]\n", + "ori_query": "select `party` from `1-1342338-3` where `district` = 'alabama 1'", + "amb_query": "SELECT \"party\" FROM \"1-1342338-3\" WHERE district IN ('district of alabama 1', 'alabama 1')" + }, + { + "db_id": "1-1342338-3", + "question": "How many in lost renomination results were elected first?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342338-3, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342338-3, columns = [`District` (Example values: [district of alabama 1, alabama 3, alabama 4 district]), `Incumbent` (Example values: [john mcduffie, henry b. steagall, lamar jeffers]), `Party` (Example values: [democratic]), `First elected` (Example values: [1918.0, 1914.0, 1921.0]), `Result` (Example values: [re-elected, lost renomination outcome]), `Candidates` (Example values: [john mcduffie (d) unopposed, henry b. steagall (d) unopposed, lamar jeffers (d) 83.9% hogan d. stewart (r) 16.1%])]\n", + "ori_query": "select `first elected` from `1-1342338-3` where `result` = 'lost renomination'", + "amb_query": "SELECT \"first elected\" FROM \"1-1342338-3\" WHERE result IN ('lost renomination', 'lost renomination outcome')" + }, + { + "db_id": "1-1342338-3", + "question": "How many in total were elected first in lost renomination?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342338-3, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342338-3, columns = [`District` (Example values: [district of alabama 1, alabama 3, alabama 4 district]), `Incumbent` (Example values: [john mcduffie, henry b. steagall, lamar jeffers]), `Party` (Example values: [democratic]), `First elected` (Example values: [1918.0, 1914.0, 1921.0]), `Result` (Example values: [re-elected, lost renomination outcome]), `Candidates` (Example values: [john mcduffie (d) unopposed, henry b. steagall (d) unopposed, lamar jeffers (d) 83.9% hogan d. stewart (r) 16.1%])]\n", + "ori_query": "select count(`first elected`) from `1-1342338-3` where `result` = 'lost renomination'", + "amb_query": "SELECT COUNT(\"first elected\") FROM \"1-1342338-3\" WHERE result IN ('lost renomination', 'lost renomination outcome')" + }, + { + "db_id": "1-1342359-39", + "question": "Name the candidate for south carolina 6?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-39, columns = [`District` (Example values: [south carolina 1 area, south carolina 2, south carolina 3 area]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select `candidates` from `1-1342359-39` where `district` = 'south carolina 6'", + "amb_query": "SELECT \"candidates\" FROM \"1-1342359-39\" WHERE district IN ('sc district 6', 'south carolina 6')" + }, + { + "db_id": "1-1342359-39", + "question": "Name the candidate for south carolina 1?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-39, columns = [`District` (Example values: [south carolina 1 area, south carolina 2, south carolina 3 area]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select `candidates` from `1-1342359-39` where `district` = 'south carolina 1'", + "amb_query": "SELECT \"candidates\" FROM \"1-1342359-39\" WHERE district IN ('south carolina 1', 'south carolina 1 area')" + }, + { + "db_id": "1-1342359-39", + "question": "What is the party for south carolina 3?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-39, columns = [`District` (Example values: [south carolina 1 area, south carolina 2, south carolina 3 area]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select `party` from `1-1342359-39` where `district` = 'south carolina 3'", + "amb_query": "SELECT \"party\" FROM \"1-1342359-39\" WHERE district IN ('south carolina 3 area', 'south carolina 3')" + }, + { + "db_id": "1-1342359-39", + "question": "What is the result for south carolina 4?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342359-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342359-39, columns = [`District` (Example values: [south carolina 1 area, south carolina 2, south carolina 3 area]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select `result` from `1-1342359-39` where `district` = 'south carolina 4'", + "amb_query": "SELECT \"result\" FROM \"1-1342359-39\" WHERE district IN ('south carolina 4 district', 'south carolina 4')" + }, + { + "db_id": "1-1342370-39", + "question": "what is the total number of results where the district is south carolina 4?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342370-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342370-39, columns = [`District` (Example values: [south carolina 1, south carolina 2 district, south carolina 3]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select count(`result`) from `1-1342370-39` where `district` = 'south carolina 4'", + "amb_query": "SELECT COUNT(\"result\") FROM \"1-1342370-39\" WHERE district IN ('sc 4', 'south carolina 4')" + }, + { + "db_id": "1-1342370-39", + "question": "what is the total number of results where the district is south carolina 5?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342370-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342370-39, columns = [`District` (Example values: [south carolina 1, south carolina 2 district, south carolina 3]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select count(`result`) from `1-1342370-39` where `district` = 'south carolina 5'", + "amb_query": "SELECT COUNT(\"result\") FROM \"1-1342370-39\" WHERE district IN ('south carolina district 5', 'south carolina 5')" + }, + { + "db_id": "1-1342370-39", + "question": "who is the candidate in district south carolina 2?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342370-39, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342370-39, columns = [`District` (Example values: [south carolina 1, south carolina 2 district, south carolina 3]), `Incumbent` (Example values: [thomas s. mcmillan, butler b. hare, frederick h. dominick]), `Party` (Example values: [democratic]), `First elected` (Example values: [1924.0, 1916.0, 1920.0]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [thomas s. mcmillan (d) unopposed, butler b. hare (d) unopposed, frederick h. dominick (d) unopposed])]\n", + "ori_query": "select `candidates` from `1-1342370-39` where `district` = 'south carolina 2'", + "amb_query": "SELECT \"candidates\" FROM \"1-1342370-39\" WHERE district IN ('south carolina 2', 'south carolina 2 district')" + }, + { + "db_id": "1-13618584-2", + "question": "How many election results are there from the 35th district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select count(`2007 result`) from `1-13618584-2` where `district` = '35th'", + "amb_query": "SELECT COUNT(\"2007 result\") FROM \"1-13618584-2\" WHERE district IN ('35th congressional district', '35th')" + }, + { + "db_id": "1-13618584-2", + "question": "How many election results are there from the 54th district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select count(`2007 result`) from `1-13618584-2` where `district` = '54th'", + "amb_query": "SELECT COUNT(\"2007 result\") FROM \"1-13618584-2\" WHERE district IN ('54th congressional district', '54th')" + }, + { + "db_id": "1-13618584-2", + "question": "How many election results are there from the 26th district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select count(`2007 result`) from `1-13618584-2` where `district` = '26th'", + "amb_query": "SELECT COUNT(\"2007 result\") FROM \"1-13618584-2\" WHERE district IN ('26th', '26th electoral district')" + }, + { + "db_id": "1-13618584-2", + "question": "What was the last year someone was elected to the 1st district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select max(`elected`) from `1-13618584-2` where `district` = '1st'", + "amb_query": "SELECT MAX(\"elected\") FROM \"1-13618584-2\" WHERE district IN ('1st', 'district 1')" + }, + { + "db_id": "1-13618584-2", + "question": "What was the last year someone was elected to the 87th district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select max(`elected`) from `1-13618584-2` where `district` = '87th'", + "amb_query": "SELECT MAX(\"elected\") FROM \"1-13618584-2\" WHERE district IN ('87th', '87th electoral district')" + }, + { + "db_id": "1-13618584-2", + "question": "How many election results are there from the 19th district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select count(`2007 result`) from `1-13618584-2` where `district` = '19th'", + "amb_query": "SELECT COUNT(\"2007 result\") FROM \"1-13618584-2\" WHERE district IN ('19th congressional district', '19th')" + }, + { + "db_id": "1-13618584-2", + "question": "What was the last year someone was elected to the 14th district?", + "evidence": "", + "schema_text_wo_content": "Table 1-13618584-2, columns = [District, Incumbent, Party, Elected, Status, 2007 Result]\n", + "schema_text_with_content": "Table 1-13618584-2, columns = [`District` (Example values: [district 1, 7th, 11th]), `Incumbent` (Example values: [terry kilgore, dave nutter, onzlee ware]), `Party` (Example values: [republican, democratic, independent]), `Elected` (Example values: [1993.0, 2001.0, 2003.0]), `Status` (Example values: [reelected, elected to state senate, defeated]), `2007 Result` (Example values: [terry kilgore (r) 72.3% jerry taylor (d) 27.6%, dave nutter (r) 52.7% peggy frank (d) 47.3%, onzlee ware (d) 62.1% mac mccadden (i) 37.3%])]\n", + "ori_query": "select max(`elected`) from `1-13618584-2` where `district` = '14th'", + "amb_query": "SELECT MAX(\"elected\") FROM \"1-13618584-2\" WHERE district IN ('14th', '14th congressional district')" + }, + { + "db_id": "1-22962745-12", + "question": "Name the mat for win % for 56.25 for league finish being 1st", + "evidence": "", + "schema_text_wo_content": "Table 1-22962745-12, columns = [Season, Winner, Captain, Coach, League finish, Mat, W, L, Win %, Runner-up]\n", + "schema_text_with_content": "Table 1-22962745-12, columns = [`Season` (Example values: [2008.0, 2009.0, 2010.0]), `Winner` (Example values: [rajasthan royals, deccan chargers, chennai super kings]), `Captain` (Example values: [shane warne, adam gilchrist, m s dhoni]), `Coach` (Example values: [shane warne, darren lehmann, stephen fleming]), `League finish` (Example values: [first district, 4th rank, 3rd]), `Mat` (Example values: [16.0, 18.0]), `W` (Example values: [13.0, 9.0, 11.0]), `L` (Example values: [3.0, 7.0, 5.0]), `Win %` (Example values: [81.25, 56.25, 68.75]), `Runner-up` (Example values: [chennai super kings, royal challengers bangalore, mumbai indians])]\n", + "ori_query": "select `mat` from `1-22962745-12` where `win %` = '56.25' and `league finish` = '1st'", + "amb_query": "SELECT \"mat\" FROM \"1-22962745-12\" WHERE \"win %\" = '56.25' AND league finish IN ('first district', '1st')" + }, + { + "db_id": "1-22962745-12", + "question": "Name the mat for win % for 56.25 for league finish being 4th", + "evidence": "", + "schema_text_wo_content": "Table 1-22962745-12, columns = [Season, Winner, Captain, Coach, League finish, Mat, W, L, Win %, Runner-up]\n", + "schema_text_with_content": "Table 1-22962745-12, columns = [`Season` (Example values: [2008.0, 2009.0, 2010.0]), `Winner` (Example values: [rajasthan royals, deccan chargers, chennai super kings]), `Captain` (Example values: [shane warne, adam gilchrist, m s dhoni]), `Coach` (Example values: [shane warne, darren lehmann, stephen fleming]), `League finish` (Example values: [first district, 4th rank, 3rd]), `Mat` (Example values: [16.0, 18.0]), `W` (Example values: [13.0, 9.0, 11.0]), `L` (Example values: [3.0, 7.0, 5.0]), `Win %` (Example values: [81.25, 56.25, 68.75]), `Runner-up` (Example values: [chennai super kings, royal challengers bangalore, mumbai indians])]\n", + "ori_query": "select `mat` from `1-22962745-12` where `win %` = '56.25' and `league finish` = '4th'", + "amb_query": "SELECT \"mat\" FROM \"1-22962745-12\" WHERE \"win %\" = '56.25' AND league finish IN ('4th rank', '4th')" + }, + { + "db_id": "1-13619135-7", + "question": "What day was the attendance at the air canada centre 19,800?", + "evidence": "", + "schema_text_wo_content": "Table 1-13619135-7, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-13619135-7, columns = [`Game` (Example values: [56.0, 57.0, 58.0]), `Date` (Example values: [march 1, march 3, march 5]), `Team` (Example values: [@ boston, boston, @ vancouver]), `Score` (Example values: [w 96–94 (ot), w 114–104 (ot), w 94–92 (ot)]), `High points` (Example values: [vince carter (28), vince carter (30), vince carter (35)]), `High rebounds` (Example values: [tracy mcgrady (11), vince carter (7), tracy mcgrady (10)]), `High assists` (Example values: [tracy mcgrady (6), vince carter (7), muggsy bogues (7)]), `Location Attendance` (Example values: [fleetcenter 17,198, acc 19,437, general motors place 19,193]), `Record` (Example values: [31-25, 32-25, 33-25])]\n", + "ori_query": "select `date` from `1-13619135-7` where `location attendance` = 'air canada centre 19,800'", + "amb_query": "SELECT \"date\" FROM \"1-13619135-7\" WHERE location attendance IN ('air canada centre, canada', 'air canada centre 19,800')" + }, + { + "db_id": "1-13619135-7", + "question": "What day was the attendance at the air canada centre 19,437?", + "evidence": "", + "schema_text_wo_content": "Table 1-13619135-7, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-13619135-7, columns = [`Game` (Example values: [56.0, 57.0, 58.0]), `Date` (Example values: [march 1, march 3, march 5]), `Team` (Example values: [@ boston, boston, @ vancouver]), `Score` (Example values: [w 96–94 (ot), w 114–104 (ot), w 94–92 (ot)]), `High points` (Example values: [vince carter (28), vince carter (30), vince carter (35)]), `High rebounds` (Example values: [tracy mcgrady (11), vince carter (7), tracy mcgrady (10)]), `High assists` (Example values: [tracy mcgrady (6), vince carter (7), muggsy bogues (7)]), `Location Attendance` (Example values: [fleetcenter 17,198, acc 19,437, general motors place 19,193]), `Record` (Example values: [31-25, 32-25, 33-25])]\n", + "ori_query": "select `date` from `1-13619135-7` where `location attendance` = 'air canada centre 19,437'", + "amb_query": "SELECT \"date\" FROM \"1-13619135-7\" WHERE location attendance IN ('acc 19,437', 'air canada centre 19,437')" + }, + { + "db_id": "1-13619135-7", + "question": "What day was the attendance at the staples center 18,176?", + "evidence": "", + "schema_text_wo_content": "Table 1-13619135-7, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-13619135-7, columns = [`Game` (Example values: [56.0, 57.0, 58.0]), `Date` (Example values: [march 1, march 3, march 5]), `Team` (Example values: [@ boston, boston, @ vancouver]), `Score` (Example values: [w 96–94 (ot), w 114–104 (ot), w 94–92 (ot)]), `High points` (Example values: [vince carter (28), vince carter (30), vince carter (35)]), `High rebounds` (Example values: [tracy mcgrady (11), vince carter (7), tracy mcgrady (10)]), `High assists` (Example values: [tracy mcgrady (6), vince carter (7), muggsy bogues (7)]), `Location Attendance` (Example values: [fleetcenter 17,198, acc 19,437, general motors place 19,193]), `Record` (Example values: [31-25, 32-25, 33-25])]\n", + "ori_query": "select `date` from `1-13619135-7` where `location attendance` = 'staples center 18,176'", + "amb_query": "SELECT \"date\" FROM \"1-13619135-7\" WHERE location attendance IN ('staples center 18,176', 'staples center, california')" + }, + { + "db_id": "1-13677808-1", + "question": "How many times is netherlands ranked in technology?", + "evidence": "", + "schema_text_wo_content": "Table 1-13677808-1, columns = [Country, Rank, Aid, Trade, Investment, Migration, Environment, Security, Technology, Overall (Average)]\n", + "schema_text_with_content": "Table 1-13677808-1, columns = [`Country` (Example values: [1.0, 2.0, 3.0]), `Rank` (Example values: [danish, norway, sweden]), `Aid` (Example values: [11.5, 13.0, 12.6]), `Trade` (Example values: [5.3, 1.1, 5.8]), `Investment` (Example values: [4.7, 6.1, 5.3]), `Migration` (Example values: [6.2, 9.9, 7.8]), `Environment` (Example values: [6.8, 3.2, 7.3]), `Security` (Example values: [7.7, 7.6, 1.2]), `Technology` (Example values: [6.6, 5.7, 4.7]), `Overall (Average)` (Example values: [7.0, 6.6, 6.4])]\n", + "ori_query": "select count(`technology`) from `1-13677808-1` where `rank` = 'netherlands'", + "amb_query": "SELECT COUNT(\"technology\") FROM \"1-13677808-1\" WHERE rank IN ('netherlands', 'netherlands country')" + }, + { + "db_id": "1-13677808-1", + "question": "How many times is italy ranked in technology?", + "evidence": "", + "schema_text_wo_content": "Table 1-13677808-1, columns = [Country, Rank, Aid, Trade, Investment, Migration, Environment, Security, Technology, Overall (Average)]\n", + "schema_text_with_content": "Table 1-13677808-1, columns = [`Country` (Example values: [1.0, 2.0, 3.0]), `Rank` (Example values: [danish, norway, sweden]), `Aid` (Example values: [11.5, 13.0, 12.6]), `Trade` (Example values: [5.3, 1.1, 5.8]), `Investment` (Example values: [4.7, 6.1, 5.3]), `Migration` (Example values: [6.2, 9.9, 7.8]), `Environment` (Example values: [6.8, 3.2, 7.3]), `Security` (Example values: [7.7, 7.6, 1.2]), `Technology` (Example values: [6.6, 5.7, 4.7]), `Overall (Average)` (Example values: [7.0, 6.6, 6.4])]\n", + "ori_query": "select count(`technology`) from `1-13677808-1` where `rank` = 'italy'", + "amb_query": "SELECT COUNT(\"technology\") FROM \"1-13677808-1\" WHERE rank IN ('italy', 'italy in southern europe')" + }, + { + "db_id": "1-13677808-1", + "question": "How many times is canada ranked in technology?", + "evidence": "", + "schema_text_wo_content": "Table 1-13677808-1, columns = [Country, Rank, Aid, Trade, Investment, Migration, Environment, Security, Technology, Overall (Average)]\n", + "schema_text_with_content": "Table 1-13677808-1, columns = [`Country` (Example values: [1.0, 2.0, 3.0]), `Rank` (Example values: [danish, norway, sweden]), `Aid` (Example values: [11.5, 13.0, 12.6]), `Trade` (Example values: [5.3, 1.1, 5.8]), `Investment` (Example values: [4.7, 6.1, 5.3]), `Migration` (Example values: [6.2, 9.9, 7.8]), `Environment` (Example values: [6.8, 3.2, 7.3]), `Security` (Example values: [7.7, 7.6, 1.2]), `Technology` (Example values: [6.6, 5.7, 4.7]), `Overall (Average)` (Example values: [7.0, 6.6, 6.4])]\n", + "ori_query": "select count(`technology`) from `1-13677808-1` where `rank` = 'canada'", + "amb_query": "SELECT COUNT(\"technology\") FROM \"1-13677808-1\" WHERE rank IN ('canada country', 'canada')" + }, + { + "db_id": "1-13677808-1", + "question": "How many times is denmark ranked in technology?", + "evidence": "", + "schema_text_wo_content": "Table 1-13677808-1, columns = [Country, Rank, Aid, Trade, Investment, Migration, Environment, Security, Technology, Overall (Average)]\n", + "schema_text_with_content": "Table 1-13677808-1, columns = [`Country` (Example values: [1.0, 2.0, 3.0]), `Rank` (Example values: [danish, norway, sweden]), `Aid` (Example values: [11.5, 13.0, 12.6]), `Trade` (Example values: [5.3, 1.1, 5.8]), `Investment` (Example values: [4.7, 6.1, 5.3]), `Migration` (Example values: [6.2, 9.9, 7.8]), `Environment` (Example values: [6.8, 3.2, 7.3]), `Security` (Example values: [7.7, 7.6, 1.2]), `Technology` (Example values: [6.6, 5.7, 4.7]), `Overall (Average)` (Example values: [7.0, 6.6, 6.4])]\n", + "ori_query": "select count(`technology`) from `1-13677808-1` where `rank` = 'denmark'", + "amb_query": "SELECT COUNT(\"technology\") FROM \"1-13677808-1\" WHERE rank IN ('danish', 'denmark')" + }, + { + "db_id": "2-10647310-1", + "question": "What is the total of lane(s) for swimmers from netherlands with a 50m split of faster than 26.25?", + "evidence": "", + "schema_text_wo_content": "Table 2-10647310-1, columns = [Lane, Name, Nationality, Split (50m), Time]\n", + "schema_text_with_content": "Table 2-10647310-1, columns = [`Lane` (Example values: [5.0, 2.0, 3.0]), `Name` (Example values: [lisbeth lenton, marleen veldhuis, britta steffen]), `Nationality` (Example values: [australia, netherlands, europe, germany]), `Split (50m)` (Example values: [25.38, 25.15, 25.76]), `Time` (Example values: [53.4, 53.7, 53.74])]\n", + "ori_query": "select sum(`lane`) from `2-10647310-1` where `nationality` = 'netherlands' and `split (50m)` < 26.25", + "amb_query": "SELECT SUM(\"lane\") FROM \"2-10647310-1\" WHERE nationality IN ('netherlands, europe', 'netherlands') AND \"split (50m)\" < 26.25" + }, + { + "db_id": "2-10647310-1", + "question": "What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?", + "evidence": "", + "schema_text_wo_content": "Table 2-10647310-1, columns = [Lane, Name, Nationality, Split (50m), Time]\n", + "schema_text_with_content": "Table 2-10647310-1, columns = [`Lane` (Example values: [5.0, 2.0, 3.0]), `Name` (Example values: [lisbeth lenton, marleen veldhuis, britta steffen]), `Nationality` (Example values: [australia, netherlands, europe, germany]), `Split (50m)` (Example values: [25.38, 25.15, 25.76]), `Time` (Example values: [53.4, 53.7, 53.74])]\n", + "ori_query": "select sum(`lane`) from `2-10647310-1` where `nationality` = 'sweden' and `split (50m)` < 26.25", + "amb_query": "SELECT SUM(\"lane\") FROM \"2-10647310-1\" WHERE nationality IN ('sweden', 'the kingdom of sweden') AND \"split (50m)\" < 26.25" + }, + { + "db_id": "1-1682026-2", + "question": "What are the assets for company who's headquarters are located in netherlands?", + "evidence": "", + "schema_text_wo_content": "Table 1-1682026-2, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 1-1682026-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [exxonmobil, jpmorgan chase, general electric]), `Headquarters` (Example values: [usa, netherlands country, china]), `Industry` (Example values: [oil and gas, banking, conglomerate]), `Sales (billion $)` (Example values: [433.5, 110.8, 147.3]), `Profits (billion $)` (Example values: [41.1, 19, 14.2]), `Assets (billion $)` (Example values: [331.1, 2,265.8, 717.2]), `Market Value (billion $)` (Example values: [407.4, 170.1, 213.7])]\n", + "ori_query": "select `assets (billion $)` from `1-1682026-2` where `headquarters` = 'netherlands'", + "amb_query": "SELECT \"assets (billion $)\" FROM \"1-1682026-2\" WHERE headquarters IN ('netherlands', 'netherlands country')" + }, + { + "db_id": "1-1682026-2", + "question": "What are the assets for company who's headquarters are located in Brazil?", + "evidence": "", + "schema_text_wo_content": "Table 1-1682026-2, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 1-1682026-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [exxonmobil, jpmorgan chase, general electric]), `Headquarters` (Example values: [usa, netherlands country, china]), `Industry` (Example values: [oil and gas, banking, conglomerate]), `Sales (billion $)` (Example values: [433.5, 110.8, 147.3]), `Profits (billion $)` (Example values: [41.1, 19, 14.2]), `Assets (billion $)` (Example values: [331.1, 2,265.8, 717.2]), `Market Value (billion $)` (Example values: [407.4, 170.1, 213.7])]\n", + "ori_query": "select `assets (billion $)` from `1-1682026-2` where `headquarters` = 'brazil'", + "amb_query": "SELECT \"assets (billion $)\" FROM \"1-1682026-2\" WHERE headquarters IN ('brazil', 'brazilian territory')" + }, + { + "db_id": "2-1682026-8", + "question": "What is the lowest market value (billion $) with a headquarter of netherlands , and the rank larger than 3, assets (billion$) larger than 208.34, and the company jpmorgan chase?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-8, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-8, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [citigroup, general electric, bank of america]), `Headquarters` (Example values: [pennsylvania, usa, united states of america, usa country]), `Industry` (Example values: [commercial banking, conglomerate business, banking industry]), `Sales (billion $)` (Example values: [120.32, 149.7, 85.39]), `Profits (billion $)` (Example values: [24.64, 16.35, 16.47]), `Assets (billion $)` (Example values: [1,494.04, 673.3, 1,291.80]), `Market Value (billion $)` (Example values: [230.93, 348.45, 184.17])]\n", + "ori_query": "select min(`market value (billion $)`) from `2-1682026-8` where `headquarters` = 'netherlands' and `rank` > 3 and `assets (billion $)` > 208.34 and `company` = 'jpmorgan chase'", + "amb_query": "SELECT MIN(\"market value (billion $)\") FROM \"2-1682026-8\" WHERE headquarters IN ('kingdom of the netherlands', 'netherlands') AND \"rank\" > 3 AND \"assets (billion $)\" > 208.34 AND \"company\" = 'jpmorgan chase'" + }, + { + "db_id": "2-1682026-8", + "question": "What is the lowest market value (billion $) with a headquarter of usa , and the rank larger than 3, assets (billion$) larger than 208.34, and the company jpmorgan chase?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-8, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-8, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [citigroup, general electric, bank of america]), `Headquarters` (Example values: [pennsylvania, usa, united states of america, usa country]), `Industry` (Example values: [commercial banking, conglomerate business, banking industry]), `Sales (billion $)` (Example values: [120.32, 149.7, 85.39]), `Profits (billion $)` (Example values: [24.64, 16.35, 16.47]), `Assets (billion $)` (Example values: [1,494.04, 673.3, 1,291.80]), `Market Value (billion $)` (Example values: [230.93, 348.45, 184.17])]\n", + "ori_query": "select min(`market value (billion $)`) from `2-1682026-8` where `headquarters` = 'usa' and `rank` > 3 and `assets (billion $)` > 208.34 and `company` = 'jpmorgan chase'", + "amb_query": "SELECT MIN(\"market value (billion $)\") FROM \"2-1682026-8\" WHERE headquarters IN ('united states of america', 'pennsylvania, usa', 'usa country', 'usa') AND \"rank\" > 3 AND \"assets (billion $)\" > 208.34 AND \"company\" = 'jpmorgan chase'" + }, + { + "db_id": "2-1682026-8", + "question": "What is the smallest rank for an industry of conglomerate, a company of bank of america, and profits (billion $) larger than 16.47?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-8, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-8, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [citigroup, general electric, bank of america]), `Headquarters` (Example values: [pennsylvania, usa, united states of america, usa country]), `Industry` (Example values: [commercial banking, conglomerate business, banking industry]), `Sales (billion $)` (Example values: [120.32, 149.7, 85.39]), `Profits (billion $)` (Example values: [24.64, 16.35, 16.47]), `Assets (billion $)` (Example values: [1,494.04, 673.3, 1,291.80]), `Market Value (billion $)` (Example values: [230.93, 348.45, 184.17])]\n", + "ori_query": "select min(`rank`) from `2-1682026-8` where `industry` = 'conglomerate' and `company` = 'bank of america' and `profits (billion $)` > 16.47", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-1682026-8\" WHERE industry IN ('conglomerate', 'conglomerate business') AND \"company\" = 'bank of america' AND \"profits (billion $)\" > 16.47" + }, + { + "db_id": "2-1682026-8", + "question": "What is the smallest rank for an industry of banking, a company of bank of america, and profits (billion $) larger than 16.47?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-8, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-8, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [citigroup, general electric, bank of america]), `Headquarters` (Example values: [pennsylvania, usa, united states of america, usa country]), `Industry` (Example values: [commercial banking, conglomerate business, banking industry]), `Sales (billion $)` (Example values: [120.32, 149.7, 85.39]), `Profits (billion $)` (Example values: [24.64, 16.35, 16.47]), `Assets (billion $)` (Example values: [1,494.04, 673.3, 1,291.80]), `Market Value (billion $)` (Example values: [230.93, 348.45, 184.17])]\n", + "ori_query": "select min(`rank`) from `2-1682026-8` where `industry` = 'banking' and `company` = 'bank of america' and `profits (billion $)` > 16.47", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-1682026-8\" WHERE industry IN ('banking', 'commercial banking', 'banking industry') AND \"company\" = 'bank of america' AND \"profits (billion $)\" > 16.47" + }, + { + "db_id": "2-1543845-2", + "question": "Who was second for the italy team?", + "evidence": "", + "schema_text_wo_content": "Table 2-1543845-2, columns = [Nation, Skip, Third, Second, Lead, Alternate, Club]\n", + "schema_text_with_content": "Table 2-1543845-2, columns = [`Nation` (Example values: [canada, a nation in north america, denmark, british]), `Skip` (Example values: [shannon kleibrink, dorthe holm, rhona martin]), `Third` (Example values: [amy nixon, denise dupont, jackie lockhart]), `Second` (Example values: [glenys bakker, lene nielsen, kelly wood]), `Lead` (Example values: [christine keshen, malene krause, lynn cameron]), `Alternate` (Example values: [sandra jenkins, maria poulsen, deborah knox]), `Club` (Example values: [calgary winter club , calgary, hvidovre cc, hvidovre, greenacres cc , howwood])]\n", + "ori_query": "select `second` from `2-1543845-2` where `nation` = 'italy'", + "amb_query": "SELECT \"second\" FROM \"2-1543845-2\" WHERE nation IN ('italy country', 'italy')" + }, + { + "db_id": "2-1543845-2", + "question": "Who was canada's alternate?", + "evidence": "", + "schema_text_wo_content": "Table 2-1543845-2, columns = [Nation, Skip, Third, Second, Lead, Alternate, Club]\n", + "schema_text_with_content": "Table 2-1543845-2, columns = [`Nation` (Example values: [canada, a nation in north america, denmark, british]), `Skip` (Example values: [shannon kleibrink, dorthe holm, rhona martin]), `Third` (Example values: [amy nixon, denise dupont, jackie lockhart]), `Second` (Example values: [glenys bakker, lene nielsen, kelly wood]), `Lead` (Example values: [christine keshen, malene krause, lynn cameron]), `Alternate` (Example values: [sandra jenkins, maria poulsen, deborah knox]), `Club` (Example values: [calgary winter club , calgary, hvidovre cc, hvidovre, greenacres cc , howwood])]\n", + "ori_query": "select `alternate` from `2-1543845-2` where `nation` = 'canada'", + "amb_query": "SELECT \"alternate\" FROM \"2-1543845-2\" WHERE nation IN ('canada, a nation in north america', 'canada')" + }, + { + "db_id": "2-1543845-2", + "question": "Which club was from russia?", + "evidence": "", + "schema_text_wo_content": "Table 2-1543845-2, columns = [Nation, Skip, Third, Second, Lead, Alternate, Club]\n", + "schema_text_with_content": "Table 2-1543845-2, columns = [`Nation` (Example values: [canada, a nation in north america, denmark, british]), `Skip` (Example values: [shannon kleibrink, dorthe holm, rhona martin]), `Third` (Example values: [amy nixon, denise dupont, jackie lockhart]), `Second` (Example values: [glenys bakker, lene nielsen, kelly wood]), `Lead` (Example values: [christine keshen, malene krause, lynn cameron]), `Alternate` (Example values: [sandra jenkins, maria poulsen, deborah knox]), `Club` (Example values: [calgary winter club , calgary, hvidovre cc, hvidovre, greenacres cc , howwood])]\n", + "ori_query": "select `club` from `2-1543845-2` where `nation` = 'russia'", + "amb_query": "SELECT \"club\" FROM \"2-1543845-2\" WHERE nation IN ('russia', 'russian state')" + }, + { + "db_id": "2-1543845-2", + "question": "Who was second for the United States team?", + "evidence": "", + "schema_text_wo_content": "Table 2-1543845-2, columns = [Nation, Skip, Third, Second, Lead, Alternate, Club]\n", + "schema_text_with_content": "Table 2-1543845-2, columns = [`Nation` (Example values: [canada, a nation in north america, denmark, british]), `Skip` (Example values: [shannon kleibrink, dorthe holm, rhona martin]), `Third` (Example values: [amy nixon, denise dupont, jackie lockhart]), `Second` (Example values: [glenys bakker, lene nielsen, kelly wood]), `Lead` (Example values: [christine keshen, malene krause, lynn cameron]), `Alternate` (Example values: [sandra jenkins, maria poulsen, deborah knox]), `Club` (Example values: [calgary winter club , calgary, hvidovre cc, hvidovre, greenacres cc , howwood])]\n", + "ori_query": "select `second` from `2-1543845-2` where `nation` = 'united states'", + "amb_query": "SELECT \"second\" FROM \"2-1543845-2\" WHERE nation IN ('united states, north america', 'united states')" + }, + { + "db_id": "2-1543845-2", + "question": "Which club was from Great Britain?", + "evidence": "", + "schema_text_wo_content": "Table 2-1543845-2, columns = [Nation, Skip, Third, Second, Lead, Alternate, Club]\n", + "schema_text_with_content": "Table 2-1543845-2, columns = [`Nation` (Example values: [canada, a nation in north america, denmark, british]), `Skip` (Example values: [shannon kleibrink, dorthe holm, rhona martin]), `Third` (Example values: [amy nixon, denise dupont, jackie lockhart]), `Second` (Example values: [glenys bakker, lene nielsen, kelly wood]), `Lead` (Example values: [christine keshen, malene krause, lynn cameron]), `Alternate` (Example values: [sandra jenkins, maria poulsen, deborah knox]), `Club` (Example values: [calgary winter club , calgary, hvidovre cc, hvidovre, greenacres cc , howwood])]\n", + "ori_query": "select `club` from `2-1543845-2` where `nation` = 'great britain'", + "amb_query": "SELECT \"club\" FROM \"2-1543845-2\" WHERE nation IN ('great britain', 'british')" + }, + { + "db_id": "2-1543845-2", + "question": "Who was Switzerland's alternate?", + "evidence": "", + "schema_text_wo_content": "Table 2-1543845-2, columns = [Nation, Skip, Third, Second, Lead, Alternate, Club]\n", + "schema_text_with_content": "Table 2-1543845-2, columns = [`Nation` (Example values: [canada, a nation in north america, denmark, british]), `Skip` (Example values: [shannon kleibrink, dorthe holm, rhona martin]), `Third` (Example values: [amy nixon, denise dupont, jackie lockhart]), `Second` (Example values: [glenys bakker, lene nielsen, kelly wood]), `Lead` (Example values: [christine keshen, malene krause, lynn cameron]), `Alternate` (Example values: [sandra jenkins, maria poulsen, deborah knox]), `Club` (Example values: [calgary winter club , calgary, hvidovre cc, hvidovre, greenacres cc , howwood])]\n", + "ori_query": "select `alternate` from `2-1543845-2` where `nation` = 'switzerland'", + "amb_query": "SELECT \"alternate\" FROM \"2-1543845-2\" WHERE nation IN ('the swiss nation', 'switzerland')" + }, + { + "db_id": "2-16864441-1", + "question": "What is the highest Total, when Gold is 1, when Nation is italy, and when Bronze is less than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-16864441-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-16864441-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, hungary country, italian republic]), `Gold` (Example values: [6.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [7.0, 2.0, 4.0])]\n", + "ori_query": "select max(`total`) from `2-16864441-1` where `gold` = 1 and `nation` = 'italy' and `bronze` < 0", + "amb_query": "SELECT MAX(\"total\") FROM \"2-16864441-1\" WHERE \"gold\" = 1 AND nation IN ('italy', 'italian republic') AND \"bronze\" < 0" + }, + { + "db_id": "2-16864441-1", + "question": "What is the highest Total, when Gold is 1, when Nation is Hungary, and when Bronze is less than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-16864441-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-16864441-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, hungary country, italian republic]), `Gold` (Example values: [6.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [7.0, 2.0, 4.0])]\n", + "ori_query": "select max(`total`) from `2-16864441-1` where `gold` = 1 and `nation` = 'hungary' and `bronze` < 0", + "amb_query": "SELECT MAX(\"total\") FROM \"2-16864441-1\" WHERE \"gold\" = 1 AND nation IN ('hungary country', 'hungary') AND \"bronze\" < 0" + }, + { + "db_id": "2-10600564-2", + "question": "How many ranks have a ationality of italy, and a Time of dns?", + "evidence": "", + "schema_text_wo_content": "Table 2-10600564-2, columns = [Rank, Heat : Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-10600564-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat : Lane` (Example values: [5 : 4, 4 : 5, 6 : 3]), `Name` (Example values: [craig stevens, federico colbertaldo, oussama mellouli]), `Nationality` (Example values: [australia, italian republic, tunisia, north africa]), `Time` (Example values: [7:50.72, 7:50.77, 7:51.48])]\n", + "ori_query": "select count(`rank`) from `2-10600564-2` where `nationality` = 'italy' and `time` = 'dns'", + "amb_query": "SELECT COUNT(\"rank\") FROM \"2-10600564-2\" WHERE nationality IN ('italy', 'italian republic') AND \"time\" = 'dns'" + }, + { + "db_id": "2-10600564-2", + "question": "How many ranks have a ationality of turkey, and a Time of dns?", + "evidence": "", + "schema_text_wo_content": "Table 2-10600564-2, columns = [Rank, Heat : Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-10600564-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat : Lane` (Example values: [5 : 4, 4 : 5, 6 : 3]), `Name` (Example values: [craig stevens, federico colbertaldo, oussama mellouli]), `Nationality` (Example values: [australia, italian republic, tunisia, north africa]), `Time` (Example values: [7:50.72, 7:50.77, 7:51.48])]\n", + "ori_query": "select count(`rank`) from `2-10600564-2` where `nationality` = 'turkey' and `time` = 'dns'", + "amb_query": "SELECT COUNT(\"rank\") FROM \"2-10600564-2\" WHERE nationality IN ('turkey', 'turkey, the country') AND \"time\" = 'dns'" + }, + { + "db_id": "2-10600564-2", + "question": "How many ranks have a ationality of tunisia, and a Time of dns?", + "evidence": "", + "schema_text_wo_content": "Table 2-10600564-2, columns = [Rank, Heat : Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-10600564-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat : Lane` (Example values: [5 : 4, 4 : 5, 6 : 3]), `Name` (Example values: [craig stevens, federico colbertaldo, oussama mellouli]), `Nationality` (Example values: [australia, italian republic, tunisia, north africa]), `Time` (Example values: [7:50.72, 7:50.77, 7:51.48])]\n", + "ori_query": "select count(`rank`) from `2-10600564-2` where `nationality` = 'tunisia' and `time` = 'dns'", + "amb_query": "SELECT COUNT(\"rank\") FROM \"2-10600564-2\" WHERE nationality IN ('tunisia, north africa', 'tunisia') AND \"time\" = 'dns'" + }, + { + "db_id": "2-10600564-2", + "question": "How many ranks have a ationality of canada, and a Time of dns?", + "evidence": "", + "schema_text_wo_content": "Table 2-10600564-2, columns = [Rank, Heat : Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-10600564-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat : Lane` (Example values: [5 : 4, 4 : 5, 6 : 3]), `Name` (Example values: [craig stevens, federico colbertaldo, oussama mellouli]), `Nationality` (Example values: [australia, italian republic, tunisia, north africa]), `Time` (Example values: [7:50.72, 7:50.77, 7:51.48])]\n", + "ori_query": "select count(`rank`) from `2-10600564-2` where `nationality` = 'canada' and `time` = 'dns'", + "amb_query": "SELECT COUNT(\"rank\") FROM \"2-10600564-2\" WHERE nationality IN ('canada, north america', 'canada', 'the nation of canada') AND \"time\" = 'dns'" + }, + { + "db_id": "2-14918-1", + "question": "Position of member, and a Nationality of italy is what sum of term ending?", + "evidence": "", + "schema_text_wo_content": "Table 2-14918-1, columns = [Name, Nationality, Position, Tenure Began, Term Ending]\n", + "schema_text_with_content": "Table 2-14918-1, columns = [`Name` (Example values: [peter tomka, bernardo sepúlveda amor, hisashi owada]), `Nationality` (Example values: [slovakia, mexico, japan]), `Position` (Example values: [president (2012–2015), vice-president (2012–2015), member]), `Tenure Began` (Example values: [2003.0, 2006.0, 2005.0]), `Term Ending` (Example values: [2021.0, 2015.0, 2018.0])]\n", + "ori_query": "select sum(`term ending`) from `2-14918-1` where `position` = 'member' and `nationality` = 'italy'", + "amb_query": "SELECT SUM(\"term ending\") FROM \"2-14918-1\" WHERE \"position\" = 'member' AND nationality IN ('italy, the boot-shaped country', 'italy')" + }, + { + "db_id": "2-14918-1", + "question": "Term Ending smaller than 2018, and a Nationality of brazil what is the name?", + "evidence": "", + "schema_text_wo_content": "Table 2-14918-1, columns = [Name, Nationality, Position, Tenure Began, Term Ending]\n", + "schema_text_with_content": "Table 2-14918-1, columns = [`Name` (Example values: [peter tomka, bernardo sepúlveda amor, hisashi owada]), `Nationality` (Example values: [slovakia, mexico, japan]), `Position` (Example values: [president (2012–2015), vice-president (2012–2015), member]), `Tenure Began` (Example values: [2003.0, 2006.0, 2005.0]), `Term Ending` (Example values: [2021.0, 2015.0, 2018.0])]\n", + "ori_query": "select `name` from `2-14918-1` where `term ending` < 2018 and `nationality` = 'brazil'", + "amb_query": "SELECT \"name\" FROM \"2-14918-1\" WHERE \"term ending\" < 2018 AND nationality IN ('brazil', 'brazilian nation')" + }, + { + "db_id": "2-14918-1", + "question": "Position of member, and a Nationality of uganda is what sum of term ending?", + "evidence": "", + "schema_text_wo_content": "Table 2-14918-1, columns = [Name, Nationality, Position, Tenure Began, Term Ending]\n", + "schema_text_with_content": "Table 2-14918-1, columns = [`Name` (Example values: [peter tomka, bernardo sepúlveda amor, hisashi owada]), `Nationality` (Example values: [slovakia, mexico, japan]), `Position` (Example values: [president (2012–2015), vice-president (2012–2015), member]), `Tenure Began` (Example values: [2003.0, 2006.0, 2005.0]), `Term Ending` (Example values: [2021.0, 2015.0, 2018.0])]\n", + "ori_query": "select sum(`term ending`) from `2-14918-1` where `position` = 'member' and `nationality` = 'uganda'", + "amb_query": "SELECT SUM(\"term ending\") FROM \"2-14918-1\" WHERE \"position\" = 'member' AND nationality IN ('uganda country', 'uganda')" + }, + { + "db_id": "2-14918-1", + "question": "Position of member, and a Nationality of india is what sum of term ending?", + "evidence": "", + "schema_text_wo_content": "Table 2-14918-1, columns = [Name, Nationality, Position, Tenure Began, Term Ending]\n", + "schema_text_with_content": "Table 2-14918-1, columns = [`Name` (Example values: [peter tomka, bernardo sepúlveda amor, hisashi owada]), `Nationality` (Example values: [slovakia, mexico, japan]), `Position` (Example values: [president (2012–2015), vice-president (2012–2015), member]), `Tenure Began` (Example values: [2003.0, 2006.0, 2005.0]), `Term Ending` (Example values: [2021.0, 2015.0, 2018.0])]\n", + "ori_query": "select sum(`term ending`) from `2-14918-1` where `position` = 'member' and `nationality` = 'india'", + "amb_query": "SELECT SUM(\"term ending\") FROM \"2-14918-1\" WHERE \"position\" = 'member' AND nationality IN ('india', 'india country')" + }, + { + "db_id": "2-14918-1", + "question": "Term Ending smaller than 2018, and a Nationality of new zealand what is the name?", + "evidence": "", + "schema_text_wo_content": "Table 2-14918-1, columns = [Name, Nationality, Position, Tenure Began, Term Ending]\n", + "schema_text_with_content": "Table 2-14918-1, columns = [`Name` (Example values: [peter tomka, bernardo sepúlveda amor, hisashi owada]), `Nationality` (Example values: [slovakia, mexico, japan]), `Position` (Example values: [president (2012–2015), vice-president (2012–2015), member]), `Tenure Began` (Example values: [2003.0, 2006.0, 2005.0]), `Term Ending` (Example values: [2021.0, 2015.0, 2018.0])]\n", + "ori_query": "select `name` from `2-14918-1` where `term ending` < 2018 and `nationality` = 'new zealand'", + "amb_query": "SELECT \"name\" FROM \"2-14918-1\" WHERE \"term ending\" < 2018 AND nationality IN ('new zealand', 'new zealand, oceania')" + }, + { + "db_id": "1-2840500-6", + "question": "How many college teams have a player with a nationality of canada?", + "evidence": "", + "schema_text_wo_content": "Table 1-2840500-6, columns = [Pick, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2840500-6, columns = [`Pick` (Example values: [136.0, 137.0, 138.0]), `Player` (Example values: [andreas dackell, michel larocque, todd miller]), `Position` (Example values: [right wing, goaltender, centre]), `Nationality` (Example values: [sweden, canada, the great white north, canada, a nation in north america]), `NHL team` (Example values: [ottawa senators, san jose sharks, new york islanders]), `College/junior/club team` (Example values: [brynäs if (sweden), boston university (ncaa), sarnia sting (ohl)])]\n", + "ori_query": "select count(`college/junior/club team`) from `1-2840500-6` where `nationality` = 'canada'", + "amb_query": "SELECT COUNT(\"college/junior/club team\") FROM \"1-2840500-6\" WHERE nationality IN ('canadian', 'canada', 'canada, a nation in north america', 'canada, the great white north', 'canada, north america')" + }, + { + "db_id": "1-2840500-6", + "question": "How many college teams have a player with a nationality of Russia?", + "evidence": "", + "schema_text_wo_content": "Table 1-2840500-6, columns = [Pick, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2840500-6, columns = [`Pick` (Example values: [136.0, 137.0, 138.0]), `Player` (Example values: [andreas dackell, michel larocque, todd miller]), `Position` (Example values: [right wing, goaltender, centre]), `Nationality` (Example values: [sweden, canada, the great white north, canada, a nation in north america]), `NHL team` (Example values: [ottawa senators, san jose sharks, new york islanders]), `College/junior/club team` (Example values: [brynäs if (sweden), boston university (ncaa), sarnia sting (ohl)])]\n", + "ori_query": "select count(`college/junior/club team`) from `1-2840500-6` where `nationality` = 'russia'", + "amb_query": "SELECT COUNT(\"college/junior/club team\") FROM \"1-2840500-6\" WHERE nationality IN ('russia', 'russia, the largest country')" + }, + { + "db_id": "2-17104192-3", + "question": "what is the silver when the nation is canada and the total is less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-17104192-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17104192-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, us, spain]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 2.0, 1.0]), `Bronze` (Example values: [4.0, 1.0, 0.0]), `Total` (Example values: [12.0, 5.0, 7.0])]\n", + "ori_query": "select sum(`silver`) from `2-17104192-3` where `nation` = 'canada' and `total` < 1", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-17104192-3\" WHERE nation IN ('canada country', 'canada') AND \"total\" < 1" + }, + { + "db_id": "2-17104192-3", + "question": "what is the silver for united states?", + "evidence": "", + "schema_text_wo_content": "Table 2-17104192-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17104192-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, us, spain]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 2.0, 1.0]), `Bronze` (Example values: [4.0, 1.0, 0.0]), `Total` (Example values: [12.0, 5.0, 7.0])]\n", + "ori_query": "select `silver` from `2-17104192-3` where `nation` = 'united states'", + "amb_query": "SELECT \"silver\" FROM \"2-17104192-3\" WHERE nation IN ('us', 'united states')" + }, + { + "db_id": "2-17104192-3", + "question": "what is the silver for denmark?", + "evidence": "", + "schema_text_wo_content": "Table 2-17104192-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17104192-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, us, spain]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 2.0, 1.0]), `Bronze` (Example values: [4.0, 1.0, 0.0]), `Total` (Example values: [12.0, 5.0, 7.0])]\n", + "ori_query": "select `silver` from `2-17104192-3` where `nation` = 'denmark'", + "amb_query": "SELECT \"silver\" FROM \"2-17104192-3\" WHERE nation IN ('denmark', 'kingdom of denmark')" + }, + { + "db_id": "2-17104192-3", + "question": "what is the silver when the nation is philippines and the total is less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-17104192-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17104192-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, us, spain]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 2.0, 1.0]), `Bronze` (Example values: [4.0, 1.0, 0.0]), `Total` (Example values: [12.0, 5.0, 7.0])]\n", + "ori_query": "select sum(`silver`) from `2-17104192-3` where `nation` = 'philippines' and `total` < 1", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-17104192-3\" WHERE nation IN ('philippines', 'ph') AND \"total\" < 1" + }, + { + "db_id": "2-17104192-3", + "question": "what is the silver when the nation is japan and the total is less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-17104192-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17104192-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, us, spain]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 2.0, 1.0]), `Bronze` (Example values: [4.0, 1.0, 0.0]), `Total` (Example values: [12.0, 5.0, 7.0])]\n", + "ori_query": "select sum(`silver`) from `2-17104192-3` where `nation` = 'japan' and `total` < 1", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-17104192-3\" WHERE nation IN ('japan country', 'japan') AND \"total\" < 1" + }, + { + "db_id": "2-17104192-3", + "question": "what is the silver for mexico?", + "evidence": "", + "schema_text_wo_content": "Table 2-17104192-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17104192-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, us, spain]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 2.0, 1.0]), `Bronze` (Example values: [4.0, 1.0, 0.0]), `Total` (Example values: [12.0, 5.0, 7.0])]\n", + "ori_query": "select `silver` from `2-17104192-3` where `nation` = 'mexico'", + "amb_query": "SELECT \"silver\" FROM \"2-17104192-3\" WHERE nation IN ('mexico', 'mexico, north america')" + }, + { + "db_id": "1-13770460-3", + "question": "How many numbers are ending in 2009?", + "evidence": "", + "schema_text_wo_content": "Table 1-13770460-3, columns = [N, P, Name, EU, Country, Age, Type, Moving from, Transfer window, Ends, Transfer fee, Source]\n", + "schema_text_with_content": "Table 1-13770460-3, columns = [`N` (Example values: [5.0, 8.0, 17.0]), `P` (Example values: [df, dm, fw]), `Name` (Example values: [fabio cannavaro, emerson, ruud van nistelrooy]), `EU` (Example values: [eu, non-eu]), `Country` (Example values: [ita, bra, ned]), `Age` (Example values: [32.0, 29.0, 30.0]), `Type` (Example values: [signed, loaned]), `Moving from` (Example values: [juventus, manchester united, lyon]), `Transfer window` (Example values: [summer, winter]), `Ends` (Example values: [in the year 2009, year 2009, 2011]), `Transfer fee` (Example values: [€10m, €15m, €26m]), `Source` (Example values: [realmadrid])]\n", + "ori_query": "select count(`n`) from `1-13770460-3` where `ends` = '2009'", + "amb_query": "SELECT COUNT(\"n\") FROM \"1-13770460-3\" WHERE ends IN ('2009', 'in the year 2009', 'year 2009')" + }, + { + "db_id": "1-13770460-3", + "question": "How many numbers are ending in 1 year?", + "evidence": "", + "schema_text_wo_content": "Table 1-13770460-3, columns = [N, P, Name, EU, Country, Age, Type, Moving from, Transfer window, Ends, Transfer fee, Source]\n", + "schema_text_with_content": "Table 1-13770460-3, columns = [`N` (Example values: [5.0, 8.0, 17.0]), `P` (Example values: [df, dm, fw]), `Name` (Example values: [fabio cannavaro, emerson, ruud van nistelrooy]), `EU` (Example values: [eu, non-eu]), `Country` (Example values: [ita, bra, ned]), `Age` (Example values: [32.0, 29.0, 30.0]), `Type` (Example values: [signed, loaned]), `Moving from` (Example values: [juventus, manchester united, lyon]), `Transfer window` (Example values: [summer, winter]), `Ends` (Example values: [in the year 2009, year 2009, 2011]), `Transfer fee` (Example values: [€10m, €15m, €26m]), `Source` (Example values: [realmadrid])]\n", + "ori_query": "select count(`n`) from `1-13770460-3` where `ends` = '1 year'", + "amb_query": "SELECT COUNT(\"n\") FROM \"1-13770460-3\" WHERE ends IN ('1 year duration', '1 year')" + }, + { + "db_id": "1-1397655-1", + "question": "which station is located in montreal", + "evidence": "", + "schema_text_wo_content": "Table 1-1397655-1, columns = [City, Station, Year acquired, Primary programming source, Other programming sources, Current status]\n", + "schema_text_with_content": "Table 1-1397655-1, columns = [`City` (Example values: [city of edmonton, hamilton, lethbridge]), `Station` (Example values: [citv, chch, cisa]), `Year acquired` (Example values: [1991.0, 1990.0, 1989.0]), `Primary programming source` (Example values: [global, independent (wic programs only), ctv]), `Other programming sources` (Example values: [wic, n/a]), `Current status` (Example values: [global o&o, independent station owned by channel zero, ctv o&o])]\n", + "ori_query": "select `station` from `1-1397655-1` where `city` = 'montreal'", + "amb_query": "SELECT \"station\" FROM \"1-1397655-1\" WHERE city IN ('montreal', 'montreal, quebec')" + }, + { + "db_id": "1-1397655-1", + "question": "which station is located in edmonton", + "evidence": "", + "schema_text_wo_content": "Table 1-1397655-1, columns = [City, Station, Year acquired, Primary programming source, Other programming sources, Current status]\n", + "schema_text_with_content": "Table 1-1397655-1, columns = [`City` (Example values: [city of edmonton, hamilton, lethbridge]), `Station` (Example values: [citv, chch, cisa]), `Year acquired` (Example values: [1991.0, 1990.0, 1989.0]), `Primary programming source` (Example values: [global, independent (wic programs only), ctv]), `Other programming sources` (Example values: [wic, n/a]), `Current status` (Example values: [global o&o, independent station owned by channel zero, ctv o&o])]\n", + "ori_query": "select `station` from `1-1397655-1` where `city` = 'edmonton'", + "amb_query": "SELECT \"station\" FROM \"1-1397655-1\" WHERE city IN ('edmonton', 'city of edmonton')" + }, + { + "db_id": "2-17190456-3", + "question": "What is the lowest amount of points of the game with montreal as the home team?", + "evidence": "", + "schema_text_wo_content": "Table 2-17190456-3, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17190456-3, columns = [`Date` (Example values: [november 2, november 3, november 6]), `Visitor` (Example values: [pittsburgh, st. louis, philadelphia city]), `Score` (Example values: [2–3, 3–1, 4–5]), `Home` (Example values: [los angeles, oakland, pittsburgh]), `Attendance` (Example values: [6,602, 2,166, 8,526]), `Record` (Example values: [1–5–2, 2–5–2, 2–6–2]), `Points` (Example values: [4.0, 6.0, 8.0])]\n", + "ori_query": "select min(`points`) from `2-17190456-3` where `home` = 'montreal'", + "amb_query": "SELECT MIN(\"points\") FROM \"2-17190456-3\" WHERE home IN ('montreal', 'montreal metropolitan area')" + }, + { + "db_id": "2-17190456-3", + "question": "What is the lowest amount of points of the game with toronto as the home team?", + "evidence": "", + "schema_text_wo_content": "Table 2-17190456-3, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17190456-3, columns = [`Date` (Example values: [november 2, november 3, november 6]), `Visitor` (Example values: [pittsburgh, st. louis, philadelphia city]), `Score` (Example values: [2–3, 3–1, 4–5]), `Home` (Example values: [los angeles, oakland, pittsburgh]), `Attendance` (Example values: [6,602, 2,166, 8,526]), `Record` (Example values: [1–5–2, 2–5–2, 2–6–2]), `Points` (Example values: [4.0, 6.0, 8.0])]\n", + "ori_query": "select min(`points`) from `2-17190456-3` where `home` = 'toronto'", + "amb_query": "SELECT MIN(\"points\") FROM \"2-17190456-3\" WHERE home IN ('toronto', 'city of toronto')" + }, + { + "db_id": "2-17190456-3", + "question": "What is the sum of the points of the game with los angeles as the visitor and an attendance greater than 7,284?", + "evidence": "", + "schema_text_wo_content": "Table 2-17190456-3, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17190456-3, columns = [`Date` (Example values: [november 2, november 3, november 6]), `Visitor` (Example values: [pittsburgh, st. louis, philadelphia city]), `Score` (Example values: [2–3, 3–1, 4–5]), `Home` (Example values: [los angeles, oakland, pittsburgh]), `Attendance` (Example values: [6,602, 2,166, 8,526]), `Record` (Example values: [1–5–2, 2–5–2, 2–6–2]), `Points` (Example values: [4.0, 6.0, 8.0])]\n", + "ori_query": "select sum(`points`) from `2-17190456-3` where `visitor` = 'los angeles' and `attendance` > 7,284", + "amb_query": "SELECT MIN(\"points\") FROM \"2-17190456-3\" WHERE home IN ('toronto', 'city of toronto')" + }, + { + "db_id": "2-17190456-3", + "question": "What is the sum of the points of the game with philadelphia as the visitor and an attendance greater than 7,284?", + "evidence": "", + "schema_text_wo_content": "Table 2-17190456-3, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17190456-3, columns = [`Date` (Example values: [november 2, november 3, november 6]), `Visitor` (Example values: [pittsburgh, st. louis, philadelphia city]), `Score` (Example values: [2–3, 3–1, 4–5]), `Home` (Example values: [los angeles, oakland, pittsburgh]), `Attendance` (Example values: [6,602, 2,166, 8,526]), `Record` (Example values: [1–5–2, 2–5–2, 2–6–2]), `Points` (Example values: [4.0, 6.0, 8.0])]\n", + "ori_query": "select sum(`points`) from `2-17190456-3` where `visitor` = 'philadelphia' and `attendance` > 7,284", + "amb_query": "SELECT MIN(\"points\") FROM \"2-17190456-3\" WHERE home IN ('toronto', 'city of toronto')" + }, + { + "db_id": "1-14342592-8", + "question": "Name the extra points for right halfback", + "evidence": "", + "schema_text_wo_content": "Table 1-14342592-8, columns = [Player, Position, Starter, Touchdowns, Extra points, Field goals, Points]\n", + "schema_text_with_content": "Table 1-14342592-8, columns = [`Player` (Example values: [curtis, norcross, clark]), `Position` (Example values: [left tackle, quarterback, fullback]), `Starter` (Example values: [yes, no]), `Touchdowns` (Example values: [6.0, 5.0, 3.0]), `Extra points` (Example values: [19.0, 0.0, 1.0]), `Field goals` (Example values: [0.0]), `Points` (Example values: [49.0, 25.0, 15.0])]\n", + "ori_query": "select `extra points` from `1-14342592-8` where `position` = 'right halfback'", + "amb_query": "SELECT \"extra points\" FROM \"1-14342592-8\" WHERE position IN ('right halfback', 'right halfback player')" + }, + { + "db_id": "1-14342592-8", + "question": "Name the extra points for left guard", + "evidence": "", + "schema_text_wo_content": "Table 1-14342592-8, columns = [Player, Position, Starter, Touchdowns, Extra points, Field goals, Points]\n", + "schema_text_with_content": "Table 1-14342592-8, columns = [`Player` (Example values: [curtis, norcross, clark]), `Position` (Example values: [left tackle, quarterback, fullback]), `Starter` (Example values: [yes, no]), `Touchdowns` (Example values: [6.0, 5.0, 3.0]), `Extra points` (Example values: [19.0, 0.0, 1.0]), `Field goals` (Example values: [0.0]), `Points` (Example values: [49.0, 25.0, 15.0])]\n", + "ori_query": "select `extra points` from `1-14342592-8` where `position` = 'left guard'", + "amb_query": "SELECT \"extra points\" FROM \"1-14342592-8\" WHERE position IN ('left offensive guard', 'left guard')" + }, + { + "db_id": "1-14345690-4", + "question": "Name who was famous for finished in 4th", + "evidence": "", + "schema_text_wo_content": "Table 1-14345690-4, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 1-14345690-4, columns = [`Celebrity` (Example values: [kerry katona, jennie bond, peter andre]), `Famous for` (Example values: [singer in atomic kitten, former royal correspondent for the bbc, pop singer]), `Entered` (Example values: [day 1]), `Exited` (Example values: [day 16th, day sixteen, day 16]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `famous for` from `1-14345690-4` where `finished` = '4th'", + "amb_query": "SELECT \"famous for\" FROM \"1-14345690-4\" WHERE finished IN ('4th place', '4th')" + }, + { + "db_id": "1-14345690-4", + "question": "Name who was famous for finished in 9th", + "evidence": "", + "schema_text_wo_content": "Table 1-14345690-4, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 1-14345690-4, columns = [`Celebrity` (Example values: [kerry katona, jennie bond, peter andre]), `Famous for` (Example values: [singer in atomic kitten, former royal correspondent for the bbc, pop singer]), `Entered` (Example values: [day 1]), `Exited` (Example values: [day 16th, day sixteen, day 16]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `famous for` from `1-14345690-4` where `finished` = '9th'", + "amb_query": "SELECT \"famous for\" FROM \"1-14345690-4\" WHERE finished IN ('finishing ninth', '9th')" + }, + { + "db_id": "1-14345690-4", + "question": "Name the finished for exited day 16", + "evidence": "", + "schema_text_wo_content": "Table 1-14345690-4, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 1-14345690-4, columns = [`Celebrity` (Example values: [kerry katona, jennie bond, peter andre]), `Famous for` (Example values: [singer in atomic kitten, former royal correspondent for the bbc, pop singer]), `Entered` (Example values: [day 1]), `Exited` (Example values: [day 16th, day sixteen, day 16]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `finished` from `1-14345690-4` where `exited` = 'day 16'", + "amb_query": "SELECT \"finished\" FROM \"1-14345690-4\" WHERE exited IN ('day 16', 'day 16th', 'day sixteen')" + }, + { + "db_id": "1-14345690-4", + "question": "Name the finished for exited of day 15", + "evidence": "", + "schema_text_wo_content": "Table 1-14345690-4, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 1-14345690-4, columns = [`Celebrity` (Example values: [kerry katona, jennie bond, peter andre]), `Famous for` (Example values: [singer in atomic kitten, former royal correspondent for the bbc, pop singer]), `Entered` (Example values: [day 1]), `Exited` (Example values: [day 16th, day sixteen, day 16]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `finished` from `1-14345690-4` where `exited` = 'day 15'", + "amb_query": "SELECT \"finished\" FROM \"1-14345690-4\" WHERE exited IN ('day fifteen', 'day 15')" + }, + { + "db_id": "1-14345690-4", + "question": "Name the finished for exited day 13", + "evidence": "", + "schema_text_wo_content": "Table 1-14345690-4, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 1-14345690-4, columns = [`Celebrity` (Example values: [kerry katona, jennie bond, peter andre]), `Famous for` (Example values: [singer in atomic kitten, former royal correspondent for the bbc, pop singer]), `Entered` (Example values: [day 1]), `Exited` (Example values: [day 16th, day sixteen, day 16]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `finished` from `1-14345690-4` where `exited` = 'day 13'", + "amb_query": "SELECT \"finished\" FROM \"1-14345690-4\" WHERE exited IN ('day 13', 'exited on day 13')" + }, + { + "db_id": "1-14345690-4", + "question": "Name the finished for exited of day 13", + "evidence": "", + "schema_text_wo_content": "Table 1-14345690-4, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 1-14345690-4, columns = [`Celebrity` (Example values: [kerry katona, jennie bond, peter andre]), `Famous for` (Example values: [singer in atomic kitten, former royal correspondent for the bbc, pop singer]), `Entered` (Example values: [day 1]), `Exited` (Example values: [day 16th, day sixteen, day 16]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `finished` from `1-14345690-4` where `exited` = 'day 13'", + "amb_query": "SELECT \"finished\" FROM \"1-14345690-4\" WHERE exited IN ('day 13', 'exited on day 13')" + }, + { + "db_id": "1-1449176-1", + "question": "What is the name of the 2nd ranked common?", + "evidence": "", + "schema_text_wo_content": "Table 1-1449176-1, columns = [Rank, Common of, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449176-1, columns = [`Rank` (Example values: [1st, second, 3rd]), `Common of` (Example values: [torino, moncalieri, collegno]), `Population` (Example values: [907563.0, 58320.0, 50137.0]), `Area (km 2 )` (Example values: [130.7, 47.3, 18.0]), `Density (inhabitants/km 2 )` (Example values: [6943.9, 1233, 2785.4]), `Altitude (mslm)` (Example values: [239.0, 260.0, 302.0])]\n", + "ori_query": "select `common of` from `1-1449176-1` where `rank` = '2nd'", + "amb_query": "SELECT \"common of\" FROM \"1-1449176-1\" WHERE rank IN ('second', '2nd')" + }, + { + "db_id": "1-1449176-1", + "question": "What is the name of the 9th ranked common?", + "evidence": "", + "schema_text_wo_content": "Table 1-1449176-1, columns = [Rank, Common of, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449176-1, columns = [`Rank` (Example values: [1st, second, 3rd]), `Common of` (Example values: [torino, moncalieri, collegno]), `Population` (Example values: [907563.0, 58320.0, 50137.0]), `Area (km 2 )` (Example values: [130.7, 47.3, 18.0]), `Density (inhabitants/km 2 )` (Example values: [6943.9, 1233, 2785.4]), `Altitude (mslm)` (Example values: [239.0, 260.0, 302.0])]\n", + "ori_query": "select `common of` from `1-1449176-1` where `rank` = '9th'", + "amb_query": "SELECT \"common of\" FROM \"1-1449176-1\" WHERE rank IN ('9th', '9th position')" + }, + { + "db_id": "1-1449176-1", + "question": "How may population figures are given for nichelino", + "evidence": "", + "schema_text_wo_content": "Table 1-1449176-1, columns = [Rank, Common of, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449176-1, columns = [`Rank` (Example values: [1st, second, 3rd]), `Common of` (Example values: [torino, moncalieri, collegno]), `Population` (Example values: [907563.0, 58320.0, 50137.0]), `Area (km 2 )` (Example values: [130.7, 47.3, 18.0]), `Density (inhabitants/km 2 )` (Example values: [6943.9, 1233, 2785.4]), `Altitude (mslm)` (Example values: [239.0, 260.0, 302.0])]\n", + "ori_query": "select count(`population`) from `1-1449176-1` where `common of` = 'nichelino'", + "amb_query": "SELECT COUNT(\"population\") FROM \"1-1449176-1\" WHERE common of IN ('nichelino, italy', 'nichelino')" + }, + { + "db_id": "1-1449176-1", + "question": "The common of grugliasco has what population density?", + "evidence": "", + "schema_text_wo_content": "Table 1-1449176-1, columns = [Rank, Common of, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449176-1, columns = [`Rank` (Example values: [1st, second, 3rd]), `Common of` (Example values: [torino, moncalieri, collegno]), `Population` (Example values: [907563.0, 58320.0, 50137.0]), `Area (km 2 )` (Example values: [130.7, 47.3, 18.0]), `Density (inhabitants/km 2 )` (Example values: [6943.9, 1233, 2785.4]), `Altitude (mslm)` (Example values: [239.0, 260.0, 302.0])]\n", + "ori_query": "select `density (inhabitants/km 2 )` from `1-1449176-1` where `common of` = 'grugliasco'", + "amb_query": "SELECT \"density (inhabitants/km 2 )\" FROM \"1-1449176-1\" WHERE common of IN ('grugliasco, italy', 'grugliasco')" + }, + { + "db_id": "1-1449176-1", + "question": "How may population figures are given for Settimo Torinese", + "evidence": "", + "schema_text_wo_content": "Table 1-1449176-1, columns = [Rank, Common of, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449176-1, columns = [`Rank` (Example values: [1st, second, 3rd]), `Common of` (Example values: [torino, moncalieri, collegno]), `Population` (Example values: [907563.0, 58320.0, 50137.0]), `Area (km 2 )` (Example values: [130.7, 47.3, 18.0]), `Density (inhabitants/km 2 )` (Example values: [6943.9, 1233, 2785.4]), `Altitude (mslm)` (Example values: [239.0, 260.0, 302.0])]\n", + "ori_query": "select count(`population`) from `1-1449176-1` where `common of` = 'settimo torinese'", + "amb_query": "SELECT COUNT(\"population\") FROM \"1-1449176-1\" WHERE common of IN ('settimo torinese', 'settimo torinese city')" + }, + { + "db_id": "1-1449176-1", + "question": "The common of Chieri has what population density?", + "evidence": "", + "schema_text_wo_content": "Table 1-1449176-1, columns = [Rank, Common of, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449176-1, columns = [`Rank` (Example values: [1st, second, 3rd]), `Common of` (Example values: [torino, moncalieri, collegno]), `Population` (Example values: [907563.0, 58320.0, 50137.0]), `Area (km 2 )` (Example values: [130.7, 47.3, 18.0]), `Density (inhabitants/km 2 )` (Example values: [6943.9, 1233, 2785.4]), `Altitude (mslm)` (Example values: [239.0, 260.0, 302.0])]\n", + "ori_query": "select `density (inhabitants/km 2 )` from `1-1449176-1` where `common of` = 'chieri'", + "amb_query": "SELECT \"density (inhabitants/km 2 )\" FROM \"1-1449176-1\" WHERE common of IN ('comune di chieri', 'chieri')" + }, + { + "db_id": "1-1447085-1", + "question": "What is the median household income for easttown township?", + "evidence": "", + "schema_text_wo_content": "Table 1-1447085-1, columns = [Rank, Place, County, Per Capita Income, Median House- hold Income, Population, Number of Households]\n", + "schema_text_with_content": "Table 1-1447085-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Place` (Example values: [norwin, pennsylvania, gladwyne, fox chapel]), `County` (Example values: [westmoreland county, montgomery county, allegheny county]), `Per Capita Income` (Example values: [$124,279, $90,940, $80,610]), `Median House- hold Income` (Example values: [$94,239, $159,905, $141,298]), `Population` (Example values: [18.0, 4050.0, 5436.0]), `Number of Households` (Example values: [7.0, 1476.0, 1875.0])]\n", + "ori_query": "select `median house- hold income` from `1-1447085-1` where `place` = 'easttown township'", + "amb_query": "SELECT \"median house- hold income\" FROM \"1-1447085-1\" WHERE place IN ('easttown, pennsylvania', 'easttown township')" + }, + { + "db_id": "1-1447085-1", + "question": "What is the median household income for norwin?", + "evidence": "", + "schema_text_wo_content": "Table 1-1447085-1, columns = [Rank, Place, County, Per Capita Income, Median House- hold Income, Population, Number of Households]\n", + "schema_text_with_content": "Table 1-1447085-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Place` (Example values: [norwin, pennsylvania, gladwyne, fox chapel]), `County` (Example values: [westmoreland county, montgomery county, allegheny county]), `Per Capita Income` (Example values: [$124,279, $90,940, $80,610]), `Median House- hold Income` (Example values: [$94,239, $159,905, $141,298]), `Population` (Example values: [18.0, 4050.0, 5436.0]), `Number of Households` (Example values: [7.0, 1476.0, 1875.0])]\n", + "ori_query": "select `median house- hold income` from `1-1447085-1` where `place` = 'norwin'", + "amb_query": "SELECT \"median house- hold income\" FROM \"1-1447085-1\" WHERE place IN ('norwin', 'norwin, pennsylvania')" + }, + { + "db_id": "1-1447085-1", + "question": "What is the median household income for doylestown township?", + "evidence": "", + "schema_text_wo_content": "Table 1-1447085-1, columns = [Rank, Place, County, Per Capita Income, Median House- hold Income, Population, Number of Households]\n", + "schema_text_with_content": "Table 1-1447085-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Place` (Example values: [norwin, pennsylvania, gladwyne, fox chapel]), `County` (Example values: [westmoreland county, montgomery county, allegheny county]), `Per Capita Income` (Example values: [$124,279, $90,940, $80,610]), `Median House- hold Income` (Example values: [$94,239, $159,905, $141,298]), `Population` (Example values: [18.0, 4050.0, 5436.0]), `Number of Households` (Example values: [7.0, 1476.0, 1875.0])]\n", + "ori_query": "select `median house- hold income` from `1-1447085-1` where `place` = 'doylestown township'", + "amb_query": "SELECT \"median house- hold income\" FROM \"1-1447085-1\" WHERE place IN ('doylestown township, pennsylvania', 'doylestown township')" + }, + { + "db_id": "1-1447085-1", + "question": "What is the median household income for spring ridge?", + "evidence": "", + "schema_text_wo_content": "Table 1-1447085-1, columns = [Rank, Place, County, Per Capita Income, Median House- hold Income, Population, Number of Households]\n", + "schema_text_with_content": "Table 1-1447085-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Place` (Example values: [norwin, pennsylvania, gladwyne, fox chapel]), `County` (Example values: [westmoreland county, montgomery county, allegheny county]), `Per Capita Income` (Example values: [$124,279, $90,940, $80,610]), `Median House- hold Income` (Example values: [$94,239, $159,905, $141,298]), `Population` (Example values: [18.0, 4050.0, 5436.0]), `Number of Households` (Example values: [7.0, 1476.0, 1875.0])]\n", + "ori_query": "select `median house- hold income` from `1-1447085-1` where `place` = 'spring ridge'", + "amb_query": "SELECT \"median house- hold income\" FROM \"1-1447085-1\" WHERE place IN ('spring ridge community', 'spring ridge')" + }, + { + "db_id": "1-1447085-1", + "question": "What is the median household income for Woodside?", + "evidence": "", + "schema_text_wo_content": "Table 1-1447085-1, columns = [Rank, Place, County, Per Capita Income, Median House- hold Income, Population, Number of Households]\n", + "schema_text_with_content": "Table 1-1447085-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Place` (Example values: [norwin, pennsylvania, gladwyne, fox chapel]), `County` (Example values: [westmoreland county, montgomery county, allegheny county]), `Per Capita Income` (Example values: [$124,279, $90,940, $80,610]), `Median House- hold Income` (Example values: [$94,239, $159,905, $141,298]), `Population` (Example values: [18.0, 4050.0, 5436.0]), `Number of Households` (Example values: [7.0, 1476.0, 1875.0])]\n", + "ori_query": "select `median house- hold income` from `1-1447085-1` where `place` = 'woodside'", + "amb_query": "SELECT \"median house- hold income\" FROM \"1-1447085-1\" WHERE place IN ('woodside, usa', 'woodside')" + }, + { + "db_id": "1-1449169-1", + "question": "Where does the common of borgomanero rank in population?", + "evidence": "", + "schema_text_wo_content": "Table 1-1449169-1, columns = [Rank, Common, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449169-1, columns = [`Rank` (Example values: [1st, 2nd, 3rd]), `Common` (Example values: [novara, borgomanero municipality, trecate]), `Population` (Example values: [105024.0, 21518.0, 20190.0]), `Area (km 2 )` (Example values: [103.02, 32.36, 38.38]), `Density (inhabitants/km 2 )` (Example values: [1019.5, 665, 526.1]), `Altitude (mslm)` (Example values: [162.0, 307.0, 136.0])]\n", + "ori_query": "select `rank` from `1-1449169-1` where `common` = 'borgomanero'", + "amb_query": "SELECT \"rank\" FROM \"1-1449169-1\" WHERE common IN ('borgomanero', 'borgomanero municipality')" + }, + { + "db_id": "1-1449169-1", + "question": "Where does the common of Galliate rank in population?", + "evidence": "", + "schema_text_wo_content": "Table 1-1449169-1, columns = [Rank, Common, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 1-1449169-1, columns = [`Rank` (Example values: [1st, 2nd, 3rd]), `Common` (Example values: [novara, borgomanero municipality, trecate]), `Population` (Example values: [105024.0, 21518.0, 20190.0]), `Area (km 2 )` (Example values: [103.02, 32.36, 38.38]), `Density (inhabitants/km 2 )` (Example values: [1019.5, 665, 526.1]), `Altitude (mslm)` (Example values: [162.0, 307.0, 136.0])]\n", + "ori_query": "select `rank` from `1-1449169-1` where `common` = 'galliate'", + "amb_query": "SELECT \"rank\" FROM \"1-1449169-1\" WHERE common IN ('galliate, italy', 'galliate')" + }, + { + "db_id": "1-14624447-33", + "question": "How many players were 6'1\" and from louisville, kentucky?", + "evidence": "", + "schema_text_wo_content": "Table 1-14624447-33, columns = [Position, Number, Name, Height, Weight, Class, Hometown, Games↑]\n", + "schema_text_with_content": "Table 1-14624447-33, columns = [`Position` (Example values: [le, lt, rt]), `Number` (Example values: [99.0, 98.0, 91.0]), `Name` (Example values: [jeremy jarmon, myron pryor, corey peters]), `Height` (Example values: [6'3\", 6'1\", 6'2\"]), `Weight` (Example values: [277lb., 310lb., 290lb.]), `Class` (Example values: [jr., sr.]), `Hometown` (Example values: [collierville, tennessee, louisville, kentucky, united states, louisville, ky]), `Games↑` (Example values: [5.0, 2.0, 1.0])]\n", + "ori_query": "select count(`position`) from `1-14624447-33` where `height` = 6'1\" and `hometown` = 'louisville, kentucky'", + "amb_query": "SELECT \"rank\" FROM \"1-1449169-1\" WHERE common IN ('galliate, italy', 'galliate')" + }, + { + "db_id": "1-14624447-33", + "question": "How many players were 6'1\" and from Columbia, South Carolina?", + "evidence": "", + "schema_text_wo_content": "Table 1-14624447-33, columns = [Position, Number, Name, Height, Weight, Class, Hometown, Games↑]\n", + "schema_text_with_content": "Table 1-14624447-33, columns = [`Position` (Example values: [le, lt, rt]), `Number` (Example values: [99.0, 98.0, 91.0]), `Name` (Example values: [jeremy jarmon, myron pryor, corey peters]), `Height` (Example values: [6'3\", 6'1\", 6'2\"]), `Weight` (Example values: [277lb., 310lb., 290lb.]), `Class` (Example values: [jr., sr.]), `Hometown` (Example values: [collierville, tennessee, louisville, kentucky, united states, louisville, ky]), `Games↑` (Example values: [5.0, 2.0, 1.0])]\n", + "ori_query": "select count(`position`) from `1-14624447-33` where `height` = 6'1\" and `hometown` = 'columbia, south carolina'", + "amb_query": "SELECT \"rank\" FROM \"1-1449169-1\" WHERE common IN ('galliate, italy', 'galliate')" + }, + { + "db_id": "1-1473672-8", + "question": "Name the college/junior/club team for right wing", + "evidence": "", + "schema_text_wo_content": "Table 1-1473672-8, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-1473672-8, columns = [`Pick #` (Example values: [113.0, 114.0, 115.0]), `Player` (Example values: [derek kuntz, dave murphy, dennis mccord]), `Position` (Example values: [left wing player, centre, defence]), `Nationality` (Example values: [canada, united states]), `NHL team` (Example values: [new york islanders, atlanta flames, vancouver canucks]), `College/junior/club team` (Example values: [medicine hat tigers (wchl), hamilton red wings (omjhl), london knights (omjhl)])]\n", + "ori_query": "select `college/junior/club team` from `1-1473672-8` where `position` = 'right wing'", + "amb_query": "SELECT \"college/junior/club team\" FROM \"1-1473672-8\" WHERE position IN ('right wing', 'right winger', 'right wing position')" + }, + { + "db_id": "1-1473672-8", + "question": "Name the college/junior/club team for left wing", + "evidence": "", + "schema_text_wo_content": "Table 1-1473672-8, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-1473672-8, columns = [`Pick #` (Example values: [113.0, 114.0, 115.0]), `Player` (Example values: [derek kuntz, dave murphy, dennis mccord]), `Position` (Example values: [left wing player, centre, defence]), `Nationality` (Example values: [canada, united states]), `NHL team` (Example values: [new york islanders, atlanta flames, vancouver canucks]), `College/junior/club team` (Example values: [medicine hat tigers (wchl), hamilton red wings (omjhl), london knights (omjhl)])]\n", + "ori_query": "select `college/junior/club team` from `1-1473672-8` where `position` = 'left wing'", + "amb_query": "SELECT \"college/junior/club team\" FROM \"1-1473672-8\" WHERE position IN ('left wing player', 'left wing')" + }, + { + "db_id": "1-20925393-3", + "question": "state the name of day in english where cardinal direction is southeast", + "evidence": "", + "schema_text_wo_content": "Table 1-20925393-3, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-20925393-3, columns = [`Cardinal direction` (Example values: [northeast, direction east, southeast compass direction]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `english` from `1-20925393-3` where `cardinal direction` = 'southeast'", + "amb_query": "SELECT \"english\" FROM \"1-20925393-3\" WHERE cardinal direction IN ('southeast compass direction', 'southeast')" + }, + { + "db_id": "1-20925393-3", + "question": "state the name of day in english where cardinal direction is east", + "evidence": "", + "schema_text_wo_content": "Table 1-20925393-3, columns = [Cardinal direction, Burmese, Sanskrit, English, Planet, Sign]\n", + "schema_text_with_content": "Table 1-20925393-3, columns = [`Cardinal direction` (Example values: [northeast, direction east, southeast compass direction]), `Burmese` (Example values: [taninganwe တနင်္ဂနွေ, taninla တနင်္လာ, inga အင်္ဂါ]), `Sanskrit` (Example values: [aditya, chandra, angaraka]), `English` (Example values: [sunday, monday, tuesday]), `Planet` (Example values: [sun, moon, mars]), `Sign` (Example values: [garuda ဂဠုန်, tiger ကျား, lion ခြင်္သေ့])]\n", + "ori_query": "select `english` from `1-20925393-3` where `cardinal direction` = 'east'", + "amb_query": "SELECT \"english\" FROM \"1-20925393-3\" WHERE cardinal direction IN ('direction east', 'east')" + }, + { + "db_id": "1-14903081-1", + "question": "madrid is in which country?", + "evidence": "", + "schema_text_wo_content": "Table 1-14903081-1, columns = [Tournament, Country, Location, Current Venue, Began, Court surface]\n", + "schema_text_with_content": "Table 1-14903081-1, columns = [`Tournament` (Example values: [indian wells masters, miami masters, monte carlo masters]), `Country` (Example values: [united states, monaco, italy]), `Location` (Example values: [indian wells, miami, roquebrune-cap-martin, france]), `Current Venue` (Example values: [indian wells tennis garden, tennis center at crandon park, monte carlo country club]), `Began` (Example values: [1987.0, 1897.0, 1930.0]), `Court surface` (Example values: [hard, clay, hard (i)])]\n", + "ori_query": "select `country` from `1-14903081-1` where `location` = 'madrid'", + "amb_query": "SELECT \"country\" FROM \"1-14903081-1\" WHERE location IN ('madrid', 'madrid, the spanish capital')" + }, + { + "db_id": "1-14903081-1", + "question": "Which current venues location is roquebrune-cap-martin , france?", + "evidence": "", + "schema_text_wo_content": "Table 1-14903081-1, columns = [Tournament, Country, Location, Current Venue, Began, Court surface]\n", + "schema_text_with_content": "Table 1-14903081-1, columns = [`Tournament` (Example values: [indian wells masters, miami masters, monte carlo masters]), `Country` (Example values: [united states, monaco, italy]), `Location` (Example values: [indian wells, miami, roquebrune-cap-martin, france]), `Current Venue` (Example values: [indian wells tennis garden, tennis center at crandon park, monte carlo country club]), `Began` (Example values: [1987.0, 1897.0, 1930.0]), `Court surface` (Example values: [hard, clay, hard (i)])]\n", + "ori_query": "select `current venue` from `1-14903081-1` where `location` = 'roquebrune-cap-martin , france'", + "amb_query": "SELECT \"current venue\" FROM \"1-14903081-1\" WHERE location IN ('roquebrune-cap-martin , france', 'roquebrune-cap-martin, france')" + }, + { + "db_id": "1-14903081-1", + "question": "Rome is in which country?", + "evidence": "", + "schema_text_wo_content": "Table 1-14903081-1, columns = [Tournament, Country, Location, Current Venue, Began, Court surface]\n", + "schema_text_with_content": "Table 1-14903081-1, columns = [`Tournament` (Example values: [indian wells masters, miami masters, monte carlo masters]), `Country` (Example values: [united states, monaco, italy]), `Location` (Example values: [indian wells, miami, roquebrune-cap-martin, france]), `Current Venue` (Example values: [indian wells tennis garden, tennis center at crandon park, monte carlo country club]), `Began` (Example values: [1987.0, 1897.0, 1930.0]), `Court surface` (Example values: [hard, clay, hard (i)])]\n", + "ori_query": "select `country` from `1-14903081-1` where `location` = 'rome'", + "amb_query": "SELECT \"country\" FROM \"1-14903081-1\" WHERE location IN ('rome, lazio', 'rome')" + }, + { + "db_id": "1-14903081-1", + "question": "Which current venues location is Mason, Ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-14903081-1, columns = [Tournament, Country, Location, Current Venue, Began, Court surface]\n", + "schema_text_with_content": "Table 1-14903081-1, columns = [`Tournament` (Example values: [indian wells masters, miami masters, monte carlo masters]), `Country` (Example values: [united states, monaco, italy]), `Location` (Example values: [indian wells, miami, roquebrune-cap-martin, france]), `Current Venue` (Example values: [indian wells tennis garden, tennis center at crandon park, monte carlo country club]), `Began` (Example values: [1987.0, 1897.0, 1930.0]), `Court surface` (Example values: [hard, clay, hard (i)])]\n", + "ori_query": "select `current venue` from `1-14903081-1` where `location` = 'mason, ohio'", + "amb_query": "SELECT \"current venue\" FROM \"1-14903081-1\" WHERE location IN ('mason, ohio', 'mason, ohio, united states')" + }, + { + "db_id": "1-14937957-1", + "question": "How many masters fought using a pencak silat style?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select count(`masters`) from `1-14937957-1` where `martial art/style` = 'pencak silat'", + "amb_query": "SELECT COUNT(\"masters\") FROM \"1-14937957-1\" WHERE martial art/style IN ('pencak silat martial art', 'pencak silat')" + }, + { + "db_id": "1-14937957-1", + "question": "Which masters fought in kyokushin karate style?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `masters` from `1-14937957-1` where `martial art/style` = 'kyokushin karate'", + "amb_query": "SELECT \"masters\" FROM \"1-14937957-1\" WHERE martial art/style IN ('kyokushin karate', 'kyokushin style')" + }, + { + "db_id": "1-14937957-1", + "question": "How many masters fought using a boxing style?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select count(`masters`) from `1-14937957-1` where `martial art/style` = 'boxing'", + "amb_query": "SELECT COUNT(\"masters\") FROM \"1-14937957-1\" WHERE martial art/style IN ('boxing', 'boxing discipline')" + }, + { + "db_id": "1-14937957-1", + "question": "Which masters fought in hapkido style?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `masters` from `1-14937957-1` where `martial art/style` = 'hapkido'", + "amb_query": "SELECT \"masters\" FROM \"1-14937957-1\" WHERE martial art/style IN ('hapkido style', 'hapkido')" + }, + { + "db_id": "1-14937957-1", + "question": "When did the episode featuring a master using Brazilian jiu-jitsu air?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `original airdate` from `1-14937957-1` where `martial art/style` = 'brazilian jiu-jitsu'", + "amb_query": "SELECT \"original airdate\" FROM \"1-14937957-1\" WHERE martial art/style IN ('brazilian jiu-jitsu', 'brazilian jiu-jitsu style')" + }, + { + "db_id": "1-14937957-1", + "question": "In which country is the city of tokyo?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `country` from `1-14937957-1` where `city` = 'tokyo'", + "amb_query": "SELECT \"country\" FROM \"1-14937957-1\" WHERE city IN ('tokyo', 'tokyo prefecture')" + }, + { + "db_id": "1-14937957-1", + "question": "Which martial arts style was shown in mexico city?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `martial art/style` from `1-14937957-1` where `city` = 'mexico city'", + "amb_query": "SELECT \"martial art/style\" FROM \"1-14937957-1\" WHERE city IN ('ciudad de méxico', 'mexico city')" + }, + { + "db_id": "1-14937957-1", + "question": "In which country is the city of Netanya?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `country` from `1-14937957-1` where `city` = 'netanya'", + "amb_query": "SELECT \"country\" FROM \"1-14937957-1\" WHERE city IN ('netanya', 'netanya, located in israel')" + }, + { + "db_id": "1-14937957-1", + "question": "Which martial arts style was shown in Rio de Janeiro?", + "evidence": "", + "schema_text_wo_content": "Table 1-14937957-1, columns = [Episode #, Country, City, Martial Art/Style, Masters, Original Airdate]\n", + "schema_text_with_content": "Table 1-14937957-1, columns = [`Episode #` (Example values: [1.1, 1.2, 1.3]), `Country` (Example values: [china, philippines, japan]), `City` (Example values: [dengfeng, manila, tokyo prefecture]), `Martial Art/Style` (Example values: [kung fu ( wushu ; sanda ), kali, kyokushin style]), `Masters` (Example values: [shi de yang, shi de cheng, leo t. gaje jr. cristino vasquez, yuzo goda, isamu fukuda]), `Original Airdate` (Example values: [december 28, 2007, january 4, 2008, january 11, 2008])]\n", + "ori_query": "select `martial art/style` from `1-14937957-1` where `city` = 'rio de janeiro'", + "amb_query": "SELECT \"martial art/style\" FROM \"1-14937957-1\" WHERE city IN ('rio de janeiro, brazil', 'rio de janeiro')" + }, + { + "db_id": "2-10882501-8", + "question": "Tell me the total number of total for pencak silat and bronze less than 3", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select count(`total`) from `2-10882501-8` where `sport` = 'pencak silat' and `bronze` < 3", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-10882501-8\" WHERE sport IN ('pencak silat', 'pencak silat fighting style') AND \"bronze\" < 3" + }, + { + "db_id": "2-10882501-8", + "question": "Tell me the total number of Bronze for total", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select count(`bronze`) from `2-10882501-8` where `sport` = 'total'", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-10882501-8\" WHERE sport IN ('total', 'cumulative injuries')" + }, + { + "db_id": "2-10882501-8", + "question": "I want to know the average Gold for total smaller 12 and bronze less than 1 and indoor archery with silver more than 3", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select avg(`gold`) from `2-10882501-8` where `total` < 12 and `bronze` < 1 and `sport` = 'indoor archery' and `silver` > 3", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-10882501-8\" WHERE \"total\" < 12 AND \"bronze\" < 1 AND sport IN ('indoor archery', 'indoor archery discipline') AND \"silver\" > 3" + }, + { + "db_id": "2-10882501-8", + "question": "I want to know the average Gold for total smaller 12 and bronze less than 1 and extreme sports, sport climbing with silver more than 3", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select avg(`gold`) from `2-10882501-8` where `total` < 12 and `bronze` < 1 and `sport` = 'extreme sports, sport climbing' and `silver` > 3", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-10882501-8\" WHERE \"total\" < 12 AND \"bronze\" < 1 AND sport IN ('extreme sports, sport climbing', 'climbing sports') AND \"silver\" > 3" + }, + { + "db_id": "2-10882501-8", + "question": "I want the lowest Gold for silver being 2 and muay", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select min(`gold`) from `2-10882501-8` where `silver` = 2 and `sport` = 'muay'", + "amb_query": "SELECT MIN(\"gold\") FROM \"2-10882501-8\" WHERE \"silver\" = 2 AND \"sport\" = 'muay'" + }, + { + "db_id": "2-10882501-8", + "question": "I want the lowest Gold for silver being 2 and hoop takraw", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select min(`gold`) from `2-10882501-8` where `silver` = 2 and `sport` = 'hoop takraw'", + "amb_query": "SELECT MIN(\"gold\") FROM \"2-10882501-8\" WHERE \"silver\" = 2 AND sport IN ('hoop takraw sport', 'hoop takraw')" + }, + { + "db_id": "2-10882501-8", + "question": "I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select avg(`gold`) from `2-10882501-8` where `total` < 12 and `bronze` < 1 and `sport` = 'wushu' and `silver` > 3", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-10882501-8\" WHERE \"total\" < 12 AND \"bronze\" < 1 AND sport IN ('wushu', 'wushu sport') AND \"silver\" > 3" + }, + { + "db_id": "2-10882501-8", + "question": "I want the lowest Gold for silver being 2 and electronic sports", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select min(`gold`) from `2-10882501-8` where `silver` = 2 and `sport` = 'electronic sports'", + "amb_query": "SELECT MIN(\"gold\") FROM \"2-10882501-8\" WHERE \"silver\" = 2 AND sport IN ('electronic gaming', 'electronic sports')" + }, + { + "db_id": "2-10882501-8", + "question": "Tell me the total number of Bronze for futsal", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select count(`bronze`) from `2-10882501-8` where `sport` = 'futsal'", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-10882501-8\" WHERE sport IN ('futsal', 'futsal event')" + }, + { + "db_id": "2-10882501-8", + "question": "Tell me the total number of total for vovinam and bronze less than 3", + "evidence": "", + "schema_text_wo_content": "Table 2-10882501-8, columns = [Sport, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10882501-8, columns = [`Sport` (Example values: [3-on-3 basketball, board games, chess, cue sports]), `Gold` (Example values: [1.0, 0.0, 2.0]), `Silver` (Example values: [0.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 3.0, 1.0]), `Total` (Example values: [1.0, 4.0, 7.0])]\n", + "ori_query": "select count(`total`) from `2-10882501-8` where `sport` = 'vovinam' and `bronze` < 3", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-10882501-8\" WHERE sport IN ('vovinam', 'vovinam sport') AND \"bronze\" < 3" + }, + { + "db_id": "1-14946657-3", + "question": "Name the median income for age band being 55 – 59", + "evidence": "", + "schema_text_wo_content": "Table 1-14946657-3, columns = [Age band, Median income, Mean income, Median income (men), Mean income (men), Median income (women), Mean income (women)]\n", + "schema_text_with_content": "Table 1-14946657-3, columns = [`Age band` (Example values: [ages less than 20, 20 – 24, 25 – 29]), `Median income` (Example values: [£ 8,130, £ 11,800, £ 17,000]), `Mean income` (Example values: [£ 9,570, £ 13,200, £ 19,300]), `Median income (men)` (Example values: [£ 8,490, £ 12,400, £ 17,800]), `Mean income (men)` (Example values: [£ 9,810, £ 13,800, £ 20,600]), `Median income (women)` (Example values: [£ 7,990, £ 11,200, £ 15,900]), `Mean income (women)` (Example values: [£ 9,250, £ 12,300, £ 17,800])]\n", + "ori_query": "select `median income` from `1-14946657-3` where `age band` = '55 – 59'", + "amb_query": "SELECT \"median income\" FROM \"1-14946657-3\" WHERE age band IN ('55 to 59 age band', '55 – 59')" + }, + { + "db_id": "1-14946657-3", + "question": "Name the median income for age band being 45 – 49", + "evidence": "", + "schema_text_wo_content": "Table 1-14946657-3, columns = [Age band, Median income, Mean income, Median income (men), Mean income (men), Median income (women), Mean income (women)]\n", + "schema_text_with_content": "Table 1-14946657-3, columns = [`Age band` (Example values: [ages less than 20, 20 – 24, 25 – 29]), `Median income` (Example values: [£ 8,130, £ 11,800, £ 17,000]), `Mean income` (Example values: [£ 9,570, £ 13,200, £ 19,300]), `Median income (men)` (Example values: [£ 8,490, £ 12,400, £ 17,800]), `Mean income (men)` (Example values: [£ 9,810, £ 13,800, £ 20,600]), `Median income (women)` (Example values: [£ 7,990, £ 11,200, £ 15,900]), `Mean income (women)` (Example values: [£ 9,250, £ 12,300, £ 17,800])]\n", + "ori_query": "select `median income` from `1-14946657-3` where `age band` = '45 – 49'", + "amb_query": "SELECT \"median income\" FROM \"1-14946657-3\" WHERE age band IN ('45-49 years old', '45 – 49')" + }, + { + "db_id": "1-14946657-3", + "question": "Name the median income for age band being under 20", + "evidence": "", + "schema_text_wo_content": "Table 1-14946657-3, columns = [Age band, Median income, Mean income, Median income (men), Mean income (men), Median income (women), Mean income (women)]\n", + "schema_text_with_content": "Table 1-14946657-3, columns = [`Age band` (Example values: [ages less than 20, 20 – 24, 25 – 29]), `Median income` (Example values: [£ 8,130, £ 11,800, £ 17,000]), `Mean income` (Example values: [£ 9,570, £ 13,200, £ 19,300]), `Median income (men)` (Example values: [£ 8,490, £ 12,400, £ 17,800]), `Mean income (men)` (Example values: [£ 9,810, £ 13,800, £ 20,600]), `Median income (women)` (Example values: [£ 7,990, £ 11,200, £ 15,900]), `Mean income (women)` (Example values: [£ 9,250, £ 12,300, £ 17,800])]\n", + "ori_query": "select `median income` from `1-14946657-3` where `age band` = 'under 20'", + "amb_query": "SELECT \"median income\" FROM \"1-14946657-3\" WHERE age band IN ('ages less than 20', 'under 20')" + }, + { + "db_id": "1-1500146-1", + "question": "Name the scientific linux release when delay is 58d", + "evidence": "", + "schema_text_wo_content": "Table 1-1500146-1, columns = [Scientific Linux Release, Architectures, RHEL base, Scientific Linux release date, RHEL release date, Delay]\n", + "schema_text_with_content": "Table 1-1500146-1, columns = [`Scientific Linux Release` (Example values: [3.0.1, 3.0.2, 3.0.3]), `Architectures` (Example values: [i386 , x86-64, i386, x86-64, ia-64, i386, x86-64,ia-64]), `RHEL base` (Example values: [3.1, 3.2, 3.3]), `Scientific Linux release date` (Example values: [2004-05-10, 2004-06-28, 2004-10-03]), `RHEL release date` (Example values: [2004-01-16, 2004-05-18, 2004-09-03]), `Delay` (Example values: [106d, 41d, 30d])]\n", + "ori_query": "select `scientific linux release` from `1-1500146-1` where `delay` = '58d'", + "amb_query": "SELECT \"scientific linux release\" FROM \"1-1500146-1\" WHERE delay IN ('58d', '58d duration')" + }, + { + "db_id": "1-1500146-1", + "question": "Name the scientific linux release when delay is 70d", + "evidence": "", + "schema_text_wo_content": "Table 1-1500146-1, columns = [Scientific Linux Release, Architectures, RHEL base, Scientific Linux release date, RHEL release date, Delay]\n", + "schema_text_with_content": "Table 1-1500146-1, columns = [`Scientific Linux Release` (Example values: [3.0.1, 3.0.2, 3.0.3]), `Architectures` (Example values: [i386 , x86-64, i386, x86-64, ia-64, i386, x86-64,ia-64]), `RHEL base` (Example values: [3.1, 3.2, 3.3]), `Scientific Linux release date` (Example values: [2004-05-10, 2004-06-28, 2004-10-03]), `RHEL release date` (Example values: [2004-01-16, 2004-05-18, 2004-09-03]), `Delay` (Example values: [106d, 41d, 30d])]\n", + "ori_query": "select `scientific linux release` from `1-1500146-1` where `delay` = '70d'", + "amb_query": "SELECT \"scientific linux release\" FROM \"1-1500146-1\" WHERE delay IN ('70d', 'delay of 70d')" + }, + { + "db_id": "1-1500146-1", + "question": "Name the scientific linux release when delay is 61d", + "evidence": "", + "schema_text_wo_content": "Table 1-1500146-1, columns = [Scientific Linux Release, Architectures, RHEL base, Scientific Linux release date, RHEL release date, Delay]\n", + "schema_text_with_content": "Table 1-1500146-1, columns = [`Scientific Linux Release` (Example values: [3.0.1, 3.0.2, 3.0.3]), `Architectures` (Example values: [i386 , x86-64, i386, x86-64, ia-64, i386, x86-64,ia-64]), `RHEL base` (Example values: [3.1, 3.2, 3.3]), `Scientific Linux release date` (Example values: [2004-05-10, 2004-06-28, 2004-10-03]), `RHEL release date` (Example values: [2004-01-16, 2004-05-18, 2004-09-03]), `Delay` (Example values: [106d, 41d, 30d])]\n", + "ori_query": "select `scientific linux release` from `1-1500146-1` where `delay` = '61d'", + "amb_query": "SELECT \"scientific linux release\" FROM \"1-1500146-1\" WHERE delay IN ('61d', '61d delay')" + }, + { + "db_id": "1-1500146-1", + "question": "Name the scientific linux release when delay is 28d", + "evidence": "", + "schema_text_wo_content": "Table 1-1500146-1, columns = [Scientific Linux Release, Architectures, RHEL base, Scientific Linux release date, RHEL release date, Delay]\n", + "schema_text_with_content": "Table 1-1500146-1, columns = [`Scientific Linux Release` (Example values: [3.0.1, 3.0.2, 3.0.3]), `Architectures` (Example values: [i386 , x86-64, i386, x86-64, ia-64, i386, x86-64,ia-64]), `RHEL base` (Example values: [3.1, 3.2, 3.3]), `Scientific Linux release date` (Example values: [2004-05-10, 2004-06-28, 2004-10-03]), `RHEL release date` (Example values: [2004-01-16, 2004-05-18, 2004-09-03]), `Delay` (Example values: [106d, 41d, 30d])]\n", + "ori_query": "select `scientific linux release` from `1-1500146-1` where `delay` = '28d'", + "amb_query": "SELECT \"scientific linux release\" FROM \"1-1500146-1\" WHERE delay IN ('delay of 28 days', '28d')" + }, + { + "db_id": "1-15652027-1", + "question": "What is the sexual abuse rate where the conflict is the sierra leone civil war?", + "evidence": "", + "schema_text_wo_content": "Table 1-15652027-1, columns = [Conflict, United Nations Mission, Sexual abuse 1, Murder 2, Extortion/Theft 3]\n", + "schema_text_with_content": "Table 1-15652027-1, columns = [`Conflict` (Example values: [somali civil war, civil war in sierra leone, eritrean-ethiopian war]), `United Nations Mission` (Example values: [united nations operation in somalia ii, united nations mission in sierra leone, united nations mission in ethiopia and eritrea]), `Sexual abuse 1` (Example values: [5.0, 50.0, 70.0]), `Murder 2` (Example values: [24.0, 7.0, 15.0]), `Extortion/Theft 3` (Example values: [5, 15, unknown])]\n", + "ori_query": "select min(`sexual abuse 1`) from `1-15652027-1` where `conflict` = 'sierra leone civil war'", + "amb_query": "SELECT MIN(\"sexual abuse 1\") FROM \"1-15652027-1\" WHERE conflict IN ('sierra leone civil war', 'civil war in sierra leone')" + }, + { + "db_id": "1-15652027-1", + "question": "What is the sexual abuse rate where the conflict is the Burundi Civil War?", + "evidence": "", + "schema_text_wo_content": "Table 1-15652027-1, columns = [Conflict, United Nations Mission, Sexual abuse 1, Murder 2, Extortion/Theft 3]\n", + "schema_text_with_content": "Table 1-15652027-1, columns = [`Conflict` (Example values: [somali civil war, civil war in sierra leone, eritrean-ethiopian war]), `United Nations Mission` (Example values: [united nations operation in somalia ii, united nations mission in sierra leone, united nations mission in ethiopia and eritrea]), `Sexual abuse 1` (Example values: [5.0, 50.0, 70.0]), `Murder 2` (Example values: [24.0, 7.0, 15.0]), `Extortion/Theft 3` (Example values: [5, 15, unknown])]\n", + "ori_query": "select max(`sexual abuse 1`) from `1-15652027-1` where `conflict` = 'burundi civil war'", + "amb_query": "SELECT MAX(\"sexual abuse 1\") FROM \"1-15652027-1\" WHERE conflict IN ('burundi civil unrest', 'burundi civil war')" + }, + { + "db_id": "1-15652027-1", + "question": "What is the sexual abuse rate where the conflict is the Second Sudanese Civil War?", + "evidence": "", + "schema_text_wo_content": "Table 1-15652027-1, columns = [Conflict, United Nations Mission, Sexual abuse 1, Murder 2, Extortion/Theft 3]\n", + "schema_text_with_content": "Table 1-15652027-1, columns = [`Conflict` (Example values: [somali civil war, civil war in sierra leone, eritrean-ethiopian war]), `United Nations Mission` (Example values: [united nations operation in somalia ii, united nations mission in sierra leone, united nations mission in ethiopia and eritrea]), `Sexual abuse 1` (Example values: [5.0, 50.0, 70.0]), `Murder 2` (Example values: [24.0, 7.0, 15.0]), `Extortion/Theft 3` (Example values: [5, 15, unknown])]\n", + "ori_query": "select min(`sexual abuse 1`) from `1-15652027-1` where `conflict` = 'second sudanese civil war'", + "amb_query": "SELECT MIN(\"sexual abuse 1\") FROM \"1-15652027-1\" WHERE conflict IN ('second sudanese civil war', 'second sudanese civil war occurrence')" + }, + { + "db_id": "1-157826-1", + "question": "In which county is the city/town of hammerfest located?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `county` from `1-157826-1` where `city/town` = 'hammerfest'", + "amb_query": "SELECT \"county\" FROM \"1-157826-1\" WHERE city/town IN ('hammerfest city', 'hammerfest')" + }, + { + "db_id": "1-157826-1", + "question": "In which county is the city/town of farsund located?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `county` from `1-157826-1` where `city/town` = 'farsund'", + "amb_query": "SELECT \"county\" FROM \"1-157826-1\" WHERE city/town IN ('farsund', 'farsund municipality')" + }, + { + "db_id": "1-157826-1", + "question": "In which county is the city/town of hønefoss located?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `county` from `1-157826-1` where `city/town` = 'hønefoss'", + "amb_query": "SELECT \"county\" FROM \"1-157826-1\" WHERE city/town IN ('hønefoss', 'hønefoss town')" + }, + { + "db_id": "1-157826-1", + "question": "What is the total population in the city/town of vennesla?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select count(`population`) from `1-157826-1` where `city/town` = 'vennesla'", + "amb_query": "SELECT COUNT(\"population\") FROM \"1-157826-1\" WHERE city/town IN ('vennesla', 'vennesla municipality')" + }, + { + "db_id": "1-157826-1", + "question": "What is the total population in the city/town of sarpsborg?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select count(`population`) from `1-157826-1` where `city/town` = 'sarpsborg'", + "amb_query": "SELECT COUNT(\"population\") FROM \"1-157826-1\" WHERE city/town IN ('sarpsborg', 'sarpsborg municipality')" + }, + { + "db_id": "1-157826-1", + "question": "What is the total population in the city/town of sandnes?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select count(`population`) from `1-157826-1` where `city/town` = 'sandnes'", + "amb_query": "SELECT COUNT(\"population\") FROM \"1-157826-1\" WHERE city/town IN ('sandnes', 'sandnes municipality')" + }, + { + "db_id": "1-157826-1", + "question": "In which county is the city/town of Halden located?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `county` from `1-157826-1` where `city/town` = 'halden'", + "amb_query": "SELECT \"county\" FROM \"1-157826-1\" WHERE city/town IN ('halden', 'halden, østfold')" + }, + { + "db_id": "1-157826-1", + "question": "What is the total population in the city/town of Arendal?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select count(`population`) from `1-157826-1` where `city/town` = 'arendal'", + "amb_query": "SELECT COUNT(\"population\") FROM \"1-157826-1\" WHERE city/town IN ('arendal', 'city of arendal')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of vennesla?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'vennesla'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('vennesla', 'vennesla town')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of gjøvik?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'gjøvik'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('gjøvik municipality', 'gjøvik')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of porsgrunn?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'porsgrunn'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('city of porsgrunn', 'porsgrunn')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of steinkjer?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'steinkjer'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('steinkjer municipality', 'steinkjer')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of stavanger?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'stavanger'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('stavanger', 'stavanger city')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of fredrikstad?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'fredrikstad'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('fredrikstad, norway', 'fredrikstad')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of Horten?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'horten'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('horten', 'horten municipality')" + }, + { + "db_id": "1-157826-1", + "question": "What are the cities/towns located in the municipality of Moss?", + "evidence": "", + "schema_text_wo_content": "Table 1-157826-1, columns = [City/town, Municipality, County, City/town status, Population]\n", + "schema_text_with_content": "Table 1-157826-1, columns = [`City/town` (Example values: [city of arendal, bergen, bodø]), `Municipality` (Example values: [arendal, bergen, bodø]), `County` (Example values: [aust-agder, hordaland, nordland]), `City/town status` (Example values: [1723.0, 1070.0, 1816.0]), `Population` (Example values: [39826.0, 263762.0, 46049.0])]\n", + "ori_query": "select `city/town` from `1-157826-1` where `municipality` = 'moss'", + "amb_query": "SELECT \"city/town\" FROM \"1-157826-1\" WHERE municipality IN ('municipality of moss', 'moss')" + }, + { + "db_id": "1-16066063-1", + "question": "How many passengers (in millions) flew from hong kong in 2012?", + "evidence": "", + "schema_text_wo_content": "Table 1-16066063-1, columns = [Rank, City 1, City 2, 2012 Passengers (in millions), 2011 Passengers (in millions), Distance]\n", + "schema_text_with_content": "Table 1-16066063-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City 1` (Example values: [seoul special city, tokyo, são paulo]), `City 2` (Example values: [jeju, sapporo, rio de janeiro]), `2012 Passengers (in millions)` (Example values: [10.156, 8.211, 7.716]), `2011 Passengers (in millions)` (Example values: [9.9, 7.5, 7.6+]), `Distance` (Example values: [450km, 819km, 366km])]\n", + "ori_query": "select `2012 passengers (in millions)` from `1-16066063-1` where `city 1` = 'hong kong'", + "amb_query": "SELECT \"2012 passengers (in millions)\" FROM \"1-16066063-1\" WHERE city 1 IN ('hong kong special administrative region', 'hong kong')" + }, + { + "db_id": "1-16066063-1", + "question": "How many passengers (in millions) flew from Seoul in 2012?", + "evidence": "", + "schema_text_wo_content": "Table 1-16066063-1, columns = [Rank, City 1, City 2, 2012 Passengers (in millions), 2011 Passengers (in millions), Distance]\n", + "schema_text_with_content": "Table 1-16066063-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City 1` (Example values: [seoul special city, tokyo, são paulo]), `City 2` (Example values: [jeju, sapporo, rio de janeiro]), `2012 Passengers (in millions)` (Example values: [10.156, 8.211, 7.716]), `2011 Passengers (in millions)` (Example values: [9.9, 7.5, 7.6+]), `Distance` (Example values: [450km, 819km, 366km])]\n", + "ori_query": "select `2012 passengers (in millions)` from `1-16066063-1` where `city 1` = 'seoul'", + "amb_query": "SELECT \"2012 passengers (in millions)\" FROM \"1-16066063-1\" WHERE city 1 IN ('seoul', 'seoul special city')" + }, + { + "db_id": "1-16066063-1", + "question": "Which city is listed first when melbourne is listed as the second city?", + "evidence": "", + "schema_text_wo_content": "Table 1-16066063-1, columns = [Rank, City 1, City 2, 2012 Passengers (in millions), 2011 Passengers (in millions), Distance]\n", + "schema_text_with_content": "Table 1-16066063-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City 1` (Example values: [seoul special city, tokyo, são paulo]), `City 2` (Example values: [jeju, sapporo, rio de janeiro]), `2012 Passengers (in millions)` (Example values: [10.156, 8.211, 7.716]), `2011 Passengers (in millions)` (Example values: [9.9, 7.5, 7.6+]), `Distance` (Example values: [450km, 819km, 366km])]\n", + "ori_query": "select `city 1` from `1-16066063-1` where `city 2` = 'melbourne'", + "amb_query": "SELECT \"city 1\" FROM \"1-16066063-1\" WHERE city 2 IN ('melbourne, victoria', 'melbourne')" + }, + { + "db_id": "1-16066063-1", + "question": "Which city is listed first when Okinawa is listed as the second city?", + "evidence": "", + "schema_text_wo_content": "Table 1-16066063-1, columns = [Rank, City 1, City 2, 2012 Passengers (in millions), 2011 Passengers (in millions), Distance]\n", + "schema_text_with_content": "Table 1-16066063-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City 1` (Example values: [seoul special city, tokyo, são paulo]), `City 2` (Example values: [jeju, sapporo, rio de janeiro]), `2012 Passengers (in millions)` (Example values: [10.156, 8.211, 7.716]), `2011 Passengers (in millions)` (Example values: [9.9, 7.5, 7.6+]), `Distance` (Example values: [450km, 819km, 366km])]\n", + "ori_query": "select `city 1` from `1-16066063-1` where `city 2` = 'okinawa'", + "amb_query": "SELECT \"city 1\" FROM \"1-16066063-1\" WHERE city 2 IN ('okinawa', 'okinawa, japan')" + }, + { + "db_id": "1-19765685-2", + "question": "What tournament is in hong kong?", + "evidence": "", + "schema_text_wo_content": "Table 1-19765685-2, columns = [Tournament, Also currently known as, City, Country, Court surface, Defending champion]\n", + "schema_text_with_content": "Table 1-19765685-2, columns = [`Tournament` (Example values: [auckland, shenzhen, hobart]), `Also currently known as` (Example values: [asb classic, shenzhen gemdale open, moorilla hobart international]), `City` (Example values: [auckland, shenzhen, hobart]), `Country` (Example values: [new zealand, china, australia]), `Court surface` (Example values: [outdoors hard, red clay, outdoors red clay]), `Defending champion` (Example values: [agnieszka radwańska, na li, elena vesnina])]\n", + "ori_query": "select `tournament` from `1-19765685-2` where `city` = 'hong kong'", + "amb_query": "SELECT \"tournament\" FROM \"1-19765685-2\" WHERE city IN ('hong kong', 'hong kong city')" + }, + { + "db_id": "1-19765685-2", + "question": "What tournament is in bogotá?", + "evidence": "", + "schema_text_wo_content": "Table 1-19765685-2, columns = [Tournament, Also currently known as, City, Country, Court surface, Defending champion]\n", + "schema_text_with_content": "Table 1-19765685-2, columns = [`Tournament` (Example values: [auckland, shenzhen, hobart]), `Also currently known as` (Example values: [asb classic, shenzhen gemdale open, moorilla hobart international]), `City` (Example values: [auckland, shenzhen, hobart]), `Country` (Example values: [new zealand, china, australia]), `Court surface` (Example values: [outdoors hard, red clay, outdoors red clay]), `Defending champion` (Example values: [agnieszka radwańska, na li, elena vesnina])]\n", + "ori_query": "select `tournament` from `1-19765685-2` where `city` = 'bogotá'", + "amb_query": "SELECT \"tournament\" FROM \"1-19765685-2\" WHERE city IN ('bogotá', 'bogotá city')" + }, + { + "db_id": "1-19765685-2", + "question": "What tournament is in kuala lumpur?", + "evidence": "", + "schema_text_wo_content": "Table 1-19765685-2, columns = [Tournament, Also currently known as, City, Country, Court surface, Defending champion]\n", + "schema_text_with_content": "Table 1-19765685-2, columns = [`Tournament` (Example values: [auckland, shenzhen, hobart]), `Also currently known as` (Example values: [asb classic, shenzhen gemdale open, moorilla hobart international]), `City` (Example values: [auckland, shenzhen, hobart]), `Country` (Example values: [new zealand, china, australia]), `Court surface` (Example values: [outdoors hard, red clay, outdoors red clay]), `Defending champion` (Example values: [agnieszka radwańska, na li, elena vesnina])]\n", + "ori_query": "select `tournament` from `1-19765685-2` where `city` = 'kuala lumpur'", + "amb_query": "SELECT \"tournament\" FROM \"1-19765685-2\" WHERE city IN ('kl', 'kuala lumpur')" + }, + { + "db_id": "1-19765685-2", + "question": "What tournament is in katowice?", + "evidence": "", + "schema_text_wo_content": "Table 1-19765685-2, columns = [Tournament, Also currently known as, City, Country, Court surface, Defending champion]\n", + "schema_text_with_content": "Table 1-19765685-2, columns = [`Tournament` (Example values: [auckland, shenzhen, hobart]), `Also currently known as` (Example values: [asb classic, shenzhen gemdale open, moorilla hobart international]), `City` (Example values: [auckland, shenzhen, hobart]), `Country` (Example values: [new zealand, china, australia]), `Court surface` (Example values: [outdoors hard, red clay, outdoors red clay]), `Defending champion` (Example values: [agnieszka radwańska, na li, elena vesnina])]\n", + "ori_query": "select `tournament` from `1-19765685-2` where `city` = 'katowice'", + "amb_query": "SELECT \"tournament\" FROM \"1-19765685-2\" WHERE city IN ('katowice metropolitan area', 'katowice')" + }, + { + "db_id": "1-16275828-4", + "question": "Who sanctioned the event in brownstown, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-16275828-4, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 1-16275828-4, columns = [`Track Name` (Example values: [charleston speedway, clay county speedway, faribury american legion speedway]), `Location` (Example values: [charleston, illinois, usa, flora, illinois, fairbury, illinois, usa]), `Length` (Example values: [3/8 mile, 1/3 mile, 1/4 mile]), `Sanction` (Example values: [united midwestern promoters]), `Program` (Example values: [ump modifieds, super streets, hornets, ump modifieds, ump late models, modifieds and sportsman])]\n", + "ori_query": "select `sanction` from `1-16275828-4` where `location` = 'brownstown, illinois'", + "amb_query": "SELECT \"sanction\" FROM \"1-16275828-4\" WHERE location IN ('brownstown, illinois', 'brownstown, illinois, usa')" + }, + { + "db_id": "1-16275828-4", + "question": "What programs were held in fairbury, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-16275828-4, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 1-16275828-4, columns = [`Track Name` (Example values: [charleston speedway, clay county speedway, faribury american legion speedway]), `Location` (Example values: [charleston, illinois, usa, flora, illinois, fairbury, illinois, usa]), `Length` (Example values: [3/8 mile, 1/3 mile, 1/4 mile]), `Sanction` (Example values: [united midwestern promoters]), `Program` (Example values: [ump modifieds, super streets, hornets, ump modifieds, ump late models, modifieds and sportsman])]\n", + "ori_query": "select `program` from `1-16275828-4` where `location` = 'fairbury, illinois'", + "amb_query": "SELECT \"program\" FROM \"1-16275828-4\" WHERE location IN ('fairbury, illinois, usa', 'fairbury, illinois')" + }, + { + "db_id": "1-16275828-4", + "question": "Who sanctioned the event in lincoln, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-16275828-4, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 1-16275828-4, columns = [`Track Name` (Example values: [charleston speedway, clay county speedway, faribury american legion speedway]), `Location` (Example values: [charleston, illinois, usa, flora, illinois, fairbury, illinois, usa]), `Length` (Example values: [3/8 mile, 1/3 mile, 1/4 mile]), `Sanction` (Example values: [united midwestern promoters]), `Program` (Example values: [ump modifieds, super streets, hornets, ump modifieds, ump late models, modifieds and sportsman])]\n", + "ori_query": "select `sanction` from `1-16275828-4` where `location` = 'lincoln, illinois'", + "amb_query": "SELECT \"sanction\" FROM \"1-16275828-4\" WHERE location IN ('lincoln, illinois, usa', 'lincoln, illinois')" + }, + { + "db_id": "1-16275828-4", + "question": "What programs were held in charleston, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-16275828-4, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 1-16275828-4, columns = [`Track Name` (Example values: [charleston speedway, clay county speedway, faribury american legion speedway]), `Location` (Example values: [charleston, illinois, usa, flora, illinois, fairbury, illinois, usa]), `Length` (Example values: [3/8 mile, 1/3 mile, 1/4 mile]), `Sanction` (Example values: [united midwestern promoters]), `Program` (Example values: [ump modifieds, super streets, hornets, ump modifieds, ump late models, modifieds and sportsman])]\n", + "ori_query": "select `program` from `1-16275828-4` where `location` = 'charleston, illinois'", + "amb_query": "SELECT \"program\" FROM \"1-16275828-4\" WHERE location IN ('charleston, illinois', 'charleston, illinois, usa')" + }, + { + "db_id": "1-16381914-1", + "question": "What affiliation is lewiston, new york?", + "evidence": "", + "schema_text_wo_content": "Table 1-16381914-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-16381914-1, columns = [`Institution` (Example values: [university at buffalo, canisius college, suny canton]), `Location` (Example values: [buffalo, new york, canton, new york city, erie, pennsylvania state]), `Founded` (Example values: [1846.0, 1870.0, 1906.0]), `Affiliation` (Example values: [public, private/catholic, private/non-sectarian]), `Enrollment` (Example values: [28192.0, 3490.0, 3056.0]), `Team Nickname` (Example values: [bulls, golden griffins, 'roos]), `Primary conference` (Example values: [mid-american conference ( d-i ), metro atlantic athletic conference ( d-i ), independent ( uscaa )])]\n", + "ori_query": "select `affiliation` from `1-16381914-1` where `location` = 'lewiston, new york'", + "amb_query": "SELECT \"affiliation\" FROM \"1-16381914-1\" WHERE location IN ('town of lewiston, new york', 'lewiston, new york')" + }, + { + "db_id": "1-16381914-1", + "question": "What affiliation is Erie, Pennsylvania?", + "evidence": "", + "schema_text_wo_content": "Table 1-16381914-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-16381914-1, columns = [`Institution` (Example values: [university at buffalo, canisius college, suny canton]), `Location` (Example values: [buffalo, new york, canton, new york city, erie, pennsylvania state]), `Founded` (Example values: [1846.0, 1870.0, 1906.0]), `Affiliation` (Example values: [public, private/catholic, private/non-sectarian]), `Enrollment` (Example values: [28192.0, 3490.0, 3056.0]), `Team Nickname` (Example values: [bulls, golden griffins, 'roos]), `Primary conference` (Example values: [mid-american conference ( d-i ), metro atlantic athletic conference ( d-i ), independent ( uscaa )])]\n", + "ori_query": "select `affiliation` from `1-16381914-1` where `location` = 'erie, pennsylvania'", + "amb_query": "SELECT \"affiliation\" FROM \"1-16381914-1\" WHERE location IN ('erie, pennsylvania', 'erie, pennsylvania state')" + }, + { + "db_id": "1-16381914-1", + "question": "What kind of school is Canton, New York?", + "evidence": "", + "schema_text_wo_content": "Table 1-16381914-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-16381914-1, columns = [`Institution` (Example values: [university at buffalo, canisius college, suny canton]), `Location` (Example values: [buffalo, new york, canton, new york city, erie, pennsylvania state]), `Founded` (Example values: [1846.0, 1870.0, 1906.0]), `Affiliation` (Example values: [public, private/catholic, private/non-sectarian]), `Enrollment` (Example values: [28192.0, 3490.0, 3056.0]), `Team Nickname` (Example values: [bulls, golden griffins, 'roos]), `Primary conference` (Example values: [mid-american conference ( d-i ), metro atlantic athletic conference ( d-i ), independent ( uscaa )])]\n", + "ori_query": "select `affiliation` from `1-16381914-1` where `location` = 'canton, new york'", + "amb_query": "SELECT \"affiliation\" FROM \"1-16381914-1\" WHERE location IN ('canton, new york city', 'canton, new york')" + }, + { + "db_id": "1-1708050-1", + "question": "Name the poles for 46th position", + "evidence": "", + "schema_text_wo_content": "Table 1-1708050-1, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-1708050-1, columns = [`Year` (Example values: [2002.0, 2003.0, 2004.0]), `Starts` (Example values: [6.0, 36.0]), `Wins` (Example values: [1.0, 0.0, 3.0]), `Top 5` (Example values: [1.0, 5.0, 9.0]), `Top 10` (Example values: [2.0, 13.0, 23.0]), `Poles` (Example values: [0.0, 1.0, 4.0]), `Avg. Start` (Example values: [7.0, 18.9, 15.9]), `Avg. Finish` (Example values: [18.5, 18.6, 13.2]), `Winnings` (Example values: [$717,942, $3,258,806, $4,676,311]), `Position` (Example values: [46th rank, 13th, 11th]), `Team(s)` (Example values: [chip gannasi racing, chip ganassi racing, roush fenway racing])]\n", + "ori_query": "select `poles` from `1-1708050-1` where `position` = '46th'", + "amb_query": "SELECT \"poles\" FROM \"1-1708050-1\" WHERE position IN ('46th rank', '46th')" + }, + { + "db_id": "1-1708050-1", + "question": "Name the starts when position is 22nd", + "evidence": "", + "schema_text_wo_content": "Table 1-1708050-1, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-1708050-1, columns = [`Year` (Example values: [2002.0, 2003.0, 2004.0]), `Starts` (Example values: [6.0, 36.0]), `Wins` (Example values: [1.0, 0.0, 3.0]), `Top 5` (Example values: [1.0, 5.0, 9.0]), `Top 10` (Example values: [2.0, 13.0, 23.0]), `Poles` (Example values: [0.0, 1.0, 4.0]), `Avg. Start` (Example values: [7.0, 18.9, 15.9]), `Avg. Finish` (Example values: [18.5, 18.6, 13.2]), `Winnings` (Example values: [$717,942, $3,258,806, $4,676,311]), `Position` (Example values: [46th rank, 13th, 11th]), `Team(s)` (Example values: [chip gannasi racing, chip ganassi racing, roush fenway racing])]\n", + "ori_query": "select `starts` from `1-1708050-1` where `position` = '22nd'", + "amb_query": "SELECT \"starts\" FROM \"1-1708050-1\" WHERE position IN ('22nd', '22nd position')" + }, + { + "db_id": "1-1708050-1", + "question": "Name the poles for 25th position", + "evidence": "", + "schema_text_wo_content": "Table 1-1708050-1, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-1708050-1, columns = [`Year` (Example values: [2002.0, 2003.0, 2004.0]), `Starts` (Example values: [6.0, 36.0]), `Wins` (Example values: [1.0, 0.0, 3.0]), `Top 5` (Example values: [1.0, 5.0, 9.0]), `Top 10` (Example values: [2.0, 13.0, 23.0]), `Poles` (Example values: [0.0, 1.0, 4.0]), `Avg. Start` (Example values: [7.0, 18.9, 15.9]), `Avg. Finish` (Example values: [18.5, 18.6, 13.2]), `Winnings` (Example values: [$717,942, $3,258,806, $4,676,311]), `Position` (Example values: [46th rank, 13th, 11th]), `Team(s)` (Example values: [chip gannasi racing, chip ganassi racing, roush fenway racing])]\n", + "ori_query": "select `poles` from `1-1708050-1` where `position` = '25th'", + "amb_query": "SELECT \"poles\" FROM \"1-1708050-1\" WHERE position IN ('25th place', '25th')" + }, + { + "db_id": "1-1708050-1", + "question": "Name the starts when position is 16th", + "evidence": "", + "schema_text_wo_content": "Table 1-1708050-1, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-1708050-1, columns = [`Year` (Example values: [2002.0, 2003.0, 2004.0]), `Starts` (Example values: [6.0, 36.0]), `Wins` (Example values: [1.0, 0.0, 3.0]), `Top 5` (Example values: [1.0, 5.0, 9.0]), `Top 10` (Example values: [2.0, 13.0, 23.0]), `Poles` (Example values: [0.0, 1.0, 4.0]), `Avg. Start` (Example values: [7.0, 18.9, 15.9]), `Avg. Finish` (Example values: [18.5, 18.6, 13.2]), `Winnings` (Example values: [$717,942, $3,258,806, $4,676,311]), `Position` (Example values: [46th rank, 13th, 11th]), `Team(s)` (Example values: [chip gannasi racing, chip ganassi racing, roush fenway racing])]\n", + "ori_query": "select `starts` from `1-1708050-1` where `position` = '16th'", + "amb_query": "SELECT \"starts\" FROM \"1-1708050-1\" WHERE position IN ('16th', 'rank 16th')" + }, + { + "db_id": "1-17265535-6", + "question": "If the equation is 10 times 9, what would be the 2nd throw?", + "evidence": "", + "schema_text_wo_content": "Table 1-17265535-6, columns = [1st throw, 2nd throw, 3rd throw, Equation, Result]\n", + "schema_text_with_content": "Table 1-17265535-6, columns = [`1st throw` (Example values: [9.0, 8.0, 1.0]), `2nd throw` (Example values: [9.0, 1.0, 4.0]), `3rd throw` (Example values: [not 9, not 8, not 1]), `Equation` (Example values: [10 * 9, 10 times 1, (10 * 8) + 4]), `Result` (Example values: [90.0, 10.0, 84.0])]\n", + "ori_query": "select max(`2nd throw`) from `1-17265535-6` where `equation` = '(10 times 8) + 4'", + "amb_query": "SELECT MAX(\"2nd throw\") FROM \"1-17265535-6\" WHERE \"equation\" = '(10 times 8) + 4'" + }, + { + "db_id": "1-17265535-6", + "question": "If the equation is (10 times 8) + 4, what would be the 2nd throw?", + "evidence": "", + "schema_text_wo_content": "Table 1-17265535-6, columns = [1st throw, 2nd throw, 3rd throw, Equation, Result]\n", + "schema_text_with_content": "Table 1-17265535-6, columns = [`1st throw` (Example values: [9.0, 8.0, 1.0]), `2nd throw` (Example values: [9.0, 1.0, 4.0]), `3rd throw` (Example values: [not 9, not 8, not 1]), `Equation` (Example values: [10 * 9, 10 times 1, (10 * 8) + 4]), `Result` (Example values: [90.0, 10.0, 84.0])]\n", + "ori_query": "select max(`2nd throw`) from `1-17265535-6` where `equation` = '(10 times 8) + 4'", + "amb_query": "SELECT MAX(\"2nd throw\") FROM \"1-17265535-6\" WHERE equation IN ('(10 * 8) + 4', '(10 times 8) + 4')" + }, + { + "db_id": "1-17265535-6", + "question": "If the equation is all equal, what is the 3rd throw?", + "evidence": "", + "schema_text_wo_content": "Table 1-17265535-6, columns = [1st throw, 2nd throw, 3rd throw, Equation, Result]\n", + "schema_text_with_content": "Table 1-17265535-6, columns = [`1st throw` (Example values: [9.0, 8.0, 1.0]), `2nd throw` (Example values: [9.0, 1.0, 4.0]), `3rd throw` (Example values: [not 9, not 8, not 1]), `Equation` (Example values: [10 * 9, 10 times 1, (10 * 8) + 4]), `Result` (Example values: [90.0, 10.0, 84.0])]\n", + "ori_query": "select `3rd throw` from `1-17265535-6` where `equation` = 'all equal'", + "amb_query": "SELECT \"3rd throw\" FROM \"1-17265535-6\" WHERE equation IN ('equations equal to each other', 'all equal')" + }, + { + "db_id": "1-17265535-6", + "question": "If the equation is (10 times 1) + 3, what is the 2nd throw?", + "evidence": "", + "schema_text_wo_content": "Table 1-17265535-6, columns = [1st throw, 2nd throw, 3rd throw, Equation, Result]\n", + "schema_text_with_content": "Table 1-17265535-6, columns = [`1st throw` (Example values: [9.0, 8.0, 1.0]), `2nd throw` (Example values: [9.0, 1.0, 4.0]), `3rd throw` (Example values: [not 9, not 8, not 1]), `Equation` (Example values: [10 * 9, 10 times 1, (10 * 8) + 4]), `Result` (Example values: [90.0, 10.0, 84.0])]\n", + "ori_query": "select max(`2nd throw`) from `1-17265535-6` where `equation` = '(10 times 1) + 3'", + "amb_query": "SELECT MAX(\"2nd throw\") FROM \"1-17265535-6\" WHERE equation IN ('(10 * 1) + 3', '(10 times 1) + 3')" + }, + { + "db_id": "1-17516967-1", + "question": "Name the swuinsuit for district of columbia", + "evidence": "", + "schema_text_wo_content": "Table 1-17516967-1, columns = [State, Preliminary, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-17516967-1, columns = [`State` (Example values: [new mexico, west virginia, district of columbia region]), `Preliminary` (Example values: [8.913, 9.008, 8.483]), `Interview` (Example values: [9.533, 9.465, 9.244]), `Swimsuit` (Example values: [9.300, 9.277, 9.014]), `Evening Gown` (Example values: [9.422, 9.454, 9.400]), `Average` (Example values: [9.418, 9.398, 9.219])]\n", + "ori_query": "select `swimsuit` from `1-17516967-1` where `state` = 'district of columbia'", + "amb_query": "SELECT \"swimsuit\" FROM \"1-17516967-1\" WHERE state IN ('district of columbia', 'district of columbia region')" + }, + { + "db_id": "1-17516967-1", + "question": "Name the preliminary for tennessee", + "evidence": "", + "schema_text_wo_content": "Table 1-17516967-1, columns = [State, Preliminary, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-17516967-1, columns = [`State` (Example values: [new mexico, west virginia, district of columbia region]), `Preliminary` (Example values: [8.913, 9.008, 8.483]), `Interview` (Example values: [9.533, 9.465, 9.244]), `Swimsuit` (Example values: [9.300, 9.277, 9.014]), `Evening Gown` (Example values: [9.422, 9.454, 9.400]), `Average` (Example values: [9.418, 9.398, 9.219])]\n", + "ori_query": "select `preliminary` from `1-17516967-1` where `state` = 'tennessee'", + "amb_query": "SELECT \"preliminary\" FROM \"1-17516967-1\" WHERE state IN ('tennessee state', 'tennessee')" + }, + { + "db_id": "1-17516967-1", + "question": "Name the swuinsuit for oregon", + "evidence": "", + "schema_text_wo_content": "Table 1-17516967-1, columns = [State, Preliminary, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-17516967-1, columns = [`State` (Example values: [new mexico, west virginia, district of columbia region]), `Preliminary` (Example values: [8.913, 9.008, 8.483]), `Interview` (Example values: [9.533, 9.465, 9.244]), `Swimsuit` (Example values: [9.300, 9.277, 9.014]), `Evening Gown` (Example values: [9.422, 9.454, 9.400]), `Average` (Example values: [9.418, 9.398, 9.219])]\n", + "ori_query": "select `swimsuit` from `1-17516967-1` where `state` = 'oregon'", + "amb_query": "SELECT \"swimsuit\" FROM \"1-17516967-1\" WHERE state IN ('oregon state of the united states', 'oregon')" + }, + { + "db_id": "1-17516967-1", + "question": "Name the preliminary for north carolina", + "evidence": "", + "schema_text_wo_content": "Table 1-17516967-1, columns = [State, Preliminary, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-17516967-1, columns = [`State` (Example values: [new mexico, west virginia, district of columbia region]), `Preliminary` (Example values: [8.913, 9.008, 8.483]), `Interview` (Example values: [9.533, 9.465, 9.244]), `Swimsuit` (Example values: [9.300, 9.277, 9.014]), `Evening Gown` (Example values: [9.422, 9.454, 9.400]), `Average` (Example values: [9.418, 9.398, 9.219])]\n", + "ori_query": "select `preliminary` from `1-17516967-1` where `state` = 'north carolina'", + "amb_query": "SELECT \"preliminary\" FROM \"1-17516967-1\" WHERE state IN ('north carolina, usa', 'north carolina')" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host of the round in the Montagne Center in tennessee?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `state` = 'tennessee' and `venue` = 'montagne center'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE state IN ('tn, usa', 'tennessee') AND \"venue\" = 'montagne center'" + }, + { + "db_id": "2-10721054-4", + "question": "What city in the east region in pennsylvania was the round where the University of Richmond was the host?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `city` from `2-10721054-4` where `region` = 'east' and `state` = 'pennsylvania' and `host` = 'university of richmond'", + "amb_query": "SELECT \"city\" FROM \"2-10721054-4\" WHERE \"region\" = 'east' AND state IN ('pennsylvania', 'pennsylvania, usa') AND \"host\" = 'university of richmond'" + }, + { + "db_id": "2-10721054-4", + "question": "What city in the east region in california was the round where the University of Richmond was the host?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `city` from `2-10721054-4` where `region` = 'east' and `state` = 'california' and `host` = 'university of richmond'", + "amb_query": "SELECT \"city\" FROM \"2-10721054-4\" WHERE \"region\" = 'east' AND state IN ('california, usa state', 'california, usa', 'california') AND \"host\" = 'university of richmond'" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host of the round in the Montagne Center in oklahoma?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `state` = 'oklahoma' and `venue` = 'montagne center'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE state IN ('ok', 'oklahoma') AND \"venue\" = 'montagne center'" + }, + { + "db_id": "2-10721054-4", + "question": "What city in the east region in North Carolina was the round where the University of Richmond was the host?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `city` from `2-10721054-4` where `region` = 'east' and `state` = 'north carolina' and `host` = 'university of richmond'", + "amb_query": "SELECT \"city\" FROM \"2-10721054-4\" WHERE \"region\" = 'east' AND state IN ('north carolina, usa', 'north carolina') AND \"host\" = 'university of richmond'" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host of the round in the Montagne Center in Texas?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `state` = 'texas' and `venue` = 'montagne center'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE state IN ('tx, usa', 'lone star state', 'texas') AND \"venue\" = 'montagne center'" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host for the round in fayetteville?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `city` = 'fayetteville'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE city IN ('city of fayetteville', 'fayetteville')" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host for the round in worcester?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `city` = 'worcester'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE city IN ('worcester county', 'worcester')" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host for the round in seattle?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `city` = 'seattle'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE city IN ('seattle metropolitan area', 'seattle')" + }, + { + "db_id": "2-10721054-4", + "question": "What was the host for the round in Nashville?", + "evidence": "", + "schema_text_wo_content": "Table 2-10721054-4, columns = [Region, Host, Venue, City, State]\n", + "schema_text_with_content": "Table 2-10721054-4, columns = [`Region` (Example values: [east, mideast, midwest]), `Host` (Example values: [providence college, rutgers university, james madison university]), `Venue` (Example values: [alumni hall (providence), louis brown athletic center, james madison university convocation center]), `City` (Example values: [providence, piscataway, harrisonburg]), `State` (Example values: [rhode island, new jersey, virginia])]\n", + "ori_query": "select `host` from `2-10721054-4` where `city` = 'nashville'", + "amb_query": "SELECT \"host\" FROM \"2-10721054-4\" WHERE city IN ('nashville, tennessee', 'nashville')" + }, + { + "db_id": "1-11622896-1", + "question": "What is the score for the florida location?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622896-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622896-1, columns = [`Date` (Example values: [apr 4, jun 13, jun 27]), `Tournament` (Example values: [michelob senior classic, marlboro classic, peter jackson champions]), `Location` (Example values: [state of florida, massachusetts, canada]), `Purse( $ )` (Example values: [125000.0, 150000.0, 200000.0]), `Winner` (Example values: [don january (4), arnold palmer (3), bob goalby (2)]), `Score` (Example values: [278 (-10), 276 (-8), 273 (-15)]), `1st Prize( $ )` (Example values: [20000.0, 25000.0, 32500.0])]\n", + "ori_query": "select `score` from `1-11622896-1` where `location` = 'florida'", + "amb_query": "SELECT \"score\" FROM \"1-11622896-1\" WHERE location IN ('florida state', 'state of florida', 'florida')" + }, + { + "db_id": "1-11622896-1", + "question": "What is the purse value for the rhode island location?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622896-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622896-1, columns = [`Date` (Example values: [apr 4, jun 13, jun 27]), `Tournament` (Example values: [michelob senior classic, marlboro classic, peter jackson champions]), `Location` (Example values: [state of florida, massachusetts, canada]), `Purse( $ )` (Example values: [125000.0, 150000.0, 200000.0]), `Winner` (Example values: [don january (4), arnold palmer (3), bob goalby (2)]), `Score` (Example values: [278 (-10), 276 (-8), 273 (-15)]), `1st Prize( $ )` (Example values: [20000.0, 25000.0, 32500.0])]\n", + "ori_query": "select `purse( $ )` from `1-11622896-1` where `location` = 'rhode island'", + "amb_query": "SELECT \"purse( $ )\" FROM \"1-11622896-1\" WHERE location IN ('rhode island', 'rhode island, usa')" + }, + { + "db_id": "1-11622896-1", + "question": "What is the score for the Oregon location?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622896-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622896-1, columns = [`Date` (Example values: [apr 4, jun 13, jun 27]), `Tournament` (Example values: [michelob senior classic, marlboro classic, peter jackson champions]), `Location` (Example values: [state of florida, massachusetts, canada]), `Purse( $ )` (Example values: [125000.0, 150000.0, 200000.0]), `Winner` (Example values: [don january (4), arnold palmer (3), bob goalby (2)]), `Score` (Example values: [278 (-10), 276 (-8), 273 (-15)]), `1st Prize( $ )` (Example values: [20000.0, 25000.0, 32500.0])]\n", + "ori_query": "select `score` from `1-11622896-1` where `location` = 'oregon'", + "amb_query": "SELECT \"score\" FROM \"1-11622896-1\" WHERE location IN ('oregon state of the united states', 'oregon')" + }, + { + "db_id": "1-11622896-1", + "question": "What is the purse value for the New York location?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622896-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622896-1, columns = [`Date` (Example values: [apr 4, jun 13, jun 27]), `Tournament` (Example values: [michelob senior classic, marlboro classic, peter jackson champions]), `Location` (Example values: [state of florida, massachusetts, canada]), `Purse( $ )` (Example values: [125000.0, 150000.0, 200000.0]), `Winner` (Example values: [don january (4), arnold palmer (3), bob goalby (2)]), `Score` (Example values: [278 (-10), 276 (-8), 273 (-15)]), `1st Prize( $ )` (Example values: [20000.0, 25000.0, 32500.0])]\n", + "ori_query": "select `purse( $ )` from `1-11622896-1` where `location` = 'new york'", + "amb_query": "SELECT \"purse( $ )\" FROM \"1-11622896-1\" WHERE location IN ('new york', 'new york, usa')" + }, + { + "db_id": "1-11622896-1", + "question": "What is the largest 1st prize( $ ) at the South Carolina location?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622896-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622896-1, columns = [`Date` (Example values: [apr 4, jun 13, jun 27]), `Tournament` (Example values: [michelob senior classic, marlboro classic, peter jackson champions]), `Location` (Example values: [state of florida, massachusetts, canada]), `Purse( $ )` (Example values: [125000.0, 150000.0, 200000.0]), `Winner` (Example values: [don january (4), arnold palmer (3), bob goalby (2)]), `Score` (Example values: [278 (-10), 276 (-8), 273 (-15)]), `1st Prize( $ )` (Example values: [20000.0, 25000.0, 32500.0])]\n", + "ori_query": "select max(`1st prize( $ )`) from `1-11622896-1` where `location` = 'south carolina'", + "amb_query": "SELECT MAX(\"1st prize( $ )\") FROM \"1-11622896-1\" WHERE location IN ('south carolina', 'sc')" + }, + { + "db_id": "1-21260421-1", + "question": "How many tournaments were held at florida?", + "evidence": "", + "schema_text_wo_content": "Table 1-21260421-1, columns = [Date, Tournament, Location, Purse ( $ ), Winner, Score, 1st Prize ( $ )]\n", + "schema_text_with_content": "Table 1-21260421-1, columns = [`Date` (Example values: [jan 25, feb 15, feb 22]), `Tournament` (Example values: [mitsubishi electric championship at hualalai, allianz championship, the ace group classic]), `Location` (Example values: [hawaii, florida, california]), `Purse ( $ )` (Example values: [1800000.0, 1700000.0, 1600000.0]), `Winner` (Example values: [bernhard langer (5), mike goodes (1), loren roberts (9)]), `Score` (Example values: [198 (-18), 201 (-15), 209 (-7)]), `1st Prize ( $ )` (Example values: [315,000, 255,000, 240,000])]\n", + "ori_query": "select count(`score`) from `1-21260421-1` where `location` = 'florida'", + "amb_query": "SELECT COUNT(\"score\") FROM \"1-21260421-1\" WHERE location IN ('state of florida', 'florida')" + }, + { + "db_id": "1-21260421-1", + "question": "How many tournaments were held at north carolina?", + "evidence": "", + "schema_text_wo_content": "Table 1-21260421-1, columns = [Date, Tournament, Location, Purse ( $ ), Winner, Score, 1st Prize ( $ )]\n", + "schema_text_with_content": "Table 1-21260421-1, columns = [`Date` (Example values: [jan 25, feb 15, feb 22]), `Tournament` (Example values: [mitsubishi electric championship at hualalai, allianz championship, the ace group classic]), `Location` (Example values: [hawaii, florida, california]), `Purse ( $ )` (Example values: [1800000.0, 1700000.0, 1600000.0]), `Winner` (Example values: [bernhard langer (5), mike goodes (1), loren roberts (9)]), `Score` (Example values: [198 (-18), 201 (-15), 209 (-7)]), `1st Prize ( $ )` (Example values: [315,000, 255,000, 240,000])]\n", + "ori_query": "select count(`score`) from `1-21260421-1` where `location` = 'north carolina'", + "amb_query": "SELECT COUNT(\"score\") FROM \"1-21260421-1\" WHERE location IN ('north carolina state', 'north carolina')" + }, + { + "db_id": "1-21260421-1", + "question": "How many tournaments were held at Alabama?", + "evidence": "", + "schema_text_wo_content": "Table 1-21260421-1, columns = [Date, Tournament, Location, Purse ( $ ), Winner, Score, 1st Prize ( $ )]\n", + "schema_text_with_content": "Table 1-21260421-1, columns = [`Date` (Example values: [jan 25, feb 15, feb 22]), `Tournament` (Example values: [mitsubishi electric championship at hualalai, allianz championship, the ace group classic]), `Location` (Example values: [hawaii, florida, california]), `Purse ( $ )` (Example values: [1800000.0, 1700000.0, 1600000.0]), `Winner` (Example values: [bernhard langer (5), mike goodes (1), loren roberts (9)]), `Score` (Example values: [198 (-18), 201 (-15), 209 (-7)]), `1st Prize ( $ )` (Example values: [315,000, 255,000, 240,000])]\n", + "ori_query": "select count(`score`) from `1-21260421-1` where `location` = 'alabama'", + "amb_query": "SELECT COUNT(\"score\") FROM \"1-21260421-1\" WHERE location IN ('alabama', 'state of alabama')" + }, + { + "db_id": "1-18752986-1", + "question": "For location dianella, what is the name of the captain?", + "evidence": "", + "schema_text_wo_content": "Table 1-18752986-1, columns = [Name, Nickname, First season, Location, Home ground(s), Coach, Captain]\n", + "schema_text_with_content": "Table 1-18752986-1, columns = [`Name` (Example values: [bayswater-morley district cricket club [a ], fremantle district cricket club, gosnells cricket club]), `Nickname` (Example values: [bears, freo, hawks]), `First season` (Example values: [1933–34 (b2 and b3 grades) 1947–48 (1st grade), 1887–88 [c ], 1987–88]), `Location` (Example values: [bayswater, fremantle, southern river]), `Home ground(s)` (Example values: [hillcrest reserve, stevens reserve, sutherlands park]), `Coach` (Example values: [craig kirkby, joe piromalli, russell de lain]), `Captain` (Example values: [simon allison, chris wood, anthony caddy])]\n", + "ori_query": "select `captain` from `1-18752986-1` where `location` = 'dianella'", + "amb_query": "SELECT \"captain\" FROM \"1-18752986-1\" WHERE location IN ('dianella', 'dianella suburb')" + }, + { + "db_id": "1-18752986-1", + "question": "For location secret harbour, what is the name of the captain?", + "evidence": "", + "schema_text_wo_content": "Table 1-18752986-1, columns = [Name, Nickname, First season, Location, Home ground(s), Coach, Captain]\n", + "schema_text_with_content": "Table 1-18752986-1, columns = [`Name` (Example values: [bayswater-morley district cricket club [a ], fremantle district cricket club, gosnells cricket club]), `Nickname` (Example values: [bears, freo, hawks]), `First season` (Example values: [1933–34 (b2 and b3 grades) 1947–48 (1st grade), 1887–88 [c ], 1987–88]), `Location` (Example values: [bayswater, fremantle, southern river]), `Home ground(s)` (Example values: [hillcrest reserve, stevens reserve, sutherlands park]), `Coach` (Example values: [craig kirkby, joe piromalli, russell de lain]), `Captain` (Example values: [simon allison, chris wood, anthony caddy])]\n", + "ori_query": "select `captain` from `1-18752986-1` where `location` = 'secret harbour'", + "amb_query": "SELECT \"captain\" FROM \"1-18752986-1\" WHERE location IN ('secret harbour', 'secret harbour, western australia')" + }, + { + "db_id": "1-18752986-1", + "question": "For location Caversham, what is the name of the captain?", + "evidence": "", + "schema_text_wo_content": "Table 1-18752986-1, columns = [Name, Nickname, First season, Location, Home ground(s), Coach, Captain]\n", + "schema_text_with_content": "Table 1-18752986-1, columns = [`Name` (Example values: [bayswater-morley district cricket club [a ], fremantle district cricket club, gosnells cricket club]), `Nickname` (Example values: [bears, freo, hawks]), `First season` (Example values: [1933–34 (b2 and b3 grades) 1947–48 (1st grade), 1887–88 [c ], 1987–88]), `Location` (Example values: [bayswater, fremantle, southern river]), `Home ground(s)` (Example values: [hillcrest reserve, stevens reserve, sutherlands park]), `Coach` (Example values: [craig kirkby, joe piromalli, russell de lain]), `Captain` (Example values: [simon allison, chris wood, anthony caddy])]\n", + "ori_query": "select `captain` from `1-18752986-1` where `location` = 'caversham'", + "amb_query": "SELECT \"captain\" FROM \"1-18752986-1\" WHERE location IN ('caversham', 'caversham region')" + }, + { + "db_id": "1-1888051-1", + "question": "when province is maría trinidad sánchez, what is the area (km²)?", + "evidence": "", + "schema_text_wo_content": "Table 1-1888051-1, columns = [Province, Capital, Area (km²), Population, Density, Map region]\n", + "schema_text_with_content": "Table 1-1888051-1, columns = [`Province` (Example values: [dajabón, duarte, espaillat]), `Capital` (Example values: [dajabón, d.r., san francisco de macorís, moca]), `Area (km²)` (Example values: [1020.73, 1605.35, 838.62]), `Population` (Example values: [62046.0, 283805.0, 225091.0]), `Density` (Example values: [61.0, 177.0, 268.0]), `Map region` (Example values: [4.0, 5.0, 8.0])]\n", + "ori_query": "select `area (km²)` from `1-1888051-1` where `province` = 'maría trinidad sánchez'", + "amb_query": "SELECT \"area (km²)\" FROM \"1-1888051-1\" WHERE province IN ('maría trinidad sánchez', 'maría trinidad sánchez, dominican republic')" + }, + { + "db_id": "1-1888051-1", + "question": "when province is hermanas mirabal, what is the area (km²)?", + "evidence": "", + "schema_text_wo_content": "Table 1-1888051-1, columns = [Province, Capital, Area (km²), Population, Density, Map region]\n", + "schema_text_with_content": "Table 1-1888051-1, columns = [`Province` (Example values: [dajabón, duarte, espaillat]), `Capital` (Example values: [dajabón, d.r., san francisco de macorís, moca]), `Area (km²)` (Example values: [1020.73, 1605.35, 838.62]), `Population` (Example values: [62046.0, 283805.0, 225091.0]), `Density` (Example values: [61.0, 177.0, 268.0]), `Map region` (Example values: [4.0, 5.0, 8.0])]\n", + "ori_query": "select `area (km²)` from `1-1888051-1` where `province` = 'hermanas mirabal'", + "amb_query": "SELECT \"area (km²)\" FROM \"1-1888051-1\" WHERE province IN ('hermanas mirabal', 'province of hermanas mirabal')" + }, + { + "db_id": "1-1888051-1", + "question": "when province is monseñor nouel, what is the area (km²)?", + "evidence": "", + "schema_text_wo_content": "Table 1-1888051-1, columns = [Province, Capital, Area (km²), Population, Density, Map region]\n", + "schema_text_with_content": "Table 1-1888051-1, columns = [`Province` (Example values: [dajabón, duarte, espaillat]), `Capital` (Example values: [dajabón, d.r., san francisco de macorís, moca]), `Area (km²)` (Example values: [1020.73, 1605.35, 838.62]), `Population` (Example values: [62046.0, 283805.0, 225091.0]), `Density` (Example values: [61.0, 177.0, 268.0]), `Map region` (Example values: [4.0, 5.0, 8.0])]\n", + "ori_query": "select `area (km²)` from `1-1888051-1` where `province` = 'monseñor nouel'", + "amb_query": "SELECT \"area (km²)\" FROM \"1-1888051-1\" WHERE province IN ('monseñor nouel', 'province of monseñor nouel')" + }, + { + "db_id": "1-1888051-1", + "question": "salcedo has the area (km²) of?", + "evidence": "", + "schema_text_wo_content": "Table 1-1888051-1, columns = [Province, Capital, Area (km²), Population, Density, Map region]\n", + "schema_text_with_content": "Table 1-1888051-1, columns = [`Province` (Example values: [dajabón, duarte, espaillat]), `Capital` (Example values: [dajabón, d.r., san francisco de macorís, moca]), `Area (km²)` (Example values: [1020.73, 1605.35, 838.62]), `Population` (Example values: [62046.0, 283805.0, 225091.0]), `Density` (Example values: [61.0, 177.0, 268.0]), `Map region` (Example values: [4.0, 5.0, 8.0])]\n", + "ori_query": "select `area (km²)` from `1-1888051-1` where `capital` = 'salcedo'", + "amb_query": "SELECT \"area (km²)\" FROM \"1-1888051-1\" WHERE capital IN ('salcedo', 'salcedo, espaillat')" + }, + { + "db_id": "1-1888051-1", + "question": "dajabón has the area (km²) of?", + "evidence": "", + "schema_text_wo_content": "Table 1-1888051-1, columns = [Province, Capital, Area (km²), Population, Density, Map region]\n", + "schema_text_with_content": "Table 1-1888051-1, columns = [`Province` (Example values: [dajabón, duarte, espaillat]), `Capital` (Example values: [dajabón, d.r., san francisco de macorís, moca]), `Area (km²)` (Example values: [1020.73, 1605.35, 838.62]), `Population` (Example values: [62046.0, 283805.0, 225091.0]), `Density` (Example values: [61.0, 177.0, 268.0]), `Map region` (Example values: [4.0, 5.0, 8.0])]\n", + "ori_query": "select `area (km²)` from `1-1888051-1` where `capital` = 'dajabón'", + "amb_query": "SELECT \"area (km²)\" FROM \"1-1888051-1\" WHERE capital IN ('dajabón', 'dajabón, d.r.')" + }, + { + "db_id": "1-1888051-1", + "question": "Nagua has the area (km²) of?", + "evidence": "", + "schema_text_wo_content": "Table 1-1888051-1, columns = [Province, Capital, Area (km²), Population, Density, Map region]\n", + "schema_text_with_content": "Table 1-1888051-1, columns = [`Province` (Example values: [dajabón, duarte, espaillat]), `Capital` (Example values: [dajabón, d.r., san francisco de macorís, moca]), `Area (km²)` (Example values: [1020.73, 1605.35, 838.62]), `Population` (Example values: [62046.0, 283805.0, 225091.0]), `Density` (Example values: [61.0, 177.0, 268.0]), `Map region` (Example values: [4.0, 5.0, 8.0])]\n", + "ori_query": "select `area (km²)` from `1-1888051-1` where `capital` = 'nagua'", + "amb_query": "SELECT \"area (km²)\" FROM \"1-1888051-1\" WHERE capital IN ('nagua', 'nagua city')" + }, + { + "db_id": "1-19089486-1", + "question": "Name the least clubs involved for leagues being none for fourth round", + "evidence": "", + "schema_text_wo_content": "Table 1-19089486-1, columns = [Round, Clubs remaining, Clubs involved, Winners from previous round, New entries this round, Leagues entering this round]\n", + "schema_text_with_content": "Table 1-19089486-1, columns = [`Round` (Example values: [preliminary round, second round, round 3]), `Clubs remaining` (Example values: [129.0, 64.0, 32.0]), `Clubs involved` (Example values: [34.0, 64.0, 32.0]), `Winners from previous round` (Example values: [none, 48, 32]), `New entries this round` (Example values: [34, 16, none]), `Leagues entering this round` (Example values: [levels 4 and 5 in football league pyramid, gambrinus liga, none])]\n", + "ori_query": "select min(`clubs involved`) from `1-19089486-1` where `leagues entering this round` = 'none' and `round` = 'fourth round'", + "amb_query": "SELECT MIN(\"clubs involved\") FROM \"1-19089486-1\" WHERE \"leagues entering this round\" = 'none' AND round IN ('round 4', 'fourth round')" + }, + { + "db_id": "1-19089486-1", + "question": "Name the least clubs involved for leagues being none for semi finals", + "evidence": "", + "schema_text_wo_content": "Table 1-19089486-1, columns = [Round, Clubs remaining, Clubs involved, Winners from previous round, New entries this round, Leagues entering this round]\n", + "schema_text_with_content": "Table 1-19089486-1, columns = [`Round` (Example values: [preliminary round, second round, round 3]), `Clubs remaining` (Example values: [129.0, 64.0, 32.0]), `Clubs involved` (Example values: [34.0, 64.0, 32.0]), `Winners from previous round` (Example values: [none, 48, 32]), `New entries this round` (Example values: [34, 16, none]), `Leagues entering this round` (Example values: [levels 4 and 5 in football league pyramid, gambrinus liga, none])]\n", + "ori_query": "select min(`clubs involved`) from `1-19089486-1` where `leagues entering this round` = 'none' and `round` = 'semi finals'", + "amb_query": "SELECT MIN(\"clubs involved\") FROM \"1-19089486-1\" WHERE \"leagues entering this round\" = 'none' AND round IN ('semi-finals', 'semi finals')" + }, + { + "db_id": "1-19089486-1", + "question": "Name the new entries this round for third round", + "evidence": "", + "schema_text_wo_content": "Table 1-19089486-1, columns = [Round, Clubs remaining, Clubs involved, Winners from previous round, New entries this round, Leagues entering this round]\n", + "schema_text_with_content": "Table 1-19089486-1, columns = [`Round` (Example values: [preliminary round, second round, round 3]), `Clubs remaining` (Example values: [129.0, 64.0, 32.0]), `Clubs involved` (Example values: [34.0, 64.0, 32.0]), `Winners from previous round` (Example values: [none, 48, 32]), `New entries this round` (Example values: [34, 16, none]), `Leagues entering this round` (Example values: [levels 4 and 5 in football league pyramid, gambrinus liga, none])]\n", + "ori_query": "select `new entries this round` from `1-19089486-1` where `round` = 'third round'", + "amb_query": "SELECT \"new entries this round\" FROM \"1-19089486-1\" WHERE round IN ('third round', 'round 3')" + }, + { + "db_id": "1-1942366-9", + "question": "How many different C_{high} values are there for the good category?", + "evidence": "", + "schema_text_wo_content": "Table 1-1942366-9, columns = [C_{low}, C_{high}, I_{low}, I_{high}, Category]\n", + "schema_text_with_content": "Table 1-1942366-9, columns = [`C_{low}` (Example values: [0, 12.1, 35.5]), `C_{high}` (Example values: [12.0, 35.4, 55.4]), `I_{low}` (Example values: [0.0, 51.0, 101.0]), `I_{high}` (Example values: [50.0, 100.0, 150.0]), `Category` (Example values: [good category, moderate, unhealthy for sensitive groups])]\n", + "ori_query": "select count(`c_{high}`) from `1-1942366-9` where `category` = 'good'", + "amb_query": "SELECT COUNT(\"c_{high}\") FROM \"1-1942366-9\" WHERE category IN ('good', 'good category')" + }, + { + "db_id": "1-1965650-11", + "question": "What team did Russ Wiechnik, on the defence position, come from?", + "evidence": "", + "schema_text_wo_content": "Table 1-1965650-11, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-1965650-11, columns = [`Pick #` (Example values: [159.0, 160.0, 161.0]), `Player` (Example values: [norm mcleod, angie moretto, russ wiechnik]), `Position` (Example values: [left wing, centre, center]), `Nationality` (Example values: [canada, united states]), `NHL team` (Example values: [toronto maple leafs, california golden seals, minnesota north stars]), `College/junior/club team` (Example values: [ottawa m&w rangers (cjhl), university of michigan (ncaa), calgary centennials (wchl)])]\n", + "ori_query": "select `college/junior/club team` from `1-1965650-11` where `position` = 'defence' and `player` = 'russ wiechnik'", + "amb_query": "SELECT \"college/junior/club team\" FROM \"1-1965650-11\" WHERE position IN ('defensive position', 'defence') AND \"player\" = 'russ wiechnik'" + }, + { + "db_id": "1-1965650-11", + "question": "What team did Russ Wiechnik, on the centre position, come from?", + "evidence": "", + "schema_text_wo_content": "Table 1-1965650-11, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-1965650-11, columns = [`Pick #` (Example values: [159.0, 160.0, 161.0]), `Player` (Example values: [norm mcleod, angie moretto, russ wiechnik]), `Position` (Example values: [left wing, centre, center]), `Nationality` (Example values: [canada, united states]), `NHL team` (Example values: [toronto maple leafs, california golden seals, minnesota north stars]), `College/junior/club team` (Example values: [ottawa m&w rangers (cjhl), university of michigan (ncaa), calgary centennials (wchl)])]\n", + "ori_query": "select `college/junior/club team` from `1-1965650-11` where `position` = 'centre' and `player` = 'russ wiechnik'", + "amb_query": "SELECT \"college/junior/club team\" FROM \"1-1965650-11\" WHERE position IN ('center', 'centre') AND \"player\" = 'russ wiechnik'" + }, + { + "db_id": "1-2897457-2", + "question": "What is the nationality of the draft pick player who plays goaltender position and is going to Calgary Flames?", + "evidence": "", + "schema_text_wo_content": "Table 1-2897457-2, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2897457-2, columns = [`Pick #` (Example values: [22.0, 23.0, 24.0]), `Player` (Example values: [adam foote, travis green, kent manderville]), `Position` (Example values: [defence, centre position, left wing]), `Nationality` (Example values: [canada, united states, sweden]), `NHL team` (Example values: [quebec nordiques, new york islanders, calgary flames]), `College/junior/club team` (Example values: [sault ste. marie greyhounds (ohl), spokane chiefs (whl), notre dame hounds (sjhl)])]\n", + "ori_query": "select `nationality` from `1-2897457-2` where `position` = 'goaltender' and `nhl team` = 'calgary flames'", + "amb_query": "SELECT \"nationality\" FROM \"1-2897457-2\" WHERE position IN ('goalkeeper', 'goaltender', 'netminder') AND \"nhl team\" = 'calgary flames'" + }, + { + "db_id": "1-2897457-2", + "question": "What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames?", + "evidence": "", + "schema_text_wo_content": "Table 1-2897457-2, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2897457-2, columns = [`Pick #` (Example values: [22.0, 23.0, 24.0]), `Player` (Example values: [adam foote, travis green, kent manderville]), `Position` (Example values: [defence, centre position, left wing]), `Nationality` (Example values: [canada, united states, sweden]), `NHL team` (Example values: [quebec nordiques, new york islanders, calgary flames]), `College/junior/club team` (Example values: [sault ste. marie greyhounds (ohl), spokane chiefs (whl), notre dame hounds (sjhl)])]\n", + "ori_query": "select `nationality` from `1-2897457-2` where `position` = 'centre' and `nhl team` = 'calgary flames'", + "amb_query": "SELECT \"nationality\" FROM \"1-2897457-2\" WHERE position IN ('centre', 'centre position') AND \"nhl team\" = 'calgary flames'" + }, + { + "db_id": "1-20823568-2", + "question": "How many second place showings does rugby union have?", + "evidence": "", + "schema_text_wo_content": "Table 1-20823568-2, columns = [Sporting profession, First place(s), Second place(s), Third place(s), Total placing(s)]\n", + "schema_text_with_content": "Table 1-20823568-2, columns = [`Sporting profession` (Example values: [athletics, formula one, football]), `First place(s)` (Example values: [17.0, 6.0, 5.0]), `Second place(s)` (Example values: [14.0, 5.0, 6.0]), `Third place(s)` (Example values: [15.0, 2.0, 9.0]), `Total placing(s)` (Example values: [46.0, 13.0, 20.0])]\n", + "ori_query": "select `second place(s)` from `1-20823568-2` where `sporting profession` = 'rugby union'", + "amb_query": "SELECT \"second place(s)\" FROM \"1-20823568-2\" WHERE sporting profession IN ('rugby union match', 'rugby union')" + }, + { + "db_id": "1-20823568-2", + "question": "How many second place showings does sailing have?", + "evidence": "", + "schema_text_wo_content": "Table 1-20823568-2, columns = [Sporting profession, First place(s), Second place(s), Third place(s), Total placing(s)]\n", + "schema_text_with_content": "Table 1-20823568-2, columns = [`Sporting profession` (Example values: [athletics, formula one, football]), `First place(s)` (Example values: [17.0, 6.0, 5.0]), `Second place(s)` (Example values: [14.0, 5.0, 6.0]), `Third place(s)` (Example values: [15.0, 2.0, 9.0]), `Total placing(s)` (Example values: [46.0, 13.0, 20.0])]\n", + "ori_query": "select `second place(s)` from `1-20823568-2` where `sporting profession` = 'sailing'", + "amb_query": "SELECT \"second place(s)\" FROM \"1-20823568-2\" WHERE sporting profession IN ('sailing', 'sailboat racing')" + }, + { + "db_id": "1-20823568-2", + "question": "How many second place showings does snooker have?", + "evidence": "", + "schema_text_wo_content": "Table 1-20823568-2, columns = [Sporting profession, First place(s), Second place(s), Third place(s), Total placing(s)]\n", + "schema_text_with_content": "Table 1-20823568-2, columns = [`Sporting profession` (Example values: [athletics, formula one, football]), `First place(s)` (Example values: [17.0, 6.0, 5.0]), `Second place(s)` (Example values: [14.0, 5.0, 6.0]), `Third place(s)` (Example values: [15.0, 2.0, 9.0]), `Total placing(s)` (Example values: [46.0, 13.0, 20.0])]\n", + "ori_query": "select `second place(s)` from `1-20823568-2` where `sporting profession` = 'snooker'", + "amb_query": "SELECT \"second place(s)\" FROM \"1-20823568-2\" WHERE sporting profession IN ('snooker game', 'snooker')" + }, + { + "db_id": "1-214479-8", + "question": "what is the y = 2008 when the expression is easter day (julian calendar)?", + "evidence": "", + "schema_text_wo_content": "Table 1-214479-8, columns = [Expression, Y = 2008, Y = 2009, Y = 2010, Y = 2011]\n", + "schema_text_with_content": "Table 1-214479-8, columns = [`Expression` (Example values: [a = y mod 4, b = y mod 7, c = y mod 19]), `Y = 2008` (Example values: [a = 0, b = 6, c = 13]), `Y = 2009` (Example values: [a = 1, b = 0, c = 14]), `Y = 2010` (Example values: [a = 2, b = 1, c = 15]), `Y = 2011` (Example values: [a = 3, b = 2, c = 16])]\n", + "ori_query": "select `y = 2008` from `1-214479-8` where `expression` = 'easter day (julian calendar)'", + "amb_query": "SELECT \"y = 2008\" FROM \"1-214479-8\" WHERE expression IN ('easter day julian calendar', 'easter day (julian calendar)')" + }, + { + "db_id": "1-214479-8", + "question": "What is the y = 2011 when the y = 2010 is 22?", + "evidence": "", + "schema_text_wo_content": "Table 1-214479-8, columns = [Expression, Y = 2008, Y = 2009, Y = 2010, Y = 2011]\n", + "schema_text_with_content": "Table 1-214479-8, columns = [`Expression` (Example values: [a = y mod 4, b = y mod 7, c = y mod 19]), `Y = 2008` (Example values: [a = 0, b = 6, c = 13]), `Y = 2009` (Example values: [a = 1, b = 0, c = 14]), `Y = 2010` (Example values: [a = 2, b = 1, c = 15]), `Y = 2011` (Example values: [a = 3, b = 2, c = 16])]\n", + "ori_query": "select `y = 2011` from `1-214479-8` where `y = 2010` = '22'", + "amb_query": "SELECT \"y = 2011\" FROM \"1-214479-8\" WHERE y = 2010 IN ('22', 'twenty-two')" + }, + { + "db_id": "1-214479-8", + "question": "What is the y = 2011 when the y = 2010 is 22 march 2010?", + "evidence": "", + "schema_text_wo_content": "Table 1-214479-8, columns = [Expression, Y = 2008, Y = 2009, Y = 2010, Y = 2011]\n", + "schema_text_with_content": "Table 1-214479-8, columns = [`Expression` (Example values: [a = y mod 4, b = y mod 7, c = y mod 19]), `Y = 2008` (Example values: [a = 0, b = 6, c = 13]), `Y = 2009` (Example values: [a = 1, b = 0, c = 14]), `Y = 2010` (Example values: [a = 2, b = 1, c = 15]), `Y = 2011` (Example values: [a = 3, b = 2, c = 16])]\n", + "ori_query": "select `y = 2011` from `1-214479-8` where `y = 2010` = '22 march 2010'", + "amb_query": "SELECT \"y = 2011\" FROM \"1-214479-8\" WHERE y = 2010 IN ('22nd march 2010', '22 march 2010')" + }, + { + "db_id": "1-214479-8", + "question": "What is the y = 2011 when the y = 2009 is a = 1?", + "evidence": "", + "schema_text_wo_content": "Table 1-214479-8, columns = [Expression, Y = 2008, Y = 2009, Y = 2010, Y = 2011]\n", + "schema_text_with_content": "Table 1-214479-8, columns = [`Expression` (Example values: [a = y mod 4, b = y mod 7, c = y mod 19]), `Y = 2008` (Example values: [a = 0, b = 6, c = 13]), `Y = 2009` (Example values: [a = 1, b = 0, c = 14]), `Y = 2010` (Example values: [a = 2, b = 1, c = 15]), `Y = 2011` (Example values: [a = 3, b = 2, c = 16])]\n", + "ori_query": "select `y = 2011` from `1-214479-8` where `y = 2009` = 'a = 1'", + "amb_query": "SELECT \"y = 2011\" FROM \"1-214479-8\" WHERE \"y = 2009\" = 'a = 1'" + }, + { + "db_id": "1-214479-8", + "question": "What is the y = 2011 when the y = 2009 is 6 april 2009?", + "evidence": "", + "schema_text_wo_content": "Table 1-214479-8, columns = [Expression, Y = 2008, Y = 2009, Y = 2010, Y = 2011]\n", + "schema_text_with_content": "Table 1-214479-8, columns = [`Expression` (Example values: [a = y mod 4, b = y mod 7, c = y mod 19]), `Y = 2008` (Example values: [a = 0, b = 6, c = 13]), `Y = 2009` (Example values: [a = 1, b = 0, c = 14]), `Y = 2010` (Example values: [a = 2, b = 1, c = 15]), `Y = 2011` (Example values: [a = 3, b = 2, c = 16])]\n", + "ori_query": "select `y = 2011` from `1-214479-8` where `y = 2009` = '6 april 2009'", + "amb_query": "SELECT \"y = 2011\" FROM \"1-214479-8\" WHERE y = 2009 IN ('2009-04-06', '6 april 2009')" + }, + { + "db_id": "1-21514460-1", + "question": "What is their withdrawal rate for the school district with headquarters located in berwick?", + "evidence": "", + "schema_text_wo_content": "Table 1-21514460-1, columns = [School District, Headquarters, Sector, Enrollment (2011-12), Teachers (2008-09, Student-Teacher ratio (2008-09), French enrollment (2011-12), Graduation rate (2011-12), Withdrawal rate (2010-11)]\n", + "schema_text_with_content": "Table 1-21514460-1, columns = [`School District` (Example values: [annapolis valley regional school board, cape breton - victoria regional school board, chignecto-central regional school board]), `Headquarters` (Example values: [berwick, canada, sydney, new south wales, truro, ns]), `Sector` (Example values: [anglophone, francophone]), `Enrollment (2011-12)` (Example values: [14141.0, 14522.0, 21611.0]), `Teachers (2008-09` (Example values: [1064.0, 1293.0, 1651.0]), `Student-Teacher ratio (2008-09)` (Example values: [15.1, 12.5, 14.3]), `French enrollment (2011-12)` (Example values: [7,279 (51.5%), 6,937 (47.8%), 11,057 (51.2%)]), `Graduation rate (2011-12)` (Example values: [89.3%, 87.7%, 87.0%]), `Withdrawal rate (2010-11)` (Example values: [5.3%, 4.1%, 7.0%])]\n", + "ori_query": "select `withdrawal rate (2010-11)` from `1-21514460-1` where `headquarters` = 'berwick'", + "amb_query": "SELECT \"withdrawal rate (2010-11)\" FROM \"1-21514460-1\" WHERE headquarters IN ('berwick', 'berwick, canada')" + }, + { + "db_id": "1-21514460-1", + "question": "What is their withdrawal rate for the school district with headquarters located in Truro?", + "evidence": "", + "schema_text_wo_content": "Table 1-21514460-1, columns = [School District, Headquarters, Sector, Enrollment (2011-12), Teachers (2008-09, Student-Teacher ratio (2008-09), French enrollment (2011-12), Graduation rate (2011-12), Withdrawal rate (2010-11)]\n", + "schema_text_with_content": "Table 1-21514460-1, columns = [`School District` (Example values: [annapolis valley regional school board, cape breton - victoria regional school board, chignecto-central regional school board]), `Headquarters` (Example values: [berwick, canada, sydney, new south wales, truro, ns]), `Sector` (Example values: [anglophone, francophone]), `Enrollment (2011-12)` (Example values: [14141.0, 14522.0, 21611.0]), `Teachers (2008-09` (Example values: [1064.0, 1293.0, 1651.0]), `Student-Teacher ratio (2008-09)` (Example values: [15.1, 12.5, 14.3]), `French enrollment (2011-12)` (Example values: [7,279 (51.5%), 6,937 (47.8%), 11,057 (51.2%)]), `Graduation rate (2011-12)` (Example values: [89.3%, 87.7%, 87.0%]), `Withdrawal rate (2010-11)` (Example values: [5.3%, 4.1%, 7.0%])]\n", + "ori_query": "select `withdrawal rate (2010-11)` from `1-21514460-1` where `headquarters` = 'truro'", + "amb_query": "SELECT \"withdrawal rate (2010-11)\" FROM \"1-21514460-1\" WHERE headquarters IN ('truro', 'truro, ns')" + }, + { + "db_id": "1-21514460-1", + "question": "What is the graduation rate for the school district with headquarters located in Sydney?", + "evidence": "", + "schema_text_wo_content": "Table 1-21514460-1, columns = [School District, Headquarters, Sector, Enrollment (2011-12), Teachers (2008-09, Student-Teacher ratio (2008-09), French enrollment (2011-12), Graduation rate (2011-12), Withdrawal rate (2010-11)]\n", + "schema_text_with_content": "Table 1-21514460-1, columns = [`School District` (Example values: [annapolis valley regional school board, cape breton - victoria regional school board, chignecto-central regional school board]), `Headquarters` (Example values: [berwick, canada, sydney, new south wales, truro, ns]), `Sector` (Example values: [anglophone, francophone]), `Enrollment (2011-12)` (Example values: [14141.0, 14522.0, 21611.0]), `Teachers (2008-09` (Example values: [1064.0, 1293.0, 1651.0]), `Student-Teacher ratio (2008-09)` (Example values: [15.1, 12.5, 14.3]), `French enrollment (2011-12)` (Example values: [7,279 (51.5%), 6,937 (47.8%), 11,057 (51.2%)]), `Graduation rate (2011-12)` (Example values: [89.3%, 87.7%, 87.0%]), `Withdrawal rate (2010-11)` (Example values: [5.3%, 4.1%, 7.0%])]\n", + "ori_query": "select `graduation rate (2011-12)` from `1-21514460-1` where `headquarters` = 'sydney'", + "amb_query": "SELECT \"graduation rate (2011-12)\" FROM \"1-21514460-1\" WHERE headquarters IN ('sydney', 'sydney, new south wales')" + }, + { + "db_id": "1-23235767-4", + "question": "Name the surface for las vegas", + "evidence": "", + "schema_text_wo_content": "Table 1-23235767-4, columns = [Outcome, Year, Championship, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-23235767-4, columns = [`Outcome` (Example values: [runner-up, winner]), `Year` (Example values: [1973.0, 1974.0, 1975.0]), `Championship` (Example values: [monte-carlo, stockholm, rome]), `Surface` (Example values: [clay surface, hard, clay match surface]), `Opponent in the final` (Example values: [ilie năstase, tom gorman, tom okker]), `Score in the final` (Example values: [4–6, 1–6, 2–6, 3–6, 6–4, 6–7, 6–3, 6–4, 6–2])]\n", + "ori_query": "select `surface` from `1-23235767-4` where `championship` = 'las vegas'", + "amb_query": "SELECT \"surface\" FROM \"1-23235767-4\" WHERE championship IN ('las vegas', 'las vegas, nv, usa')" + }, + { + "db_id": "1-23235767-4", + "question": "Name the surface for philadelphia", + "evidence": "", + "schema_text_wo_content": "Table 1-23235767-4, columns = [Outcome, Year, Championship, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-23235767-4, columns = [`Outcome` (Example values: [runner-up, winner]), `Year` (Example values: [1973.0, 1974.0, 1975.0]), `Championship` (Example values: [monte-carlo, stockholm, rome]), `Surface` (Example values: [clay surface, hard, clay match surface]), `Opponent in the final` (Example values: [ilie năstase, tom gorman, tom okker]), `Score in the final` (Example values: [4–6, 1–6, 2–6, 3–6, 6–4, 6–7, 6–3, 6–4, 6–2])]\n", + "ori_query": "select `surface` from `1-23235767-4` where `championship` = 'philadelphia'", + "amb_query": "SELECT \"surface\" FROM \"1-23235767-4\" WHERE championship IN ('philadelphia', 'philadelphia, pennsylvania')" + }, + { + "db_id": "1-23235767-4", + "question": "Name the year for clay for boston and guillermo vilas", + "evidence": "", + "schema_text_wo_content": "Table 1-23235767-4, columns = [Outcome, Year, Championship, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-23235767-4, columns = [`Outcome` (Example values: [runner-up, winner]), `Year` (Example values: [1973.0, 1974.0, 1975.0]), `Championship` (Example values: [monte-carlo, stockholm, rome]), `Surface` (Example values: [clay surface, hard, clay match surface]), `Opponent in the final` (Example values: [ilie năstase, tom gorman, tom okker]), `Score in the final` (Example values: [4–6, 1–6, 2–6, 3–6, 6–4, 6–7, 6–3, 6–4, 6–2])]\n", + "ori_query": "select `year` from `1-23235767-4` where `surface` = 'clay' and `championship` = 'boston' and `opponent in the final` = 'guillermo vilas'", + "amb_query": "SELECT \"year\" FROM \"1-23235767-4\" WHERE surface IN ('clay match surface', 'clay playing surface', 'clay', 'clay surface') AND championship IN ('boston, usa', 'boston', 'boston metropolitan area') AND \"opponent in the final\" = 'guillermo vilas'" + }, + { + "db_id": "1-23235767-4", + "question": "Name the championship for clay and corrado barazzutti", + "evidence": "", + "schema_text_wo_content": "Table 1-23235767-4, columns = [Outcome, Year, Championship, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-23235767-4, columns = [`Outcome` (Example values: [runner-up, winner]), `Year` (Example values: [1973.0, 1974.0, 1975.0]), `Championship` (Example values: [monte-carlo, stockholm, rome]), `Surface` (Example values: [clay surface, hard, clay match surface]), `Opponent in the final` (Example values: [ilie năstase, tom gorman, tom okker]), `Score in the final` (Example values: [4–6, 1–6, 2–6, 3–6, 6–4, 6–7, 6–3, 6–4, 6–2])]\n", + "ori_query": "select `championship` from `1-23235767-4` where `surface` = 'clay' and `opponent in the final` = 'corrado barazzutti'", + "amb_query": "SELECT \"championship\" FROM \"1-23235767-4\" WHERE surface IN ('clay match surface', 'clay playing surface', 'clay', 'clay surface') AND \"opponent in the final\" = 'corrado barazzutti'" + }, + { + "db_id": "1-23235767-4", + "question": "Name the number of year for 6–3, 6–2 hard surface", + "evidence": "", + "schema_text_wo_content": "Table 1-23235767-4, columns = [Outcome, Year, Championship, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-23235767-4, columns = [`Outcome` (Example values: [runner-up, winner]), `Year` (Example values: [1973.0, 1974.0, 1975.0]), `Championship` (Example values: [monte-carlo, stockholm, rome]), `Surface` (Example values: [clay surface, hard, clay match surface]), `Opponent in the final` (Example values: [ilie năstase, tom gorman, tom okker]), `Score in the final` (Example values: [4–6, 1–6, 2–6, 3–6, 6–4, 6–7, 6–3, 6–4, 6–2])]\n", + "ori_query": "select count(`year`) from `1-23235767-4` where `score in the final` = '6–3, 6–2' and `surface` = 'hard'", + "amb_query": "SELECT COUNT(\"year\") FROM \"1-23235767-4\" WHERE \"score in the final\" = '6–3, 6–2' AND surface IN ('hard surface', 'hard')" + }, + { + "db_id": "1-21734764-1", + "question": "What is the population density of west bandung regency *?", + "evidence": "", + "schema_text_wo_content": "Table 1-21734764-1, columns = [Administrative division, Area (km²) 2005, Population 2010 Census, Population 2011 SIAK Database, Population density (/km² 2010)]\n", + "schema_text_with_content": "Table 1-21734764-1, columns = [`Administrative division` (Example values: [bandung city, cimahi city, west java, bandung regency, indonesia]), `Area (km²) 2005` (Example values: [167.27, 41.2, 1,756.65]), `Population 2010 Census` (Example values: [2394873.0, 541177.0, 3178543.0]), `Population 2011 SIAK Database` (Example values: [2,536,649, 606,699, 3,672,994]), `Population density (/km² 2010)` (Example values: [14125.0, 13134.0, 1801.0])]\n", + "ori_query": "select `population density (/km² 2010)` from `1-21734764-1` where `administrative division` = 'west bandung regency *'", + "amb_query": "SELECT \"population density (/km² 2010)\" FROM \"1-21734764-1\" WHERE administrative division IN ('west bandung regency *', 'west bandung district')" + }, + { + "db_id": "1-21734764-1", + "question": "What is the population density of bandung regency?", + "evidence": "", + "schema_text_wo_content": "Table 1-21734764-1, columns = [Administrative division, Area (km²) 2005, Population 2010 Census, Population 2011 SIAK Database, Population density (/km² 2010)]\n", + "schema_text_with_content": "Table 1-21734764-1, columns = [`Administrative division` (Example values: [bandung city, cimahi city, west java, bandung regency, indonesia]), `Area (km²) 2005` (Example values: [167.27, 41.2, 1,756.65]), `Population 2010 Census` (Example values: [2394873.0, 541177.0, 3178543.0]), `Population 2011 SIAK Database` (Example values: [2,536,649, 606,699, 3,672,994]), `Population density (/km² 2010)` (Example values: [14125.0, 13134.0, 1801.0])]\n", + "ori_query": "select `population density (/km² 2010)` from `1-21734764-1` where `administrative division` = 'bandung regency'", + "amb_query": "SELECT \"population density (/km² 2010)\" FROM \"1-21734764-1\" WHERE administrative division IN ('bandung regency, indonesia', 'bandung regency')" + }, + { + "db_id": "1-21734764-1", + "question": "What is the area of cimahi city?", + "evidence": "", + "schema_text_wo_content": "Table 1-21734764-1, columns = [Administrative division, Area (km²) 2005, Population 2010 Census, Population 2011 SIAK Database, Population density (/km² 2010)]\n", + "schema_text_with_content": "Table 1-21734764-1, columns = [`Administrative division` (Example values: [bandung city, cimahi city, west java, bandung regency, indonesia]), `Area (km²) 2005` (Example values: [167.27, 41.2, 1,756.65]), `Population 2010 Census` (Example values: [2394873.0, 541177.0, 3178543.0]), `Population 2011 SIAK Database` (Example values: [2,536,649, 606,699, 3,672,994]), `Population density (/km² 2010)` (Example values: [14125.0, 13134.0, 1801.0])]\n", + "ori_query": "select `area (km²) 2005` from `1-21734764-1` where `administrative division` = 'cimahi city'", + "amb_query": "SELECT \"area (km²) 2005\" FROM \"1-21734764-1\" WHERE administrative division IN ('cimahi city', 'cimahi city, west java')" + }, + { + "db_id": "1-21821014-1", + "question": "What was the installation date in berkeley, california? ", + "evidence": "", + "schema_text_wo_content": "Table 1-21821014-1, columns = [Chapter, Installation Date, Institution, Location, Inactive]\n", + "schema_text_with_content": "Table 1-21821014-1, columns = [`Chapter` (Example values: [gamma, delta, epsilon]), `Installation Date` (Example values: [cannot handle non-empty timestamp argument! 1930, 1931, 1935]), `Institution` (Example values: [oregon state university, whitman college, university of new mexico]), `Location` (Example values: [corvallis, oregon, walla walla, washington, albuquerque, new mexico]), `Inactive` (Example values: [1968, ? (before 1950), ? (evidence of activity in 1951)])]\n", + "ori_query": "select `installation date` from `1-21821014-1` where `location` = 'berkeley, california'", + "amb_query": "SELECT \"installation date\" FROM \"1-21821014-1\" WHERE location IN ('berkeley, california', 'city of berkeley, california')" + }, + { + "db_id": "1-21821014-1", + "question": "What was the installation date in El Paso, Texas? ", + "evidence": "", + "schema_text_wo_content": "Table 1-21821014-1, columns = [Chapter, Installation Date, Institution, Location, Inactive]\n", + "schema_text_with_content": "Table 1-21821014-1, columns = [`Chapter` (Example values: [gamma, delta, epsilon]), `Installation Date` (Example values: [cannot handle non-empty timestamp argument! 1930, 1931, 1935]), `Institution` (Example values: [oregon state university, whitman college, university of new mexico]), `Location` (Example values: [corvallis, oregon, walla walla, washington, albuquerque, new mexico]), `Inactive` (Example values: [1968, ? (before 1950), ? (evidence of activity in 1951)])]\n", + "ori_query": "select `installation date` from `1-21821014-1` where `location` = 'el paso, texas'", + "amb_query": "SELECT \"installation date\" FROM \"1-21821014-1\" WHERE location IN ('el paso city', 'el paso, texas')" + }, + { + "db_id": "1-2190919-1", + "question": "What racing team/s had the 39th position?", + "evidence": "", + "schema_text_wo_content": "Table 1-2190919-1, columns = [Year, Starts, Wins, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-2190919-1, columns = [`Year` (Example values: [1986.0, 1987.0, 1988.0]), `Starts` (Example values: [3.0, 2.0, 9.0]), `Wins` (Example values: [0.0]), `Top 10` (Example values: [0.0, 1.0]), `Poles` (Example values: [0.0]), `Avg. Start` (Example values: [23.3, 35.0, 8.5]), `Avg. Finish` (Example values: [23.3, 37.5, 21.0]), `Winnings` (Example values: [$5,085, $3,415, $5,905]), `Position` (Example values: [75th, 102nd, position 92]), `Team(s)` (Example values: [#08 miller racing, #07 miller racing, #31 bob clark motorsports])]\n", + "ori_query": "select `team(s)` from `1-2190919-1` where `position` = '39th'", + "amb_query": "SELECT \"team(s)\" FROM \"1-2190919-1\" WHERE position IN ('39th place', '39th')" + }, + { + "db_id": "1-2190919-1", + "question": "What racing team/s had the 92nd position?", + "evidence": "", + "schema_text_wo_content": "Table 1-2190919-1, columns = [Year, Starts, Wins, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-2190919-1, columns = [`Year` (Example values: [1986.0, 1987.0, 1988.0]), `Starts` (Example values: [3.0, 2.0, 9.0]), `Wins` (Example values: [0.0]), `Top 10` (Example values: [0.0, 1.0]), `Poles` (Example values: [0.0]), `Avg. Start` (Example values: [23.3, 35.0, 8.5]), `Avg. Finish` (Example values: [23.3, 37.5, 21.0]), `Winnings` (Example values: [$5,085, $3,415, $5,905]), `Position` (Example values: [75th, 102nd, position 92]), `Team(s)` (Example values: [#08 miller racing, #07 miller racing, #31 bob clark motorsports])]\n", + "ori_query": "select `team(s)` from `1-2190919-1` where `position` = '92nd'", + "amb_query": "SELECT \"team(s)\" FROM \"1-2190919-1\" WHERE position IN ('position 92', '92nd')" + }, + { + "db_id": "1-2231241-1", + "question": "Who was the winner of seat no 4 for the election on november 1987", + "evidence": "", + "schema_text_wo_content": "Table 1-2231241-1, columns = [Election, Mayor, Seat no 1, Seat no 2, Seat no 3, Seat no 4, Seat no 5, Seat no 6]\n", + "schema_text_with_content": "Table 1-2231241-1, columns = [`Election` (Example values: [before first election, 1967-01-25, november 8, 1968]), `Mayor` (Example values: [john j. seguier, j. albert clément, laurent g. belley]), `Seat no 1` (Example values: [donald kirk, jacques lachapelle, réjean-andré sauvé]), `Seat no 2` (Example values: [j. andré laferrière, claude allard, louis e. denoncourt]), `Seat no 3` (Example values: [edward whittingham, margaret frigon, roland tissot]), `Seat no 4` (Example values: [j. albert clément, roger gamache, zsolt pogany]), `Seat no 5` (Example values: [arthur e. ainger, g. sanscartier, donald s. dutton*]), `Seat no 6` (Example values: [j. c. sarault, harvey e. uline, edward j. toal])]\n", + "ori_query": "select `seat no 4` from `1-2231241-1` where `election` = 'november 1987'", + "amb_query": "SELECT \"seat no 4\" FROM \"1-2231241-1\" WHERE election IN ('november 1987', 'november of 1987')" + }, + { + "db_id": "1-2231241-1", + "question": "Who was the winner of seat no 4 for the election on november 1999", + "evidence": "", + "schema_text_wo_content": "Table 1-2231241-1, columns = [Election, Mayor, Seat no 1, Seat no 2, Seat no 3, Seat no 4, Seat no 5, Seat no 6]\n", + "schema_text_with_content": "Table 1-2231241-1, columns = [`Election` (Example values: [before first election, 1967-01-25, november 8, 1968]), `Mayor` (Example values: [john j. seguier, j. albert clément, laurent g. belley]), `Seat no 1` (Example values: [donald kirk, jacques lachapelle, réjean-andré sauvé]), `Seat no 2` (Example values: [j. andré laferrière, claude allard, louis e. denoncourt]), `Seat no 3` (Example values: [edward whittingham, margaret frigon, roland tissot]), `Seat no 4` (Example values: [j. albert clément, roger gamache, zsolt pogany]), `Seat no 5` (Example values: [arthur e. ainger, g. sanscartier, donald s. dutton*]), `Seat no 6` (Example values: [j. c. sarault, harvey e. uline, edward j. toal])]\n", + "ori_query": "select `seat no 4` from `1-2231241-1` where `election` = 'november 1999'", + "amb_query": "SELECT \"seat no 4\" FROM \"1-2231241-1\" WHERE election IN ('1999 november', 'november 1999')" + }, + { + "db_id": "1-2231241-1", + "question": "Who was the winner of seat no 4 for the election on January 25, 1967", + "evidence": "", + "schema_text_wo_content": "Table 1-2231241-1, columns = [Election, Mayor, Seat no 1, Seat no 2, Seat no 3, Seat no 4, Seat no 5, Seat no 6]\n", + "schema_text_with_content": "Table 1-2231241-1, columns = [`Election` (Example values: [before first election, 1967-01-25, november 8, 1968]), `Mayor` (Example values: [john j. seguier, j. albert clément, laurent g. belley]), `Seat no 1` (Example values: [donald kirk, jacques lachapelle, réjean-andré sauvé]), `Seat no 2` (Example values: [j. andré laferrière, claude allard, louis e. denoncourt]), `Seat no 3` (Example values: [edward whittingham, margaret frigon, roland tissot]), `Seat no 4` (Example values: [j. albert clément, roger gamache, zsolt pogany]), `Seat no 5` (Example values: [arthur e. ainger, g. sanscartier, donald s. dutton*]), `Seat no 6` (Example values: [j. c. sarault, harvey e. uline, edward j. toal])]\n", + "ori_query": "select `seat no 4` from `1-2231241-1` where `election` = 'january 25, 1967'", + "amb_query": "SELECT \"seat no 4\" FROM \"1-2231241-1\" WHERE election IN ('january 25, 1967', '1967-01-25')" + }, + { + "db_id": "1-224794-3", + "question": "How many vacators were in the oklahoma 1st district?", + "evidence": "", + "schema_text_wo_content": "Table 1-224794-3, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224794-3, columns = [`District` (Example values: [missouri 11th, 33rd congressional district of pennsylvania, west virginia 5th]), `Vacator` (Example values: [john b. sullivan (d), frank buchanan (d), john kee (d)]), `Reason for change` (Example values: [died january 29, 1951, died april 27, 1951, died may 8, 1951]), `Successor` (Example values: [claude i. bakewell (r), vera buchanan (d), elizabeth kee (d)]), `Date successor seated` (Example values: [march 9, 1951, july 24, 1951, july 17, 1951])]\n", + "ori_query": "select count(`vacator`) from `1-224794-3` where `district` = 'oklahoma 1st'", + "amb_query": "SELECT COUNT(\"vacator\") FROM \"1-224794-3\" WHERE district IN ('1st congressional district, oklahoma', 'oklahoma 1st')" + }, + { + "db_id": "1-224794-3", + "question": "How many vacators were in the georgia 2nd district?", + "evidence": "", + "schema_text_wo_content": "Table 1-224794-3, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224794-3, columns = [`District` (Example values: [missouri 11th, 33rd congressional district of pennsylvania, west virginia 5th]), `Vacator` (Example values: [john b. sullivan (d), frank buchanan (d), john kee (d)]), `Reason for change` (Example values: [died january 29, 1951, died april 27, 1951, died may 8, 1951]), `Successor` (Example values: [claude i. bakewell (r), vera buchanan (d), elizabeth kee (d)]), `Date successor seated` (Example values: [march 9, 1951, july 24, 1951, july 17, 1951])]\n", + "ori_query": "select count(`vacator`) from `1-224794-3` where `district` = 'georgia 2nd'", + "amb_query": "SELECT COUNT(\"vacator\") FROM \"1-224794-3\" WHERE \"district\" = 'georgia 2nd'" + }, + { + "db_id": "1-224794-3", + "question": "Who was the successor for the new york 32nd district?", + "evidence": "", + "schema_text_wo_content": "Table 1-224794-3, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224794-3, columns = [`District` (Example values: [missouri 11th, 33rd congressional district of pennsylvania, west virginia 5th]), `Vacator` (Example values: [john b. sullivan (d), frank buchanan (d), john kee (d)]), `Reason for change` (Example values: [died january 29, 1951, died april 27, 1951, died may 8, 1951]), `Successor` (Example values: [claude i. bakewell (r), vera buchanan (d), elizabeth kee (d)]), `Date successor seated` (Example values: [march 9, 1951, july 24, 1951, july 17, 1951])]\n", + "ori_query": "select `successor` from `1-224794-3` where `district` = 'new york 32nd'", + "amb_query": "SELECT \"successor\" FROM \"1-224794-3\" WHERE district IN ('new york 32nd district', 'new york 32nd')" + }, + { + "db_id": "1-224794-3", + "question": "Who was the successor for the maine 3rd district?", + "evidence": "", + "schema_text_wo_content": "Table 1-224794-3, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224794-3, columns = [`District` (Example values: [missouri 11th, 33rd congressional district of pennsylvania, west virginia 5th]), `Vacator` (Example values: [john b. sullivan (d), frank buchanan (d), john kee (d)]), `Reason for change` (Example values: [died january 29, 1951, died april 27, 1951, died may 8, 1951]), `Successor` (Example values: [claude i. bakewell (r), vera buchanan (d), elizabeth kee (d)]), `Date successor seated` (Example values: [march 9, 1951, july 24, 1951, july 17, 1951])]\n", + "ori_query": "select `successor` from `1-224794-3` where `district` = 'maine 3rd'", + "amb_query": "SELECT \"successor\" FROM \"1-224794-3\" WHERE \"district\" = 'maine 3rd'" + }, + { + "db_id": "1-224794-3", + "question": "How many vacators were in the Pennsylvania 33rd district?", + "evidence": "", + "schema_text_wo_content": "Table 1-224794-3, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224794-3, columns = [`District` (Example values: [missouri 11th, 33rd congressional district of pennsylvania, west virginia 5th]), `Vacator` (Example values: [john b. sullivan (d), frank buchanan (d), john kee (d)]), `Reason for change` (Example values: [died january 29, 1951, died april 27, 1951, died may 8, 1951]), `Successor` (Example values: [claude i. bakewell (r), vera buchanan (d), elizabeth kee (d)]), `Date successor seated` (Example values: [march 9, 1951, july 24, 1951, july 17, 1951])]\n", + "ori_query": "select count(`vacator`) from `1-224794-3` where `district` = 'pennsylvania 33rd'", + "amb_query": "SELECT COUNT(\"vacator\") FROM \"1-224794-3\" WHERE district IN ('pennsylvania 33rd', '33rd congressional district of pennsylvania')" + }, + { + "db_id": "1-224794-3", + "question": "Who was the successor for the Kentucky 2nd district?", + "evidence": "", + "schema_text_wo_content": "Table 1-224794-3, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224794-3, columns = [`District` (Example values: [missouri 11th, 33rd congressional district of pennsylvania, west virginia 5th]), `Vacator` (Example values: [john b. sullivan (d), frank buchanan (d), john kee (d)]), `Reason for change` (Example values: [died january 29, 1951, died april 27, 1951, died may 8, 1951]), `Successor` (Example values: [claude i. bakewell (r), vera buchanan (d), elizabeth kee (d)]), `Date successor seated` (Example values: [march 9, 1951, july 24, 1951, july 17, 1951])]\n", + "ori_query": "select `successor` from `1-224794-3` where `district` = 'kentucky 2nd'", + "amb_query": "SELECT \"successor\" FROM \"1-224794-3\" WHERE district IN ('kentucky 2nd', 'kentucky 2nd district, usa')" + }, + { + "db_id": "1-224837-4", + "question": "Name the date successor seated is territory south of the river ohio", + "evidence": "", + "schema_text_wo_content": "Table 1-224837-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224837-4, columns = [`District` (Example values: [delaware at-large, ohio river area south, maryland 2nd]), `Vacator` (Example values: [john patten (a), vacant, john francis mercer (a)]), `Reason for change` (Example values: [contested election; served until february 14, 1794, delegate seat established, resigned april 13, 1794]), `Successor` (Example values: [henry latimer (p), james white non-voting delegate, gabriel duvall (a)]), `Date successor seated` (Example values: [seated february 14, 1794, elected september 3, 1794, seated november 11, 1794])]\n", + "ori_query": "select `date successor seated` from `1-224837-4` where `district` = 'territory south of the river ohio'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-224837-4\" WHERE district IN ('ohio river area south', 'territory south of the river ohio')" + }, + { + "db_id": "1-224837-4", + "question": "Name the date successor seated is south carolina 3rd", + "evidence": "", + "schema_text_wo_content": "Table 1-224837-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-224837-4, columns = [`District` (Example values: [delaware at-large, ohio river area south, maryland 2nd]), `Vacator` (Example values: [john patten (a), vacant, john francis mercer (a)]), `Reason for change` (Example values: [contested election; served until february 14, 1794, delegate seat established, resigned april 13, 1794]), `Successor` (Example values: [henry latimer (p), james white non-voting delegate, gabriel duvall (a)]), `Date successor seated` (Example values: [seated february 14, 1794, elected september 3, 1794, seated november 11, 1794])]\n", + "ori_query": "select `date successor seated` from `1-224837-4` where `district` = 'south carolina 3rd'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-224837-4\" WHERE district IN ('south carolina 3rd', 'south carolina 3rd congressional district')" + }, + { + "db_id": "1-225093-4", + "question": "What is the date successor seated where Massachusetts 2nd is the district?", + "evidence": "", + "schema_text_wo_content": "Table 1-225093-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225093-4, columns = [`District` (Example values: [north carolina 7th, new jersey's at-large congressional district, indiana territory at-large]), `Vacator` (Example values: [john culpepper (f), ezra darby (dr), benjamin parke]), `Reason for change` (Example values: [seat declared vacant january 2, 1808, died january 27, 1808, resigned march 1, 1808]), `Successor` (Example values: [john culpepper (f), adam boyd (dr), jesse b. thomas]), `Date successor seated` (Example values: [seated february 23, 1808, seated march 8, 1808, october 22, 1808])]\n", + "ori_query": "select `date successor seated` from `1-225093-4` where `district` = 'massachusetts 2nd'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-225093-4\" WHERE district IN ('massachusetts 2nd congressional district', 'massachusetts 2nd')" + }, + { + "db_id": "1-225100-4", + "question": "What is the reason for change when pennsylvania 14th is the district? ", + "evidence": "", + "schema_text_wo_content": "Table 1-225100-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225100-4, columns = [`District` (Example values: [kentucky 7th, kentucky 8th district, usa, 6th district of maryland]), `Vacator` (Example values: [george robertson (dr), wingfield bullock (dr), jeremiah cosden (dr)]), `Reason for change` (Example values: [resigned before congress met, died october 13, 1821, before congress met, cosden's election was contested by reed]), `Successor` (Example values: [john s. smith (dr), james d. breckinridge (dr), philip reed (dr)]), `Date successor seated` (Example values: [seated december 3, 1821, seated january 2, 1822, seated march 19, 1822])]\n", + "ori_query": "select `reason for change` from `1-225100-4` where `district` = 'pennsylvania 14th'", + "amb_query": "SELECT \"reason for change\" FROM \"1-225100-4\" WHERE district IN ('14th district of pennsylvania', 'pennsylvania 14th')" + }, + { + "db_id": "1-225100-4", + "question": "Who is the vacator when south carolina 2nd is the district?", + "evidence": "", + "schema_text_wo_content": "Table 1-225100-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225100-4, columns = [`District` (Example values: [kentucky 7th, kentucky 8th district, usa, 6th district of maryland]), `Vacator` (Example values: [george robertson (dr), wingfield bullock (dr), jeremiah cosden (dr)]), `Reason for change` (Example values: [resigned before congress met, died october 13, 1821, before congress met, cosden's election was contested by reed]), `Successor` (Example values: [john s. smith (dr), james d. breckinridge (dr), philip reed (dr)]), `Date successor seated` (Example values: [seated december 3, 1821, seated january 2, 1822, seated march 19, 1822])]\n", + "ori_query": "select `vacator` from `1-225100-4` where `district` = 'south carolina 2nd'", + "amb_query": "SELECT \"vacator\" FROM \"1-225100-4\" WHERE \"district\" = 'south carolina 2nd'" + }, + { + "db_id": "1-225100-4", + "question": "Who is the successor when kentucky 8th is the district?", + "evidence": "", + "schema_text_wo_content": "Table 1-225100-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225100-4, columns = [`District` (Example values: [kentucky 7th, kentucky 8th district, usa, 6th district of maryland]), `Vacator` (Example values: [george robertson (dr), wingfield bullock (dr), jeremiah cosden (dr)]), `Reason for change` (Example values: [resigned before congress met, died october 13, 1821, before congress met, cosden's election was contested by reed]), `Successor` (Example values: [john s. smith (dr), james d. breckinridge (dr), philip reed (dr)]), `Date successor seated` (Example values: [seated december 3, 1821, seated january 2, 1822, seated march 19, 1822])]\n", + "ori_query": "select `successor` from `1-225100-4` where `district` = 'kentucky 8th'", + "amb_query": "SELECT \"successor\" FROM \"1-225100-4\" WHERE district IN ('kentucky 8th', 'kentucky 8th district, usa')" + }, + { + "db_id": "1-225100-4", + "question": "What is the reason for change when maryland 6th is the district? ", + "evidence": "", + "schema_text_wo_content": "Table 1-225100-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225100-4, columns = [`District` (Example values: [kentucky 7th, kentucky 8th district, usa, 6th district of maryland]), `Vacator` (Example values: [george robertson (dr), wingfield bullock (dr), jeremiah cosden (dr)]), `Reason for change` (Example values: [resigned before congress met, died october 13, 1821, before congress met, cosden's election was contested by reed]), `Successor` (Example values: [john s. smith (dr), james d. breckinridge (dr), philip reed (dr)]), `Date successor seated` (Example values: [seated december 3, 1821, seated january 2, 1822, seated march 19, 1822])]\n", + "ori_query": "select `reason for change` from `1-225100-4` where `district` = 'maryland 6th'", + "amb_query": "SELECT \"reason for change\" FROM \"1-225100-4\" WHERE district IN ('maryland 6th', '6th district of maryland')" + }, + { + "db_id": "1-225100-4", + "question": "Who is the vacator when south carolina 4th is the district?", + "evidence": "", + "schema_text_wo_content": "Table 1-225100-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225100-4, columns = [`District` (Example values: [kentucky 7th, kentucky 8th district, usa, 6th district of maryland]), `Vacator` (Example values: [george robertson (dr), wingfield bullock (dr), jeremiah cosden (dr)]), `Reason for change` (Example values: [resigned before congress met, died october 13, 1821, before congress met, cosden's election was contested by reed]), `Successor` (Example values: [john s. smith (dr), james d. breckinridge (dr), philip reed (dr)]), `Date successor seated` (Example values: [seated december 3, 1821, seated january 2, 1822, seated march 19, 1822])]\n", + "ori_query": "select `vacator` from `1-225100-4` where `district` = 'south carolina 4th'", + "amb_query": "SELECT \"vacator\" FROM \"1-225100-4\" WHERE district IN ('sc 4th district', 'south carolina 4th')" + }, + { + "db_id": "1-225100-4", + "question": "Who is the successor when florida territory at-large is the district?", + "evidence": "", + "schema_text_wo_content": "Table 1-225100-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225100-4, columns = [`District` (Example values: [kentucky 7th, kentucky 8th district, usa, 6th district of maryland]), `Vacator` (Example values: [george robertson (dr), wingfield bullock (dr), jeremiah cosden (dr)]), `Reason for change` (Example values: [resigned before congress met, died october 13, 1821, before congress met, cosden's election was contested by reed]), `Successor` (Example values: [john s. smith (dr), james d. breckinridge (dr), philip reed (dr)]), `Date successor seated` (Example values: [seated december 3, 1821, seated january 2, 1822, seated march 19, 1822])]\n", + "ori_query": "select `successor` from `1-225100-4` where `district` = 'florida territory at-large'", + "amb_query": "SELECT \"successor\" FROM \"1-225100-4\" WHERE district IN ('florida at-large district', 'florida territory at-large')" + }, + { + "db_id": "1-225102-4", + "question": "Name the reason for change pennsylvania 13th", + "evidence": "", + "schema_text_wo_content": "Table 1-225102-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225102-4, columns = [`District` (Example values: [new york 20th, pennsylvania 18th, mississippi at-large]), `Vacator` (Example values: [egbert ten eyck (j), patrick farrelly (j), christopher rankin (j)]), `Reason for change` (Example values: [lost contested election december 15, 1825, died january 12, 1826, died march 14, 1826]), `Successor` (Example values: [daniel hugunin, jr. (a), thomas h. sill (a), william haile (j)]), `Date successor seated` (Example values: [seated december 15, 1825, seated march 14, 1826, seated july 10, 1826])]\n", + "ori_query": "select `reason for change` from `1-225102-4` where `district` = 'pennsylvania 13th'", + "amb_query": "SELECT \"reason for change\" FROM \"1-225102-4\" WHERE district IN ('pennsylvania 13th', 'pennsylvania 13th district')" + }, + { + "db_id": "1-225204-4", + "question": "Name the date successor seated for pennsylvania 17th", + "evidence": "", + "schema_text_wo_content": "Table 1-225204-4, columns = [District, Vacator, Reason for change, Successor, Date successor seated]\n", + "schema_text_with_content": "Table 1-225204-4, columns = [`District` (Example values: [maine 4th, pennsylvania 20th, pennsylvania 18th]), `Vacator` (Example values: [vacant, enos hook ( d ), charles ogle ( w )]), `Reason for change` (Example values: [rep. george evans resigned in previous congress, resigned april 18, 1841, died may 10, 1841]), `Successor` (Example values: [david bronson ( w ), henry w. beeson ( d ), henry black ( w )]), `Date successor seated` (Example values: [seated may 31, 1841, seated june 28, 1841, seated october 12, 1841])]\n", + "ori_query": "select `date successor seated` from `1-225204-4` where `district` = 'pennsylvania 17th'", + "amb_query": "SELECT \"date successor seated\" FROM \"1-225204-4\" WHERE district IN ('pa-17', 'pennsylvania 17th')" + }, + { + "db_id": "1-22897453-1", + "question": "Name the k. r. narayanan values for mizoram", + "evidence": "", + "schema_text_wo_content": "Table 1-22897453-1, columns = [States, No. of MLA/MPs, Value of each Vote, K.R. Narayanan (Votes), K.R. Narayanan (Values), T.N. Seshan (Votes), T.N. Seshan (Values), Invalid (Votes), Invalid (Values)]\n", + "schema_text_with_content": "Table 1-22897453-1, columns = [`States` (Example values: [members of parliament, andhra pradesh, arunachal pradesh]), `No. of MLA/MPs` (Example values: [776.0, 294.0, 60.0]), `Value of each Vote` (Example values: [708.0, 148.0, 8.0]), `K.R. Narayanan (Votes)` (Example values: [676.0, 254.0, 56.0]), `K.R. Narayanan (Values)` (Example values: [478608.0, 37592.0, 448.0]), `T.N. Seshan (Votes)` (Example values: [26.0, 9.0, 0.0]), `T.N. Seshan (Values)` (Example values: [18408.0, 1332.0, 0.0]), `Invalid (Votes)` (Example values: [32.0, 17.0, 3.0]), `Invalid (Values)` (Example values: [22656.0, 2516.0, 24.0])]\n", + "ori_query": "select `k.r. narayanan (values)` from `1-22897453-1` where `states` = 'mizoram'", + "amb_query": "SELECT \"k.r. narayanan (values)\" FROM \"1-22897453-1\" WHERE states IN ('state of mizoram', 'mizoram')" + }, + { + "db_id": "1-22897453-1", + "question": "Name the k. r. narayanan values for karnataka", + "evidence": "", + "schema_text_wo_content": "Table 1-22897453-1, columns = [States, No. of MLA/MPs, Value of each Vote, K.R. Narayanan (Votes), K.R. Narayanan (Values), T.N. Seshan (Votes), T.N. Seshan (Values), Invalid (Votes), Invalid (Values)]\n", + "schema_text_with_content": "Table 1-22897453-1, columns = [`States` (Example values: [members of parliament, andhra pradesh, arunachal pradesh]), `No. of MLA/MPs` (Example values: [776.0, 294.0, 60.0]), `Value of each Vote` (Example values: [708.0, 148.0, 8.0]), `K.R. Narayanan (Votes)` (Example values: [676.0, 254.0, 56.0]), `K.R. Narayanan (Values)` (Example values: [478608.0, 37592.0, 448.0]), `T.N. Seshan (Votes)` (Example values: [26.0, 9.0, 0.0]), `T.N. Seshan (Values)` (Example values: [18408.0, 1332.0, 0.0]), `Invalid (Votes)` (Example values: [32.0, 17.0, 3.0]), `Invalid (Values)` (Example values: [22656.0, 2516.0, 24.0])]\n", + "ori_query": "select `k.r. narayanan (values)` from `1-22897453-1` where `states` = 'karnataka'", + "amb_query": "SELECT \"k.r. narayanan (values)\" FROM \"1-22897453-1\" WHERE states IN ('karnataka', 'karnataka, southern india')" + }, + { + "db_id": "1-22897453-1", + "question": "Name the k. r. narayanan values for assam", + "evidence": "", + "schema_text_wo_content": "Table 1-22897453-1, columns = [States, No. of MLA/MPs, Value of each Vote, K.R. Narayanan (Votes), K.R. Narayanan (Values), T.N. Seshan (Votes), T.N. Seshan (Values), Invalid (Votes), Invalid (Values)]\n", + "schema_text_with_content": "Table 1-22897453-1, columns = [`States` (Example values: [members of parliament, andhra pradesh, arunachal pradesh]), `No. of MLA/MPs` (Example values: [776.0, 294.0, 60.0]), `Value of each Vote` (Example values: [708.0, 148.0, 8.0]), `K.R. Narayanan (Votes)` (Example values: [676.0, 254.0, 56.0]), `K.R. Narayanan (Values)` (Example values: [478608.0, 37592.0, 448.0]), `T.N. Seshan (Votes)` (Example values: [26.0, 9.0, 0.0]), `T.N. Seshan (Values)` (Example values: [18408.0, 1332.0, 0.0]), `Invalid (Votes)` (Example values: [32.0, 17.0, 3.0]), `Invalid (Values)` (Example values: [22656.0, 2516.0, 24.0])]\n", + "ori_query": "select `k.r. narayanan (values)` from `1-22897453-1` where `states` = 'assam'", + "amb_query": "SELECT \"k.r. narayanan (values)\" FROM \"1-22897453-1\" WHERE states IN ('assam', 'assam, india')" + }, + { + "db_id": "1-22897453-1", + "question": "Name the k. r. narayanan values for pondicherry", + "evidence": "", + "schema_text_wo_content": "Table 1-22897453-1, columns = [States, No. of MLA/MPs, Value of each Vote, K.R. Narayanan (Votes), K.R. Narayanan (Values), T.N. Seshan (Votes), T.N. Seshan (Values), Invalid (Votes), Invalid (Values)]\n", + "schema_text_with_content": "Table 1-22897453-1, columns = [`States` (Example values: [members of parliament, andhra pradesh, arunachal pradesh]), `No. of MLA/MPs` (Example values: [776.0, 294.0, 60.0]), `Value of each Vote` (Example values: [708.0, 148.0, 8.0]), `K.R. Narayanan (Votes)` (Example values: [676.0, 254.0, 56.0]), `K.R. Narayanan (Values)` (Example values: [478608.0, 37592.0, 448.0]), `T.N. Seshan (Votes)` (Example values: [26.0, 9.0, 0.0]), `T.N. Seshan (Values)` (Example values: [18408.0, 1332.0, 0.0]), `Invalid (Votes)` (Example values: [32.0, 17.0, 3.0]), `Invalid (Values)` (Example values: [22656.0, 2516.0, 24.0])]\n", + "ori_query": "select `k.r. narayanan (values)` from `1-22897453-1` where `states` = 'pondicherry'", + "amb_query": "SELECT \"k.r. narayanan (values)\" FROM \"1-22897453-1\" WHERE states IN ('pondicherry region', 'pondicherry')" + }, + { + "db_id": "1-23346303-3", + "question": "what is the number of opponents where the location is new brunswick, nj?", + "evidence": "", + "schema_text_wo_content": "Table 1-23346303-3, columns = [Date, Opponent, Location, Irish Points, Opp. Points, Record]\n", + "schema_text_with_content": "Table 1-23346303-3, columns = [`Date` (Example values: [nov. 15/08, nov. 16/08, nov. 18/08]), `Opponent` (Example values: [central connecticut region, loyola, md, stetson]), `Location` (Example values: [tampa, florida, tampa bay area, tampa, florida, united states]), `Irish Points` (Example values: [100.0, 94.0, 103.0]), `Opp. Points` (Example values: [41.0, 46.0, 55.0]), `Record` (Example values: [1-0, 2-0, 3-0])]\n", + "ori_query": "select count(`opponent`) from `1-23346303-3` where `location` = 'new brunswick, nj'", + "amb_query": "SELECT COUNT(\"opponent\") FROM \"1-23346303-3\" WHERE location IN ('new brunswick, nj', 'new brunswick, new jersey')" + }, + { + "db_id": "1-23346303-3", + "question": "what is the record where the locaiton is tampa, fl and the opponent is louisville?", + "evidence": "", + "schema_text_wo_content": "Table 1-23346303-3, columns = [Date, Opponent, Location, Irish Points, Opp. Points, Record]\n", + "schema_text_with_content": "Table 1-23346303-3, columns = [`Date` (Example values: [nov. 15/08, nov. 16/08, nov. 18/08]), `Opponent` (Example values: [central connecticut region, loyola, md, stetson]), `Location` (Example values: [tampa, florida, tampa bay area, tampa, florida, united states]), `Irish Points` (Example values: [100.0, 94.0, 103.0]), `Opp. Points` (Example values: [41.0, 46.0, 55.0]), `Record` (Example values: [1-0, 2-0, 3-0])]\n", + "ori_query": "select `record` from `1-23346303-3` where `location` = 'tampa, fl' and `opponent` = 'louisville'", + "amb_query": "SELECT \"record\" FROM \"1-23346303-3\" WHERE location IN ('tampa bay area', 'tampa, florida, united states', 'tampa, fl', 'tampa, florida', 'tampa, fl, usa') AND opponent IN ('louisville', 'louisville, ky')" + }, + { + "db_id": "1-23346303-3", + "question": "what is the number of opponents where the location is syracuse, ny?", + "evidence": "", + "schema_text_wo_content": "Table 1-23346303-3, columns = [Date, Opponent, Location, Irish Points, Opp. Points, Record]\n", + "schema_text_with_content": "Table 1-23346303-3, columns = [`Date` (Example values: [nov. 15/08, nov. 16/08, nov. 18/08]), `Opponent` (Example values: [central connecticut region, loyola, md, stetson]), `Location` (Example values: [tampa, florida, tampa bay area, tampa, florida, united states]), `Irish Points` (Example values: [100.0, 94.0, 103.0]), `Opp. Points` (Example values: [41.0, 46.0, 55.0]), `Record` (Example values: [1-0, 2-0, 3-0])]\n", + "ori_query": "select count(`opponent`) from `1-23346303-3` where `location` = 'syracuse, ny'", + "amb_query": "SELECT COUNT(\"opponent\") FROM \"1-23346303-3\" WHERE location IN ('syracuse, new york', 'syracuse, ny')" + }, + { + "db_id": "1-23346303-3", + "question": "what is the record where the opponent is providence?", + "evidence": "", + "schema_text_wo_content": "Table 1-23346303-3, columns = [Date, Opponent, Location, Irish Points, Opp. Points, Record]\n", + "schema_text_with_content": "Table 1-23346303-3, columns = [`Date` (Example values: [nov. 15/08, nov. 16/08, nov. 18/08]), `Opponent` (Example values: [central connecticut region, loyola, md, stetson]), `Location` (Example values: [tampa, florida, tampa bay area, tampa, florida, united states]), `Irish Points` (Example values: [100.0, 94.0, 103.0]), `Opp. Points` (Example values: [41.0, 46.0, 55.0]), `Record` (Example values: [1-0, 2-0, 3-0])]\n", + "ori_query": "select `record` from `1-23346303-3` where `opponent` = 'providence'", + "amb_query": "SELECT \"record\" FROM \"1-23346303-3\" WHERE opponent IN ('providence, rhode island', 'providence')" + }, + { + "db_id": "1-23346303-3", + "question": "what is the record where the opponent is northern arizona?", + "evidence": "", + "schema_text_wo_content": "Table 1-23346303-3, columns = [Date, Opponent, Location, Irish Points, Opp. Points, Record]\n", + "schema_text_with_content": "Table 1-23346303-3, columns = [`Date` (Example values: [nov. 15/08, nov. 16/08, nov. 18/08]), `Opponent` (Example values: [central connecticut region, loyola, md, stetson]), `Location` (Example values: [tampa, florida, tampa bay area, tampa, florida, united states]), `Irish Points` (Example values: [100.0, 94.0, 103.0]), `Opp. Points` (Example values: [41.0, 46.0, 55.0]), `Record` (Example values: [1-0, 2-0, 3-0])]\n", + "ori_query": "select `record` from `1-23346303-3` where `opponent` = 'northern arizona'", + "amb_query": "SELECT \"record\" FROM \"1-23346303-3\" WHERE opponent IN ('northern arizona university', 'northern arizona')" + }, + { + "db_id": "1-23346303-3", + "question": "what is the record where the opponent is central connecticut?", + "evidence": "", + "schema_text_wo_content": "Table 1-23346303-3, columns = [Date, Opponent, Location, Irish Points, Opp. Points, Record]\n", + "schema_text_with_content": "Table 1-23346303-3, columns = [`Date` (Example values: [nov. 15/08, nov. 16/08, nov. 18/08]), `Opponent` (Example values: [central connecticut region, loyola, md, stetson]), `Location` (Example values: [tampa, florida, tampa bay area, tampa, florida, united states]), `Irish Points` (Example values: [100.0, 94.0, 103.0]), `Opp. Points` (Example values: [41.0, 46.0, 55.0]), `Record` (Example values: [1-0, 2-0, 3-0])]\n", + "ori_query": "select `record` from `1-23346303-3` where `opponent` = 'central connecticut'", + "amb_query": "SELECT \"record\" FROM \"1-23346303-3\" WHERE opponent IN ('central connecticut region', 'central connecticut')" + }, + { + "db_id": "1-2387790-2", + "question": "What was the average finish the year Bodine finished 98th?", + "evidence": "", + "schema_text_wo_content": "Table 1-2387790-2, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-2387790-2, columns = [`Year` (Example values: [1985.0, 1986.0, 1987.0]), `Starts` (Example values: [13.0, 31.0, 27.0]), `Wins` (Example values: [3.0, 2.0, 0.0]), `Top 5` (Example values: [7.0, 16.0, 8.0]), `Top 10` (Example values: [10.0, 24.0, 17.0]), `Poles` (Example values: [3.0, 8.0, 5.0]), `Avg. Start` (Example values: [3.7, 3.9, 5.7]), `Avg. Finish` (Example values: [8.2, 8.3, 11.7]), `Winnings` (Example values: [$51,465, $173,181, $138,551]), `Position` (Example values: [23rd, 2nd, 3rd finish]), `Team(s)` (Example values: [#15/#5 hendrick motorsports, #00 thomas brothers racing, #26 mike greci racing])]\n", + "ori_query": "select `avg. finish` from `1-2387790-2` where `position` = '98th'", + "amb_query": "SELECT \"avg. finish\" FROM \"1-2387790-2\" WHERE position IN ('ranked 98th', '98th')" + }, + { + "db_id": "1-2387790-2", + "question": "What was the average finish the year Bodine finished 3rd?", + "evidence": "", + "schema_text_wo_content": "Table 1-2387790-2, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-2387790-2, columns = [`Year` (Example values: [1985.0, 1986.0, 1987.0]), `Starts` (Example values: [13.0, 31.0, 27.0]), `Wins` (Example values: [3.0, 2.0, 0.0]), `Top 5` (Example values: [7.0, 16.0, 8.0]), `Top 10` (Example values: [10.0, 24.0, 17.0]), `Poles` (Example values: [3.0, 8.0, 5.0]), `Avg. Start` (Example values: [3.7, 3.9, 5.7]), `Avg. Finish` (Example values: [8.2, 8.3, 11.7]), `Winnings` (Example values: [$51,465, $173,181, $138,551]), `Position` (Example values: [23rd, 2nd, 3rd finish]), `Team(s)` (Example values: [#15/#5 hendrick motorsports, #00 thomas brothers racing, #26 mike greci racing])]\n", + "ori_query": "select `avg. finish` from `1-2387790-2` where `position` = '3rd'", + "amb_query": "SELECT \"avg. finish\" FROM \"1-2387790-2\" WHERE position IN ('3rd finish', '3rd')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the owners 2009 for terre haute", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select `owner(s) (2009)` from `1-23958917-1` where `location` = 'terre haute'", + "amb_query": "SELECT \"owner(s) (2009)\" FROM \"1-23958917-1\" WHERE location IN ('terre haute, indiana', 'terre haute')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the owners 2009 for new albany", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select `owner(s) (2009)` from `1-23958917-1` where `location` = 'new albany'", + "amb_query": "SELECT \"owner(s) (2009)\" FROM \"1-23958917-1\" WHERE location IN ('new albany', 'new albany township')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the owners 2009 for jasper", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select `owner(s) (2009)` from `1-23958917-1` where `location` = 'jasper'", + "amb_query": "SELECT \"owner(s) (2009)\" FROM \"1-23958917-1\" WHERE location IN ('jasper, indiana', 'jasper')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the number for service dates for hoosier energy for merom", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select count(`in service dates`) from `1-23958917-1` where `owner(s) (2009)` = 'hoosier energy' and `location` = 'merom'", + "amb_query": "SELECT COUNT(\"in service dates\") FROM \"1-23958917-1\" WHERE \"owner(s) (2009)\" = 'hoosier energy' AND location IN ('merom town', 'merom')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the number for service dates for hoosier energy for crawfordsville", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select count(`in service dates`) from `1-23958917-1` where `owner(s) (2009)` = 'hoosier energy' and `location` = 'crawfordsville'", + "amb_query": "SELECT COUNT(\"in service dates\") FROM \"1-23958917-1\" WHERE \"owner(s) (2009)\" = 'hoosier energy' AND location IN ('crawfordsville city', 'crawfordsville')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the owners 2009 for south side indianapolis", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select `owner(s) (2009)` from `1-23958917-1` where `location` = 'south side indianapolis'", + "amb_query": "SELECT \"owner(s) (2009)\" FROM \"1-23958917-1\" WHERE location IN ('south side indianapolis', 'indianapolis, south side')" + }, + { + "db_id": "1-23958917-1", + "question": "Name the number for service dates for hoosier energy for petersburg", + "evidence": "", + "schema_text_wo_content": "Table 1-23958917-1, columns = [Name, Location, Act. Units, Stacks, In Service Dates, Unit Capacity (2009), Nameplate Capacity (2009 MW ), Owner Type, Owner(s) (2009)]\n", + "schema_text_with_content": "Table 1-23958917-1, columns = [`Name` (Example values: [a.b. brown, bailly, cayuga]), `Location` (Example values: [posey co. / vand. co., chesterton, cayuga]), `Act. Units` (Example values: [4.0, 2.0, 6.0]), `Stacks` (Example values: [4, 1, 3]), `In Service Dates` (Example values: [1 1979 2 1986 3 1991 4 2002, 1 1962 2 1968, 1 1970 2 1972]), `Unit Capacity (2009)` (Example values: [1 & 2 235 mw 3 & 4 88.2 mw, 1 190 mw 2 413 mw, 1 531 mw 2 531 mw]), `Nameplate Capacity (2009 MW )` (Example values: [707, 604, 1062]), `Owner Type` (Example values: [large corporation, conglomerate, city utility]), `Owner(s) (2009)` (Example values: [vectren, nipsco, duke energy indiana])]\n", + "ori_query": "select count(`in service dates`) from `1-23958917-1` where `owner(s) (2009)` = 'hoosier energy' and `location` = 'petersburg'", + "amb_query": "SELECT COUNT(\"in service dates\") FROM \"1-23958917-1\" WHERE \"owner(s) (2009)\" = 'hoosier energy' AND location IN ('petersburg, usa', 'petersburg', 'petersburg, in')" + }, + { + "db_id": "1-24195232-1", + "question": "How many entries are there for founded when the location was charonville, ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-24195232-1, columns = [Institution, Location, Team Name, Founded, Affiliation, Enrollment, Year Joined]\n", + "schema_text_with_content": "Table 1-24195232-1, columns = [`Institution` (Example values: [university of cincinnati clermont college, clark state community college, ohio christian university]), `Location` (Example values: [batavia, ohio, springfield, ohio, united states, circleville, oh]), `Team Name` (Example values: [cougars, eagles, trailblazers]), `Founded` (Example values: [1972.0, 1962.0, 1948.0]), `Affiliation` (Example values: [public, private/ churches of christ, private/ baptist]), `Enrollment` (Example values: [3241.0, 3340.0, 700.0]), `Year Joined` (Example values: [2009.0])]\n", + "ori_query": "select count(`founded`) from `1-24195232-1` where `location` = 'charonville, ohio'", + "amb_query": "SELECT COUNT(\"founded\") FROM \"1-24195232-1\" WHERE location IN ('charonville, ohio', 'charonville, ohio, usa')" + }, + { + "db_id": "1-24195232-1", + "question": "How many entries are there for founded when the location was springfield, ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-24195232-1, columns = [Institution, Location, Team Name, Founded, Affiliation, Enrollment, Year Joined]\n", + "schema_text_with_content": "Table 1-24195232-1, columns = [`Institution` (Example values: [university of cincinnati clermont college, clark state community college, ohio christian university]), `Location` (Example values: [batavia, ohio, springfield, ohio, united states, circleville, oh]), `Team Name` (Example values: [cougars, eagles, trailblazers]), `Founded` (Example values: [1972.0, 1962.0, 1948.0]), `Affiliation` (Example values: [public, private/ churches of christ, private/ baptist]), `Enrollment` (Example values: [3241.0, 3340.0, 700.0]), `Year Joined` (Example values: [2009.0])]\n", + "ori_query": "select count(`founded`) from `1-24195232-1` where `location` = 'springfield, ohio'", + "amb_query": "SELECT COUNT(\"founded\") FROM \"1-24195232-1\" WHERE location IN ('springfield, ohio, united states', 'springfield, ohio')" + }, + { + "db_id": "1-24195232-1", + "question": "What is the institution that was located is circleville, ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-24195232-1, columns = [Institution, Location, Team Name, Founded, Affiliation, Enrollment, Year Joined]\n", + "schema_text_with_content": "Table 1-24195232-1, columns = [`Institution` (Example values: [university of cincinnati clermont college, clark state community college, ohio christian university]), `Location` (Example values: [batavia, ohio, springfield, ohio, united states, circleville, oh]), `Team Name` (Example values: [cougars, eagles, trailblazers]), `Founded` (Example values: [1972.0, 1962.0, 1948.0]), `Affiliation` (Example values: [public, private/ churches of christ, private/ baptist]), `Enrollment` (Example values: [3241.0, 3340.0, 700.0]), `Year Joined` (Example values: [2009.0])]\n", + "ori_query": "select `institution` from `1-24195232-1` where `location` = 'circleville, ohio'", + "amb_query": "SELECT \"institution\" FROM \"1-24195232-1\" WHERE location IN ('circleville, ohio', 'circleville, oh')" + }, + { + "db_id": "1-24463470-1", + "question": "What is the difficulty of the berlin circuit?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select `difficulty` from `1-24463470-1` where `circuit` = 'berlin'", + "amb_query": "SELECT \"difficulty\" FROM \"1-24463470-1\" WHERE circuit IN ('berlin, germany', 'berlin')" + }, + { + "db_id": "1-24463470-1", + "question": "What is the lowest unlock order for the paris circuit?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select min(`unlock order`) from `1-24463470-1` where `circuit` = 'paris'", + "amb_query": "SELECT MIN(\"unlock order\") FROM \"1-24463470-1\" WHERE circuit IN ('paris region', 'paris')" + }, + { + "db_id": "1-24463470-1", + "question": "What is the difficulty of the athens circuit?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select `difficulty` from `1-24463470-1` where `circuit` = 'athens'", + "amb_query": "SELECT \"difficulty\" FROM \"1-24463470-1\" WHERE circuit IN ('athens', 'athens, greece')" + }, + { + "db_id": "1-24463470-1", + "question": "What is the lowest unlock order for the athens circuit?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select min(`unlock order`) from `1-24463470-1` where `circuit` = 'athens'", + "amb_query": "SELECT MIN(\"unlock order\") FROM \"1-24463470-1\" WHERE circuit IN ('athens', 'athens, greece')" + }, + { + "db_id": "1-24463470-1", + "question": "What are the conditions for the athens circuit?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select `conditions` from `1-24463470-1` where `circuit` = 'athens'", + "amb_query": "SELECT \"conditions\" FROM \"1-24463470-1\" WHERE circuit IN ('athens', 'athens, greece')" + }, + { + "db_id": "1-24463470-1", + "question": "How many instances is athens the unlock?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select count(`unlock order`) from `1-24463470-1` where `unlocks` = 'athens'", + "amb_query": "SELECT COUNT(\"unlock order\") FROM \"1-24463470-1\" WHERE unlocks IN ('athens metropolitan area', 'athens')" + }, + { + "db_id": "1-24463470-1", + "question": "How many instances is paris the unlock?", + "evidence": "", + "schema_text_wo_content": "Table 1-24463470-1, columns = [Circuit, Difficulty, Turns, Direction, Setting, Conditions, Unlock Order, Unlocks, Unlocked by]\n", + "schema_text_with_content": "Table 1-24463470-1, columns = [`Circuit` (Example values: [athens, greece, berlin, germany, fiorano]), `Difficulty` (Example values: [medium, hard, easy]), `Turns` (Example values: [11.0, 10.0, 12.0]), `Direction` (Example values: [clockwise, anti- clockwise, figure- eight]), `Setting` (Example values: [day, night]), `Conditions` (Example values: [dry, dry and rain, wet]), `Unlock Order` (Example values: [2.0, 3.0, 1.0]), `Unlocks` (Example values: [berlin, madrid, athens metropolitan area]), `Unlocked by` (Example values: [rome or fiorano, athens, n/a])]\n", + "ori_query": "select count(`unlock order`) from `1-24463470-1` where `unlocks` = 'paris'", + "amb_query": "SELECT COUNT(\"unlock order\") FROM \"1-24463470-1\" WHERE unlocks IN ('paris', 'paris, france')" + }, + { + "db_id": "1-2454589-1", + "question": "Name the last title for guayaquil", + "evidence": "", + "schema_text_wo_content": "Table 1-2454589-1, columns = [Club, Home city, Stadium, First season in the Serie A, First season in current spell, Last title]\n", + "schema_text_with_content": "Table 1-2454589-1, columns = [`Club` (Example values: [barcelona, deportivo cuenca, deportivo quevedo]), `Home city` (Example values: [guayaquil, ecuador, cuenca in ecuador, quevedo municipality]), `Stadium` (Example values: [monumental banco pichincha, alejandro serrano aguilar, 7 de octubre]), `First season in the Serie A` (Example values: [1957.0, 1971.0, 1982.0]), `First season in current spell` (Example values: [1965.0, 2002.0, 2013.0]), `Last title` (Example values: [2012, 2004, n/a])]\n", + "ori_query": "select `last title` from `1-2454589-1` where `home city` = 'guayaquil'", + "amb_query": "SELECT \"last title\" FROM \"1-2454589-1\" WHERE home city IN ('guayaquil, ecuador', 'guayaquil')" + }, + { + "db_id": "1-2454589-1", + "question": "Name the club for loja", + "evidence": "", + "schema_text_wo_content": "Table 1-2454589-1, columns = [Club, Home city, Stadium, First season in the Serie A, First season in current spell, Last title]\n", + "schema_text_with_content": "Table 1-2454589-1, columns = [`Club` (Example values: [barcelona, deportivo cuenca, deportivo quevedo]), `Home city` (Example values: [guayaquil, ecuador, cuenca in ecuador, quevedo municipality]), `Stadium` (Example values: [monumental banco pichincha, alejandro serrano aguilar, 7 de octubre]), `First season in the Serie A` (Example values: [1957.0, 1971.0, 1982.0]), `First season in current spell` (Example values: [1965.0, 2002.0, 2013.0]), `Last title` (Example values: [2012, 2004, n/a])]\n", + "ori_query": "select `club` from `1-2454589-1` where `home city` = 'loja'", + "amb_query": "SELECT \"club\" FROM \"1-2454589-1\" WHERE home city IN ('loja', 'loja city')" + }, + { + "db_id": "1-2454589-1", + "question": "Name the last title for cuenca", + "evidence": "", + "schema_text_wo_content": "Table 1-2454589-1, columns = [Club, Home city, Stadium, First season in the Serie A, First season in current spell, Last title]\n", + "schema_text_with_content": "Table 1-2454589-1, columns = [`Club` (Example values: [barcelona, deportivo cuenca, deportivo quevedo]), `Home city` (Example values: [guayaquil, ecuador, cuenca in ecuador, quevedo municipality]), `Stadium` (Example values: [monumental banco pichincha, alejandro serrano aguilar, 7 de octubre]), `First season in the Serie A` (Example values: [1957.0, 1971.0, 1982.0]), `First season in current spell` (Example values: [1965.0, 2002.0, 2013.0]), `Last title` (Example values: [2012, 2004, n/a])]\n", + "ori_query": "select `last title` from `1-2454589-1` where `home city` = 'cuenca'", + "amb_query": "SELECT \"last title\" FROM \"1-2454589-1\" WHERE home city IN ('cuenca in ecuador', 'cuenca')" + }, + { + "db_id": "1-2454589-1", + "question": "Name the club for quevedo", + "evidence": "", + "schema_text_wo_content": "Table 1-2454589-1, columns = [Club, Home city, Stadium, First season in the Serie A, First season in current spell, Last title]\n", + "schema_text_with_content": "Table 1-2454589-1, columns = [`Club` (Example values: [barcelona, deportivo cuenca, deportivo quevedo]), `Home city` (Example values: [guayaquil, ecuador, cuenca in ecuador, quevedo municipality]), `Stadium` (Example values: [monumental banco pichincha, alejandro serrano aguilar, 7 de octubre]), `First season in the Serie A` (Example values: [1957.0, 1971.0, 1982.0]), `First season in current spell` (Example values: [1965.0, 2002.0, 2013.0]), `Last title` (Example values: [2012, 2004, n/a])]\n", + "ori_query": "select `club` from `1-2454589-1` where `home city` = 'quevedo'", + "amb_query": "SELECT \"club\" FROM \"1-2454589-1\" WHERE home city IN ('quevedo municipality', 'quevedo')" + }, + { + "db_id": "1-24565004-15", + "question": "List the number of active years for defender.", + "evidence": "", + "schema_text_wo_content": "Table 1-24565004-15, columns = [Name, Position, Period, Appearances¹, Goals¹, Nationality²]\n", + "schema_text_with_content": "Table 1-24565004-15, columns = [`Name` (Example values: [david n'gog, michel n'gom, bruno n'gotty]), `Position` (Example values: [forward, attaquant position, defensive athlete]), `Period` (Example values: [2006 – 2008, 1981 – 1984, 1995 – 1998]), `Appearances¹` (Example values: [25.0, 90.0, 112.0]), `Goals¹` (Example values: [3.0, 26.0, 10.0]), `Nationality²` (Example values: [france, democratic republic of the congo, brazil])]\n", + "ori_query": "select `period` from `1-24565004-15` where `position` = 'defender'", + "amb_query": "SELECT \"period\" FROM \"1-24565004-15\" WHERE position IN ('defender', 'defensive athlete')" + }, + { + "db_id": "1-24565004-15", + "question": "List the number of active years for attaquant.", + "evidence": "", + "schema_text_wo_content": "Table 1-24565004-15, columns = [Name, Position, Period, Appearances¹, Goals¹, Nationality²]\n", + "schema_text_with_content": "Table 1-24565004-15, columns = [`Name` (Example values: [david n'gog, michel n'gom, bruno n'gotty]), `Position` (Example values: [forward, attaquant position, defensive athlete]), `Period` (Example values: [2006 – 2008, 1981 – 1984, 1995 – 1998]), `Appearances¹` (Example values: [25.0, 90.0, 112.0]), `Goals¹` (Example values: [3.0, 26.0, 10.0]), `Nationality²` (Example values: [france, democratic republic of the congo, brazil])]\n", + "ori_query": "select `period` from `1-24565004-15` where `position` = 'attaquant'", + "amb_query": "SELECT \"period\" FROM \"1-24565004-15\" WHERE position IN ('attaquant', 'attaquant position')" + }, + { + "db_id": "1-2523809-1", + "question": "List the power output for fort worth, texas. ", + "evidence": "", + "schema_text_wo_content": "Table 1-2523809-1, columns = [Branding, Callsign, Channel, Power (kW), Coverage]\n", + "schema_text_with_content": "Table 1-2523809-1, columns = [`Branding` (Example values: [estrella tv 40, estrella tv 29, estrella tv 53]), `Callsign` (Example values: [wesv-ld, kmpx-tv, ketd]), `Channel` (Example values: [tv-40, tv-29, tv-53]), `Power (kW)` (Example values: [10kw]), `Coverage` (Example values: [chicago, illinois, fort worth, tx, denver, colorado])]\n", + "ori_query": "select `power (kw)` from `1-2523809-1` where `coverage` = 'fort worth, texas'", + "amb_query": "SELECT \"power (kw)\" FROM \"1-2523809-1\" WHERE coverage IN ('fort worth, tx', 'fort worth, texas')" + }, + { + "db_id": "1-2523809-1", + "question": "List the power output for Phoenix. ", + "evidence": "", + "schema_text_wo_content": "Table 1-2523809-1, columns = [Branding, Callsign, Channel, Power (kW), Coverage]\n", + "schema_text_with_content": "Table 1-2523809-1, columns = [`Branding` (Example values: [estrella tv 40, estrella tv 29, estrella tv 53]), `Callsign` (Example values: [wesv-ld, kmpx-tv, ketd]), `Channel` (Example values: [tv-40, tv-29, tv-53]), `Power (kW)` (Example values: [10kw]), `Coverage` (Example values: [chicago, illinois, fort worth, tx, denver, colorado])]\n", + "ori_query": "select `power (kw)` from `1-2523809-1` where `coverage` = 'phoenix'", + "amb_query": "SELECT \"power (kw)\" FROM \"1-2523809-1\" WHERE coverage IN ('phoenix, az', 'phoenix')" + }, + { + "db_id": "1-254776-1", + "question": "What type of school is in bryn mawr, pennsylvania?", + "evidence": "", + "schema_text_wo_content": "Table 1-254776-1, columns = [Institution, Location, Founded, Type, Enrollment, Joined, Nickname, US News Ranking 2014 for Liberal Arts, Football?]\n", + "schema_text_with_content": "Table 1-254776-1, columns = [`Institution` (Example values: [bryn mawr college 1, dickinson college, franklin & marshall college]), `Location` (Example values: [bryn mawr area, pennsylvania, carlisle, pennsylvania, lancaster, pennsylvania]), `Founded` (Example values: [1885.0, 1783.0, 1787.0]), `Type` (Example values: [private, private/lutheran]), `Enrollment` (Example values: [1890.0, 2381.0, 2104.0]), `Joined` (Example values: [1992.0, 1981.0]), `Nickname` (Example values: [owls, red devils, diplomats]), `US News Ranking 2014 for Liberal Arts` (Example values: [30, 45, 50]), `Football?` (Example values: [no, yes])]\n", + "ori_query": "select `type` from `1-254776-1` where `location` = 'bryn mawr, pennsylvania'", + "amb_query": "SELECT \"type\" FROM \"1-254776-1\" WHERE location IN ('bryn mawr area, pennsylvania', 'bryn mawr, pennsylvania')" + }, + { + "db_id": "1-254776-1", + "question": "What type of school is in swarthmore, pennsylvania?", + "evidence": "", + "schema_text_wo_content": "Table 1-254776-1, columns = [Institution, Location, Founded, Type, Enrollment, Joined, Nickname, US News Ranking 2014 for Liberal Arts, Football?]\n", + "schema_text_with_content": "Table 1-254776-1, columns = [`Institution` (Example values: [bryn mawr college 1, dickinson college, franklin & marshall college]), `Location` (Example values: [bryn mawr area, pennsylvania, carlisle, pennsylvania, lancaster, pennsylvania]), `Founded` (Example values: [1885.0, 1783.0, 1787.0]), `Type` (Example values: [private, private/lutheran]), `Enrollment` (Example values: [1890.0, 2381.0, 2104.0]), `Joined` (Example values: [1992.0, 1981.0]), `Nickname` (Example values: [owls, red devils, diplomats]), `US News Ranking 2014 for Liberal Arts` (Example values: [30, 45, 50]), `Football?` (Example values: [no, yes])]\n", + "ori_query": "select `type` from `1-254776-1` where `location` = 'swarthmore, pennsylvania'", + "amb_query": "SELECT \"type\" FROM \"1-254776-1\" WHERE location IN ('swarthmore, pennsylvania', 'swarthmore, pa')" + }, + { + "db_id": "2-1436397-1", + "question": "What is the highest Area (KM 2) for the Province of nova scotia, that has the Status of ville, a Municipality of Minto, and a Rank that's smaller than 84?", + "evidence": "", + "schema_text_wo_content": "Table 2-1436397-1, columns = [Rank, Municipality, Province, Status, Area (km 2 )]\n", + "schema_text_with_content": "Table 2-1436397-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Municipality` (Example values: [la tuque, senneterre, rouyn-noranda]), `Province` (Example values: [quebec, nova scotia region, ontario, canada]), `Status` (Example values: [ville, regional municipality, city]), `Area (km 2 )` (Example values: [25104.59, 14887.03, 5991.06])]\n", + "ori_query": "select max(`area (km 2 )`) from `2-1436397-1` where `province` = 'nova scotia' and `status` = 'ville' and `municipality` = 'minto' and `rank` < 84", + "amb_query": "SELECT MAX(\"area (km 2 )\") FROM \"2-1436397-1\" WHERE province IN ('nova scotia', 'ns, canada', 'nova scotia province', 'nova scotia region') AND \"status\" = 'ville' AND \"municipality\" = 'minto' AND \"rank\" < 84" + }, + { + "db_id": "2-1436397-1", + "question": "What is the highest Area (KM 2) for the Province of Ontario, that has the Status of Town, a Municipality of Minto, and a Rank that's smaller than 84?", + "evidence": "", + "schema_text_wo_content": "Table 2-1436397-1, columns = [Rank, Municipality, Province, Status, Area (km 2 )]\n", + "schema_text_with_content": "Table 2-1436397-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Municipality` (Example values: [la tuque, senneterre, rouyn-noranda]), `Province` (Example values: [quebec, nova scotia region, ontario, canada]), `Status` (Example values: [ville, regional municipality, city]), `Area (km 2 )` (Example values: [25104.59, 14887.03, 5991.06])]\n", + "ori_query": "select max(`area (km 2 )`) from `2-1436397-1` where `province` = 'ontario' and `status` = 'town' and `municipality` = 'minto' and `rank` < 84", + "amb_query": "SELECT MAX(\"area (km 2 )\") FROM \"2-1436397-1\" WHERE province IN ('on, canada', 'ontario, canada', 'ontario', 'ontario province', 'province of ontario') AND status IN ('town', 'township') AND \"municipality\" = 'minto' AND \"rank\" < 84" + }, + { + "db_id": "2-1436397-1", + "question": "What is the listed Status that has the Province of alberta and Rank of 86?", + "evidence": "", + "schema_text_wo_content": "Table 2-1436397-1, columns = [Rank, Municipality, Province, Status, Area (km 2 )]\n", + "schema_text_with_content": "Table 2-1436397-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Municipality` (Example values: [la tuque, senneterre, rouyn-noranda]), `Province` (Example values: [quebec, nova scotia region, ontario, canada]), `Status` (Example values: [ville, regional municipality, city]), `Area (km 2 )` (Example values: [25104.59, 14887.03, 5991.06])]\n", + "ori_query": "select `status` from `2-1436397-1` where `province` = 'alberta' and `rank` = 86", + "amb_query": "SELECT \"status\" FROM \"2-1436397-1\" WHERE province IN ('alberta', 'alberta region') AND \"rank\" = 86" + }, + { + "db_id": "2-1436397-1", + "question": "What is the listed Status that has the Province of Ontario and Rank of 86?", + "evidence": "", + "schema_text_wo_content": "Table 2-1436397-1, columns = [Rank, Municipality, Province, Status, Area (km 2 )]\n", + "schema_text_with_content": "Table 2-1436397-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Municipality` (Example values: [la tuque, senneterre, rouyn-noranda]), `Province` (Example values: [quebec, nova scotia region, ontario, canada]), `Status` (Example values: [ville, regional municipality, city]), `Area (km 2 )` (Example values: [25104.59, 14887.03, 5991.06])]\n", + "ori_query": "select `status` from `2-1436397-1` where `province` = 'ontario' and `rank` = 86", + "amb_query": "SELECT \"status\" FROM \"2-1436397-1\" WHERE province IN ('on, canada', 'ontario, canada', 'ontario', 'ontario province', 'province of ontario') AND \"rank\" = 86" + }, + { + "db_id": "1-25818630-1", + "question": "What is every candidate for the kingston upon hull west and hessle constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `candidate` from `1-25818630-1` where `constituency` = 'kingston upon hull west and hessle'", + "amb_query": "SELECT \"candidate\" FROM \"1-25818630-1\" WHERE constituency IN ('kingston upon hull west and hessle constituency', 'kingston upon hull west and hessle')" + }, + { + "db_id": "1-25818630-1", + "question": "What is every candidate for the manchester gorton constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `candidate` from `1-25818630-1` where `constituency` = 'manchester gorton'", + "amb_query": "SELECT \"candidate\" FROM \"1-25818630-1\" WHERE constituency IN ('manchester gorton', 'manchester gorton constituency')" + }, + { + "db_id": "1-25818630-1", + "question": "What is every candidate for the walthamstow constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `candidate` from `1-25818630-1` where `constituency` = 'walthamstow'", + "amb_query": "SELECT \"candidate\" FROM \"1-25818630-1\" WHERE constituency IN ('walthamstow', 'walthamstow area')" + }, + { + "db_id": "1-25818630-1", + "question": "What is the largest vote result for the coventry north west constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select max(`result - votes`) from `1-25818630-1` where `constituency` = 'coventry north west'", + "amb_query": "SELECT MAX(\"result - votes\") FROM \"1-25818630-1\" WHERE constituency IN ('coventry nw', 'coventry north west')" + }, + { + "db_id": "1-25818630-1", + "question": "What is the largest vote result for the brighton kemptown constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select max(`result - votes`) from `1-25818630-1` where `constituency` = 'brighton kemptown'", + "amb_query": "SELECT MAX(\"result - votes\") FROM \"1-25818630-1\" WHERE constituency IN ('brighton kemptown constituency', 'brighton kemptown')" + }, + { + "db_id": "1-25818630-1", + "question": "What is every affiliation for the southampton itchen constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `affiliation` from `1-25818630-1` where `constituency` = 'southampton itchen'", + "amb_query": "SELECT \"affiliation\" FROM \"1-25818630-1\" WHERE constituency IN ('southampton itchen', 'southampton itchen constituency')" + }, + { + "db_id": "1-25818630-1", + "question": "What is every affiliation for the leicester west constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `affiliation` from `1-25818630-1` where `constituency` = 'leicester west'", + "amb_query": "SELECT \"affiliation\" FROM \"1-25818630-1\" WHERE constituency IN ('leicester west', 'leicester west, england')" + }, + { + "db_id": "1-25818630-1", + "question": "What is every candidate for the Cardiff Central constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `candidate` from `1-25818630-1` where `constituency` = 'cardiff central'", + "amb_query": "SELECT \"candidate\" FROM \"1-25818630-1\" WHERE constituency IN ('cardiff central district', 'cardiff central')" + }, + { + "db_id": "1-25818630-1", + "question": "What is the largest vote result for the Huddersfield constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select max(`result - votes`) from `1-25818630-1` where `constituency` = 'huddersfield'", + "amb_query": "SELECT MAX(\"result - votes\") FROM \"1-25818630-1\" WHERE constituency IN ('constituency of huddersfield', 'huddersfield')" + }, + { + "db_id": "1-25818630-1", + "question": "What is every affiliation for the Tottenham constituency?", + "evidence": "", + "schema_text_wo_content": "Table 1-25818630-1, columns = [Constituency, Candidate, Affiliation, Result - votes, Result - %, Loss/gain]\n", + "schema_text_with_content": "Table 1-25818630-1, columns = [`Constituency` (Example values: [coventry north east, tottenham area, colne valley]), `Candidate` (Example values: [dave nellist, jenny sutton, jackie grunsell]), `Affiliation` (Example values: [socialist party (stood as socialist alternative), ucu, socialist party]), `Result - votes` (Example values: [1592.0, 1057.0, 741.0]), `Result - %` (Example values: [3.7%, 2.6%, 1.3%]), `Loss/gain` (Example values: [-1.2%, +2.6%, +1.3%])]\n", + "ori_query": "select `affiliation` from `1-25818630-1` where `constituency` = 'tottenham'", + "amb_query": "SELECT \"affiliation\" FROM \"1-25818630-1\" WHERE constituency IN ('tottenham area', 'tottenham')" + }, + { + "db_id": "1-25933764-1", + "question": "If the locale is new brunswick, what is the W minimum?", + "evidence": "", + "schema_text_wo_content": "Table 1-25933764-1, columns = [Locale, Skip, W, L, PF, PA, Ends Won, Ends Lost, Blank Ends, Stolen Ends, Shot Pct.]\n", + "schema_text_with_content": "Table 1-25933764-1, columns = [`Locale` (Example values: [saskatchewan, canada, ontario, canada]), `Skip` (Example values: [amber holland, jennifer jones, rachel homan]), `W` (Example values: [9.0, 8.0, 7.0]), `L` (Example values: [2.0, 3.0, 4.0]), `PF` (Example values: [87.0, 77.0, 64.0]), `PA` (Example values: [59.0, 54.0, 51.0]), `Ends Won` (Example values: [43.0, 50.0, 52.0]), `Ends Lost` (Example values: [47.0, 37.0, 36.0]), `Blank Ends` (Example values: [9.0, 13.0, 18.0]), `Stolen Ends` (Example values: [9.0, 16.0, 18.0]), `Shot Pct.` (Example values: [81.0, 84.0, 80.0])]\n", + "ori_query": "select min(`w`) from `1-25933764-1` where `locale` = 'new brunswick'", + "amb_query": "SELECT MIN(\"w\") FROM \"1-25933764-1\" WHERE locale IN ('province of new brunswick', 'new brunswick')" + }, + { + "db_id": "1-25933764-1", + "question": "If the locale is british columbia, what is the W minimum?", + "evidence": "", + "schema_text_wo_content": "Table 1-25933764-1, columns = [Locale, Skip, W, L, PF, PA, Ends Won, Ends Lost, Blank Ends, Stolen Ends, Shot Pct.]\n", + "schema_text_with_content": "Table 1-25933764-1, columns = [`Locale` (Example values: [saskatchewan, canada, ontario, canada]), `Skip` (Example values: [amber holland, jennifer jones, rachel homan]), `W` (Example values: [9.0, 8.0, 7.0]), `L` (Example values: [2.0, 3.0, 4.0]), `PF` (Example values: [87.0, 77.0, 64.0]), `PA` (Example values: [59.0, 54.0, 51.0]), `Ends Won` (Example values: [43.0, 50.0, 52.0]), `Ends Lost` (Example values: [47.0, 37.0, 36.0]), `Blank Ends` (Example values: [9.0, 13.0, 18.0]), `Stolen Ends` (Example values: [9.0, 16.0, 18.0]), `Shot Pct.` (Example values: [81.0, 84.0, 80.0])]\n", + "ori_query": "select min(`w`) from `1-25933764-1` where `locale` = 'british columbia'", + "amb_query": "SELECT MIN(\"w\") FROM \"1-25933764-1\" WHERE locale IN ('british columbia', 'bc')" + }, + { + "db_id": "1-25933764-1", + "question": "If the locale is Ontario, what is the W minimum?", + "evidence": "", + "schema_text_wo_content": "Table 1-25933764-1, columns = [Locale, Skip, W, L, PF, PA, Ends Won, Ends Lost, Blank Ends, Stolen Ends, Shot Pct.]\n", + "schema_text_with_content": "Table 1-25933764-1, columns = [`Locale` (Example values: [saskatchewan, canada, ontario, canada]), `Skip` (Example values: [amber holland, jennifer jones, rachel homan]), `W` (Example values: [9.0, 8.0, 7.0]), `L` (Example values: [2.0, 3.0, 4.0]), `PF` (Example values: [87.0, 77.0, 64.0]), `PA` (Example values: [59.0, 54.0, 51.0]), `Ends Won` (Example values: [43.0, 50.0, 52.0]), `Ends Lost` (Example values: [47.0, 37.0, 36.0]), `Blank Ends` (Example values: [9.0, 13.0, 18.0]), `Stolen Ends` (Example values: [9.0, 16.0, 18.0]), `Shot Pct.` (Example values: [81.0, 84.0, 80.0])]\n", + "ori_query": "select min(`w`) from `1-25933764-1` where `locale` = 'ontario'", + "amb_query": "SELECT MIN(\"w\") FROM \"1-25933764-1\" WHERE locale IN ('ontario, canada', 'ontario')" + }, + { + "db_id": "1-261951-1", + "question": "What is the population density for the city of rizal?", + "evidence": "", + "schema_text_wo_content": "Table 1-261951-1, columns = [Municipality, No. of Barangays, Area (km²), Population (2010), Pop. density (per km²), Income Class (2004)]\n", + "schema_text_with_content": "Table 1-261951-1, columns = [`Municipality` (Example values: [abra de ilog town, municipality of calintaan, looc]), `No. of Barangays` (Example values: [9.0, 7.0, 16.0]), `Area (km²)` (Example values: [533.70, 382.50, 90.40]), `Population (2010)` (Example values: [29225.0, 28148.0, 9758.0]), `Pop. density (per km²)` (Example values: [41.6, 61.4, 101.0]), `Income Class (2004)` (Example values: [4th class, 5th class, 2nd class])]\n", + "ori_query": "select count(`pop. density (per km²)`) from `1-261951-1` where `municipality` = 'rizal'", + "amb_query": "SELECT COUNT(\"pop. density (per km²)\") FROM \"1-261951-1\" WHERE municipality IN ('rizal', 'rizal city')" + }, + { + "db_id": "1-261951-1", + "question": "List the population density per kilometer for the city of paluan?", + "evidence": "", + "schema_text_wo_content": "Table 1-261951-1, columns = [Municipality, No. of Barangays, Area (km²), Population (2010), Pop. density (per km²), Income Class (2004)]\n", + "schema_text_with_content": "Table 1-261951-1, columns = [`Municipality` (Example values: [abra de ilog town, municipality of calintaan, looc]), `No. of Barangays` (Example values: [9.0, 7.0, 16.0]), `Area (km²)` (Example values: [533.70, 382.50, 90.40]), `Population (2010)` (Example values: [29225.0, 28148.0, 9758.0]), `Pop. density (per km²)` (Example values: [41.6, 61.4, 101.0]), `Income Class (2004)` (Example values: [4th class, 5th class, 2nd class])]\n", + "ori_query": "select `pop. density (per km²)` from `1-261951-1` where `municipality` = 'paluan'", + "amb_query": "SELECT \"pop. density (per km²)\" FROM \"1-261951-1\" WHERE municipality IN ('city of paluan', 'paluan')" + }, + { + "db_id": "1-261951-1", + "question": "List the population density per kilometer for the city of sablayan.", + "evidence": "", + "schema_text_wo_content": "Table 1-261951-1, columns = [Municipality, No. of Barangays, Area (km²), Population (2010), Pop. density (per km²), Income Class (2004)]\n", + "schema_text_with_content": "Table 1-261951-1, columns = [`Municipality` (Example values: [abra de ilog town, municipality of calintaan, looc]), `No. of Barangays` (Example values: [9.0, 7.0, 16.0]), `Area (km²)` (Example values: [533.70, 382.50, 90.40]), `Population (2010)` (Example values: [29225.0, 28148.0, 9758.0]), `Pop. density (per km²)` (Example values: [41.6, 61.4, 101.0]), `Income Class (2004)` (Example values: [4th class, 5th class, 2nd class])]\n", + "ori_query": "select `pop. density (per km²)` from `1-261951-1` where `municipality` = 'sablayan'", + "amb_query": "SELECT \"pop. density (per km²)\" FROM \"1-261951-1\" WHERE municipality IN ('sablayan', 'sablayan municipality')" + }, + { + "db_id": "1-261951-1", + "question": "What is the population density for the city of lubang?", + "evidence": "", + "schema_text_wo_content": "Table 1-261951-1, columns = [Municipality, No. of Barangays, Area (km²), Population (2010), Pop. density (per km²), Income Class (2004)]\n", + "schema_text_with_content": "Table 1-261951-1, columns = [`Municipality` (Example values: [abra de ilog town, municipality of calintaan, looc]), `No. of Barangays` (Example values: [9.0, 7.0, 16.0]), `Area (km²)` (Example values: [533.70, 382.50, 90.40]), `Population (2010)` (Example values: [29225.0, 28148.0, 9758.0]), `Pop. density (per km²)` (Example values: [41.6, 61.4, 101.0]), `Income Class (2004)` (Example values: [4th class, 5th class, 2nd class])]\n", + "ori_query": "select count(`pop. density (per km²)`) from `1-261951-1` where `municipality` = 'lubang'", + "amb_query": "SELECT COUNT(\"pop. density (per km²)\") FROM \"1-261951-1\" WHERE municipality IN ('lubang', 'lubang city')" + }, + { + "db_id": "1-261951-1", + "question": "List the population density per kilometer for the city of calintaan?", + "evidence": "", + "schema_text_wo_content": "Table 1-261951-1, columns = [Municipality, No. of Barangays, Area (km²), Population (2010), Pop. density (per km²), Income Class (2004)]\n", + "schema_text_with_content": "Table 1-261951-1, columns = [`Municipality` (Example values: [abra de ilog town, municipality of calintaan, looc]), `No. of Barangays` (Example values: [9.0, 7.0, 16.0]), `Area (km²)` (Example values: [533.70, 382.50, 90.40]), `Population (2010)` (Example values: [29225.0, 28148.0, 9758.0]), `Pop. density (per km²)` (Example values: [41.6, 61.4, 101.0]), `Income Class (2004)` (Example values: [4th class, 5th class, 2nd class])]\n", + "ori_query": "select `pop. density (per km²)` from `1-261951-1` where `municipality` = 'calintaan'", + "amb_query": "SELECT \"pop. density (per km²)\" FROM \"1-261951-1\" WHERE municipality IN ('calintaan', 'municipality of calintaan')" + }, + { + "db_id": "1-261951-1", + "question": "List the population density per kilometer for the city of abra de ilog.", + "evidence": "", + "schema_text_wo_content": "Table 1-261951-1, columns = [Municipality, No. of Barangays, Area (km²), Population (2010), Pop. density (per km²), Income Class (2004)]\n", + "schema_text_with_content": "Table 1-261951-1, columns = [`Municipality` (Example values: [abra de ilog town, municipality of calintaan, looc]), `No. of Barangays` (Example values: [9.0, 7.0, 16.0]), `Area (km²)` (Example values: [533.70, 382.50, 90.40]), `Population (2010)` (Example values: [29225.0, 28148.0, 9758.0]), `Pop. density (per km²)` (Example values: [41.6, 61.4, 101.0]), `Income Class (2004)` (Example values: [4th class, 5th class, 2nd class])]\n", + "ori_query": "select `pop. density (per km²)` from `1-261951-1` where `municipality` = 'abra de ilog'", + "amb_query": "SELECT \"pop. density (per km²)\" FROM \"1-261951-1\" WHERE municipality IN ('abra de ilog town', 'abra de ilog')" + }, + { + "db_id": "1-26301697-2", + "question": "Name the represents for la romana", + "evidence": "", + "schema_text_wo_content": "Table 1-26301697-2, columns = [Represents, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-26301697-2, columns = [`Represents` (Example values: [azua, bonao, comunidad dominicana en eeuu]), `Contestant` (Example values: [aneliz henríquez soto, lorraine súarez carmona, ashley pérez cabrera]), `Age` (Example values: [24.0, 21.0, 19.0]), `Height (cm)` (Example values: [1.71, 1.75, 1.70]), `Height (ft)` (Example values: [5'7\", 5'9\", 5'6\"]), `Hometown` (Example values: [santo domingo, bonao, miami])]\n", + "ori_query": "select `represents` from `1-26301697-2` where `hometown` = 'la romana'", + "amb_query": "SELECT \"represents\" FROM \"1-26301697-2\" WHERE hometown IN ('la romana', 'la romana city')" + }, + { + "db_id": "1-26301697-2", + "question": "Name the represents for los alcarrizos", + "evidence": "", + "schema_text_wo_content": "Table 1-26301697-2, columns = [Represents, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-26301697-2, columns = [`Represents` (Example values: [azua, bonao, comunidad dominicana en eeuu]), `Contestant` (Example values: [aneliz henríquez soto, lorraine súarez carmona, ashley pérez cabrera]), `Age` (Example values: [24.0, 21.0, 19.0]), `Height (cm)` (Example values: [1.71, 1.75, 1.70]), `Height (ft)` (Example values: [5'7\", 5'9\", 5'6\"]), `Hometown` (Example values: [santo domingo, bonao, miami])]\n", + "ori_query": "select `represents` from `1-26301697-2` where `hometown` = 'los alcarrizos'", + "amb_query": "SELECT \"represents\" FROM \"1-26301697-2\" WHERE hometown IN ('los alcarrizos district', 'los alcarrizos')" + }, + { + "db_id": "1-2696531-2", + "question": "how many times is the location is watkins glen, new york?", + "evidence": "", + "schema_text_wo_content": "Table 1-2696531-2, columns = [Rnd, Date, Race Name, Track, Location, Pole position, Fastest lap, Most Laps Led, Winner]\n", + "schema_text_with_content": "Table 1-2696531-2, columns = [`Rnd` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [march 26, april 2, april 22]), `Race Name` (Example values: [toyota indy 300, honda grand prix of st. petersburg, indy japan 300]), `Track` (Example values: [homestead-miami speedway, streets of st. petersburg, twin ring motegi]), `Location` (Example values: [homestead fl, st. petersburg, florida, motegi , japan]), `Pole position` (Example values: [sam hornish, jr., dario franchitti, hélio castroneves]), `Fastest lap` (Example values: [scott dixon, tony kanaan, marco andretti]), `Most Laps Led` (Example values: [sam hornish, jr., hélio castroneves, dan wheldon]), `Winner` (Example values: [dan wheldon, hélio castroneves, sam hornish, jr.])]\n", + "ori_query": "select count(`pole position`) from `1-2696531-2` where `location` = 'watkins glen, new york'", + "amb_query": "SELECT COUNT(\"pole position\") FROM \"1-2696531-2\" WHERE location IN ('watkins glen, ny', 'watkins glen, new york')" + }, + { + "db_id": "1-2696531-2", + "question": "how many times is the location is richmond, virginia?", + "evidence": "", + "schema_text_wo_content": "Table 1-2696531-2, columns = [Rnd, Date, Race Name, Track, Location, Pole position, Fastest lap, Most Laps Led, Winner]\n", + "schema_text_with_content": "Table 1-2696531-2, columns = [`Rnd` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [march 26, april 2, april 22]), `Race Name` (Example values: [toyota indy 300, honda grand prix of st. petersburg, indy japan 300]), `Track` (Example values: [homestead-miami speedway, streets of st. petersburg, twin ring motegi]), `Location` (Example values: [homestead fl, st. petersburg, florida, motegi , japan]), `Pole position` (Example values: [sam hornish, jr., dario franchitti, hélio castroneves]), `Fastest lap` (Example values: [scott dixon, tony kanaan, marco andretti]), `Most Laps Led` (Example values: [sam hornish, jr., hélio castroneves, dan wheldon]), `Winner` (Example values: [dan wheldon, hélio castroneves, sam hornish, jr.])]\n", + "ori_query": "select count(`pole position`) from `1-2696531-2` where `location` = 'richmond, virginia'", + "amb_query": "SELECT COUNT(\"pole position\") FROM \"1-2696531-2\" WHERE location IN ('richmond, virginia, united states', 'richmond, virginia')" + }, + { + "db_id": "1-2696531-2", + "question": "how many times is the location is homestead, florida?", + "evidence": "", + "schema_text_wo_content": "Table 1-2696531-2, columns = [Rnd, Date, Race Name, Track, Location, Pole position, Fastest lap, Most Laps Led, Winner]\n", + "schema_text_with_content": "Table 1-2696531-2, columns = [`Rnd` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [march 26, april 2, april 22]), `Race Name` (Example values: [toyota indy 300, honda grand prix of st. petersburg, indy japan 300]), `Track` (Example values: [homestead-miami speedway, streets of st. petersburg, twin ring motegi]), `Location` (Example values: [homestead fl, st. petersburg, florida, motegi , japan]), `Pole position` (Example values: [sam hornish, jr., dario franchitti, hélio castroneves]), `Fastest lap` (Example values: [scott dixon, tony kanaan, marco andretti]), `Most Laps Led` (Example values: [sam hornish, jr., hélio castroneves, dan wheldon]), `Winner` (Example values: [dan wheldon, hélio castroneves, sam hornish, jr.])]\n", + "ori_query": "select count(`pole position`) from `1-2696531-2` where `location` = 'homestead, florida'", + "amb_query": "SELECT COUNT(\"pole position\") FROM \"1-2696531-2\" WHERE location IN ('homestead fl', 'homestead, florida')" + }, + { + "db_id": "1-27361255-1", + "question": "What is the nickname of the marquette, michigan team?", + "evidence": "", + "schema_text_wo_content": "Table 1-27361255-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-27361255-1, columns = [`Institution` (Example values: [adrian college, central michigan university, davenport university]), `Location` (Example values: [city of adrian, michigan, mount pleasant, michigan, caledonia, michigan]), `Founded` (Example values: [1859.0, 1892.0, 1960.0]), `Affiliation` (Example values: [private/methodist, public, private]), `Enrollment` (Example values: [1040.0, 26788.0, 12471.0]), `Team Nickname` (Example values: [bulldogs, chippewas, panthers]), `Primary conference` (Example values: [miaa ( d-iii ), mid-american ( d-i ), wolverine–hoosier ( naia )])]\n", + "ori_query": "select `team nickname` from `1-27361255-1` where `location` = 'marquette, michigan'", + "amb_query": "SELECT \"team nickname\" FROM \"1-27361255-1\" WHERE location IN ('marquette county, michigan', 'marquette, michigan')" + }, + { + "db_id": "1-27361255-1", + "question": "How many primary conferences were held in ann arbor, michigan?", + "evidence": "", + "schema_text_wo_content": "Table 1-27361255-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-27361255-1, columns = [`Institution` (Example values: [adrian college, central michigan university, davenport university]), `Location` (Example values: [city of adrian, michigan, mount pleasant, michigan, caledonia, michigan]), `Founded` (Example values: [1859.0, 1892.0, 1960.0]), `Affiliation` (Example values: [private/methodist, public, private]), `Enrollment` (Example values: [1040.0, 26788.0, 12471.0]), `Team Nickname` (Example values: [bulldogs, chippewas, panthers]), `Primary conference` (Example values: [miaa ( d-iii ), mid-american ( d-i ), wolverine–hoosier ( naia )])]\n", + "ori_query": "select count(`primary conference`) from `1-27361255-1` where `location` = 'ann arbor, michigan'", + "amb_query": "SELECT COUNT(\"primary conference\") FROM \"1-27361255-1\" WHERE location IN ('ann arbor, michigan', 'ann arbor, michigan, united states')" + }, + { + "db_id": "1-27361255-1", + "question": "What is the nickname of the Adrian, Michigan team?", + "evidence": "", + "schema_text_wo_content": "Table 1-27361255-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-27361255-1, columns = [`Institution` (Example values: [adrian college, central michigan university, davenport university]), `Location` (Example values: [city of adrian, michigan, mount pleasant, michigan, caledonia, michigan]), `Founded` (Example values: [1859.0, 1892.0, 1960.0]), `Affiliation` (Example values: [private/methodist, public, private]), `Enrollment` (Example values: [1040.0, 26788.0, 12471.0]), `Team Nickname` (Example values: [bulldogs, chippewas, panthers]), `Primary conference` (Example values: [miaa ( d-iii ), mid-american ( d-i ), wolverine–hoosier ( naia )])]\n", + "ori_query": "select `team nickname` from `1-27361255-1` where `location` = 'adrian, michigan'", + "amb_query": "SELECT \"team nickname\" FROM \"1-27361255-1\" WHERE location IN ('adrian, michigan', 'city of adrian, michigan')" + }, + { + "db_id": "1-27361255-1", + "question": "How many primary conferences were held in Allendale, Michigan?", + "evidence": "", + "schema_text_wo_content": "Table 1-27361255-1, columns = [Institution, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference]\n", + "schema_text_with_content": "Table 1-27361255-1, columns = [`Institution` (Example values: [adrian college, central michigan university, davenport university]), `Location` (Example values: [city of adrian, michigan, mount pleasant, michigan, caledonia, michigan]), `Founded` (Example values: [1859.0, 1892.0, 1960.0]), `Affiliation` (Example values: [private/methodist, public, private]), `Enrollment` (Example values: [1040.0, 26788.0, 12471.0]), `Team Nickname` (Example values: [bulldogs, chippewas, panthers]), `Primary conference` (Example values: [miaa ( d-iii ), mid-american ( d-i ), wolverine–hoosier ( naia )])]\n", + "ori_query": "select count(`primary conference`) from `1-27361255-1` where `location` = 'allendale, michigan'", + "amb_query": "SELECT COUNT(\"primary conference\") FROM \"1-27361255-1\" WHERE location IN ('allendale, michigan state', 'allendale, michigan')" + }, + { + "db_id": "1-28730873-2", + "question": "What is the charity for the celebrity with an occupation title of former boxing champion?", + "evidence": "", + "schema_text_wo_content": "Table 1-28730873-2, columns = [Nationality, Celebrity, Occupation, Charity, Status]\n", + "schema_text_with_content": "Table 1-28730873-2, columns = [`Nationality` (Example values: [puerto rico, mexico, cuba]), `Celebrity` (Example values: [héctor camacho category:articles with hcards, rosa gloria chagoyán, niurka marcos category:articles with hcards]), `Occupation` (Example values: [retired boxing champion, actress \"lola la trailera\", actress and model]), `Charity` (Example values: [iwmf, maldef, línea nacional sobre violencia doméstica]), `Status` (Example values: [eliminated (day 35) on october 3, 2010, eliminated (day 42) on october 10, 2010, withdrew (day 42) on october 17, 2010])]\n", + "ori_query": "select `charity` from `1-28730873-2` where `occupation` = 'former boxing champion'", + "amb_query": "SELECT \"charity\" FROM \"1-28730873-2\" WHERE occupation IN ('retired boxing champion', 'former boxing champion')" + }, + { + "db_id": "1-28730873-2", + "question": "What is the charity for the celebrity with an occupation title of actor and singer?", + "evidence": "", + "schema_text_wo_content": "Table 1-28730873-2, columns = [Nationality, Celebrity, Occupation, Charity, Status]\n", + "schema_text_with_content": "Table 1-28730873-2, columns = [`Nationality` (Example values: [puerto rico, mexico, cuba]), `Celebrity` (Example values: [héctor camacho category:articles with hcards, rosa gloria chagoyán, niurka marcos category:articles with hcards]), `Occupation` (Example values: [retired boxing champion, actress \"lola la trailera\", actress and model]), `Charity` (Example values: [iwmf, maldef, línea nacional sobre violencia doméstica]), `Status` (Example values: [eliminated (day 35) on october 3, 2010, eliminated (day 42) on october 10, 2010, withdrew (day 42) on october 17, 2010])]\n", + "ori_query": "select `charity` from `1-28730873-2` where `occupation` = 'actor and singer'", + "amb_query": "SELECT \"charity\" FROM \"1-28730873-2\" WHERE occupation IN ('actor and singer', 'actor & singer')" + }, + { + "db_id": "1-29127804-3", + "question": "what is the material of the surface in the new delhi, delhi , india location", + "evidence": "", + "schema_text_wo_content": "Table 1-29127804-3, columns = [Outcome, Date, Tournament, Location, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-29127804-3, columns = [`Outcome` (Example values: [winner, runner-up]), `Date` (Example values: [24 november 2008, 18 april 2009, 10 august 2009]), `Tournament` (Example values: [$10,000 islamabad, $10,000 shymkent, $10,000 new delhi]), `Location` (Example values: [islamabad , pakistan, shymkent , kazakhstan, new delhi, india]), `Surface` (Example values: [clay, hard]), `Opponent in the final` (Example values: [kim hae-sung, albina khabibulina, emily webley-smith]), `Score in the final` (Example values: [7–6(8), 6–4, 7–6(5), 3–6, 1–6, 7–6(8), 6–2])]\n", + "ori_query": "select `surface` from `1-29127804-3` where `location` = 'new delhi, delhi , india'", + "amb_query": "SELECT \"surface\" FROM \"1-29127804-3\" WHERE location IN ('new delhi, delhi , india', 'new delhi, india')" + }, + { + "db_id": "1-29127804-3", + "question": "what is the material of the surface in the dehradun , uttarakhand, india location", + "evidence": "", + "schema_text_wo_content": "Table 1-29127804-3, columns = [Outcome, Date, Tournament, Location, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-29127804-3, columns = [`Outcome` (Example values: [winner, runner-up]), `Date` (Example values: [24 november 2008, 18 april 2009, 10 august 2009]), `Tournament` (Example values: [$10,000 islamabad, $10,000 shymkent, $10,000 new delhi]), `Location` (Example values: [islamabad , pakistan, shymkent , kazakhstan, new delhi, india]), `Surface` (Example values: [clay, hard]), `Opponent in the final` (Example values: [kim hae-sung, albina khabibulina, emily webley-smith]), `Score in the final` (Example values: [7–6(8), 6–4, 7–6(5), 3–6, 1–6, 7–6(8), 6–2])]\n", + "ori_query": "select `surface` from `1-29127804-3` where `location` = 'dehradun , uttarakhand, india'", + "amb_query": "SELECT \"surface\" FROM \"1-29127804-3\" WHERE location IN ('dehradun , uttarakhand, india', 'dehradun district, uttarakhand')" + }, + { + "db_id": "1-29127804-3", + "question": "what is the material of the surface in noida , uttar pradesh, india", + "evidence": "", + "schema_text_wo_content": "Table 1-29127804-3, columns = [Outcome, Date, Tournament, Location, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-29127804-3, columns = [`Outcome` (Example values: [winner, runner-up]), `Date` (Example values: [24 november 2008, 18 april 2009, 10 august 2009]), `Tournament` (Example values: [$10,000 islamabad, $10,000 shymkent, $10,000 new delhi]), `Location` (Example values: [islamabad , pakistan, shymkent , kazakhstan, new delhi, india]), `Surface` (Example values: [clay, hard]), `Opponent in the final` (Example values: [kim hae-sung, albina khabibulina, emily webley-smith]), `Score in the final` (Example values: [7–6(8), 6–4, 7–6(5), 3–6, 1–6, 7–6(8), 6–2])]\n", + "ori_query": "select `surface` from `1-29127804-3` where `location` = 'noida , uttar pradesh, india'", + "amb_query": "SELECT \"surface\" FROM \"1-29127804-3\" WHERE location IN ('noida, uttar pradesh, in', 'noida , uttar pradesh, india')" + }, + { + "db_id": "1-29127804-3", + "question": "what is the date of the game played in the bangalore , karnataka, india location", + "evidence": "", + "schema_text_wo_content": "Table 1-29127804-3, columns = [Outcome, Date, Tournament, Location, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 1-29127804-3, columns = [`Outcome` (Example values: [winner, runner-up]), `Date` (Example values: [24 november 2008, 18 april 2009, 10 august 2009]), `Tournament` (Example values: [$10,000 islamabad, $10,000 shymkent, $10,000 new delhi]), `Location` (Example values: [islamabad , pakistan, shymkent , kazakhstan, new delhi, india]), `Surface` (Example values: [clay, hard]), `Opponent in the final` (Example values: [kim hae-sung, albina khabibulina, emily webley-smith]), `Score in the final` (Example values: [7–6(8), 6–4, 7–6(5), 3–6, 1–6, 7–6(8), 6–2])]\n", + "ori_query": "select `date` from `1-29127804-3` where `location` = 'bangalore , karnataka, india'", + "amb_query": "SELECT \"date\" FROM \"1-29127804-3\" WHERE location IN ('bangalore , karnataka, india', 'bangalore, karnataka, south india')" + }, + { + "db_id": "1-29202276-2", + "question": "What is the origin when the destination is bangalore?", + "evidence": "", + "schema_text_wo_content": "Table 1-29202276-2, columns = [Sl. No., Train number, Train name, Origin, Destination, Time, Service, Route/Via.]\n", + "schema_text_with_content": "Table 1-29202276-2, columns = [`Sl. No.` (Example values: [1.0, 2.0, 3.0]), `Train number` (Example values: [16724.0, 16127.0, 16128.0]), `Train name` (Example values: [ananthapuri express, guruvayur express, jayanthi janatha express]), `Origin` (Example values: [trivandrum, chennai, guruvayur]), `Destination` (Example values: [chennai, guruvayur, trivandrum]), `Time` (Example values: [17:15, 22:10, 4:49]), `Service` (Example values: [daily]), `Route/Via.` (Example values: [nagercoil,madurai,tiruchi, trivandrum, alleppey,ernakulam, kulitthurai,neyyattinkara])]\n", + "ori_query": "select `origin` from `1-29202276-2` where `destination` = 'bangalore'", + "amb_query": "SELECT \"origin\" FROM \"1-29202276-2\" WHERE destination IN ('bangalore', 'bangalore urban')" + }, + { + "db_id": "1-29202276-2", + "question": "What is the route/via when the destination is listed as mangalore?", + "evidence": "", + "schema_text_wo_content": "Table 1-29202276-2, columns = [Sl. No., Train number, Train name, Origin, Destination, Time, Service, Route/Via.]\n", + "schema_text_with_content": "Table 1-29202276-2, columns = [`Sl. No.` (Example values: [1.0, 2.0, 3.0]), `Train number` (Example values: [16724.0, 16127.0, 16128.0]), `Train name` (Example values: [ananthapuri express, guruvayur express, jayanthi janatha express]), `Origin` (Example values: [trivandrum, chennai, guruvayur]), `Destination` (Example values: [chennai, guruvayur, trivandrum]), `Time` (Example values: [17:15, 22:10, 4:49]), `Service` (Example values: [daily]), `Route/Via.` (Example values: [nagercoil,madurai,tiruchi, trivandrum, alleppey,ernakulam, kulitthurai,neyyattinkara])]\n", + "ori_query": "select `route/via.` from `1-29202276-2` where `destination` = 'mangalore'", + "amb_query": "SELECT \"route/via.\" FROM \"1-29202276-2\" WHERE destination IN ('mangalore city', 'mangalore')" + }, + { + "db_id": "1-29202276-2", + "question": "What is the origin when the destination is Mumbai?", + "evidence": "", + "schema_text_wo_content": "Table 1-29202276-2, columns = [Sl. No., Train number, Train name, Origin, Destination, Time, Service, Route/Via.]\n", + "schema_text_with_content": "Table 1-29202276-2, columns = [`Sl. No.` (Example values: [1.0, 2.0, 3.0]), `Train number` (Example values: [16724.0, 16127.0, 16128.0]), `Train name` (Example values: [ananthapuri express, guruvayur express, jayanthi janatha express]), `Origin` (Example values: [trivandrum, chennai, guruvayur]), `Destination` (Example values: [chennai, guruvayur, trivandrum]), `Time` (Example values: [17:15, 22:10, 4:49]), `Service` (Example values: [daily]), `Route/Via.` (Example values: [nagercoil,madurai,tiruchi, trivandrum, alleppey,ernakulam, kulitthurai,neyyattinkara])]\n", + "ori_query": "select `origin` from `1-29202276-2` where `destination` = 'mumbai'", + "amb_query": "SELECT \"origin\" FROM \"1-29202276-2\" WHERE destination IN ('mumbai', 'mumbai, maharashtra')" + }, + { + "db_id": "1-29202276-2", + "question": "What is the route/via when the destination is listed as Madurai?", + "evidence": "", + "schema_text_wo_content": "Table 1-29202276-2, columns = [Sl. No., Train number, Train name, Origin, Destination, Time, Service, Route/Via.]\n", + "schema_text_with_content": "Table 1-29202276-2, columns = [`Sl. No.` (Example values: [1.0, 2.0, 3.0]), `Train number` (Example values: [16724.0, 16127.0, 16128.0]), `Train name` (Example values: [ananthapuri express, guruvayur express, jayanthi janatha express]), `Origin` (Example values: [trivandrum, chennai, guruvayur]), `Destination` (Example values: [chennai, guruvayur, trivandrum]), `Time` (Example values: [17:15, 22:10, 4:49]), `Service` (Example values: [daily]), `Route/Via.` (Example values: [nagercoil,madurai,tiruchi, trivandrum, alleppey,ernakulam, kulitthurai,neyyattinkara])]\n", + "ori_query": "select `route/via.` from `1-29202276-2` where `destination` = 'madurai'", + "amb_query": "SELECT \"route/via.\" FROM \"1-29202276-2\" WHERE destination IN ('madurai', 'madurai city')" + }, + { + "db_id": "1-29612224-1", + "question": "How many different combinations of team colors are there in all the schools in sullivan, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select count(`colors`) from `1-29612224-1` where `location` = 'sullivan, illinois'", + "amb_query": "SELECT COUNT(\"colors\") FROM \"1-29612224-1\" WHERE location IN ('sullivan town, illinois', 'sullivan, illinois')" + }, + { + "db_id": "1-29612224-1", + "question": "What's the website of the school in argenta, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select `school website` from `1-29612224-1` where `location` = 'argenta, illinois'", + "amb_query": "SELECT \"school website\" FROM \"1-29612224-1\" WHERE location IN ('argenta, illinois, united states', 'argenta, illinois')" + }, + { + "db_id": "1-29612224-1", + "question": "What are the team colors from decatur, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select `colors` from `1-29612224-1` where `location` = 'decatur, illinois'", + "amb_query": "SELECT \"colors\" FROM \"1-29612224-1\" WHERE location IN ('decatur, il', 'decatur, illinois')" + }, + { + "db_id": "1-29612224-1", + "question": "How many different combinations of team colors are there in all the schools in Maroa, Illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select count(`colors`) from `1-29612224-1` where `location` = 'maroa, illinois'", + "amb_query": "SELECT COUNT(\"colors\") FROM \"1-29612224-1\" WHERE location IN ('maroa, illinois', 'maroa, illinois, usa')" + }, + { + "db_id": "1-29612224-1", + "question": "What's the website of the school in Macon, Illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select `school website` from `1-29612224-1` where `location` = 'macon, illinois'", + "amb_query": "SELECT \"school website\" FROM \"1-29612224-1\" WHERE location IN ('macon, illinois', 'macon township, illinois')" + }, + { + "db_id": "1-29612224-1", + "question": "What are the team colors from Tolono, Illinois?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select `colors` from `1-29612224-1` where `location` = 'tolono, illinois'", + "amb_query": "SELECT \"colors\" FROM \"1-29612224-1\" WHERE location IN ('tolono, illinois', 'tolono, illinois, united states')" + }, + { + "db_id": "1-29612224-1", + "question": "What colors can you see players from Tolono, Illinois wearing?", + "evidence": "", + "schema_text_wo_content": "Table 1-29612224-1, columns = [Institution, Location, Mascot, Colors, Affiliation, 9–12 enrollment, School website]\n", + "schema_text_with_content": "Table 1-29612224-1, columns = [`Institution` (Example values: [argenta-oreana, central a and m, clinton]), `Location` (Example values: [argenta, illinois, united states, moweaqua, illinois, clinton, illinois]), `Mascot` (Example values: [bombers, raiders, maroons]), `Colors` (Example values: [royal blue and orange, red and black, maroon and gold]), `Affiliation` (Example values: [public, private]), `9–12 enrollment` (Example values: [313.0, 306.0, 610.0]), `School website` (Example values: [http://www.argenta-oreana.org, http://www.cam.k12.il.us/hs, http://clintonathletics.com])]\n", + "ori_query": "select `colors` from `1-29612224-1` where `location` = 'tolono, illinois'", + "amb_query": "SELECT \"colors\" FROM \"1-29612224-1\" WHERE location IN ('tolono, illinois', 'tolono, illinois, united states')" + }, + { + "db_id": "2-1251765-10", + "question": "What is the average number of wins of drivers from colombia?", + "evidence": "", + "schema_text_wo_content": "Table 2-1251765-10, columns = [Rank, Nation, National Wins, Drivers, Driver Wins]\n", + "schema_text_with_content": "Table 2-1251765-10, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united kingdom, brazil, france]), `National Wins` (Example values: [8.0, 7.0, 3.0]), `Drivers` (Example values: [dario franchitti, dan wheldon, george robson [b]]), `Driver Wins` (Example values: [2007.0, 2005.0, 1946.0])]\n", + "ori_query": "select avg(`driver wins`) from `2-1251765-10` where `nation` = 'colombia'", + "amb_query": "SELECT AVG(\"driver wins\") FROM \"2-1251765-10\" WHERE nation IN ('colombia', 'colombia, south america')" + }, + { + "db_id": "2-1251765-10", + "question": "What is the average number of wins of drivers from Sweden?", + "evidence": "", + "schema_text_wo_content": "Table 2-1251765-10, columns = [Rank, Nation, National Wins, Drivers, Driver Wins]\n", + "schema_text_with_content": "Table 2-1251765-10, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united kingdom, brazil, france]), `National Wins` (Example values: [8.0, 7.0, 3.0]), `Drivers` (Example values: [dario franchitti, dan wheldon, george robson [b]]), `Driver Wins` (Example values: [2007.0, 2005.0, 1946.0])]\n", + "ori_query": "select avg(`driver wins`) from `2-1251765-10` where `nation` = 'sweden'", + "amb_query": "SELECT AVG(\"driver wins\") FROM \"2-1251765-10\" WHERE nation IN ('sweden', 'sweden, scandinavia')" + }, + { + "db_id": "2-10780927-1", + "question": "What is the sum of laps that has a car number of larger than 1, is a dodge, and has 155 points?", + "evidence": "", + "schema_text_wo_content": "Table 2-10780927-1, columns = [Driver, Car #, Make, Points, Laps, Winnings]\n", + "schema_text_with_content": "Table 2-10780927-1, columns = [`Driver` (Example values: [jeff gordon, tony stewart, denny hamlin]), `Car #` (Example values: [24.0, 20.0, 11.0]), `Make` (Example values: [chevrolet, ford, dodge]), `Points` (Example values: [190.0, 180.0, 170.0]), `Laps` (Example values: [312.0, 311.0, 310.0]), `Winnings` (Example values: [$251,411, $209,411, $158,150])]\n", + "ori_query": "select sum(`laps`) from `2-10780927-1` where `car #` > 1 and `make` = 'dodge' and `points` = 155", + "amb_query": "SELECT SUM(\"laps\") FROM \"2-10780927-1\" WHERE \"car #\" > 1 AND make IN ('dodge automobile', 'dodge brand', 'dodge') AND \"points\" = 155" + }, + { + "db_id": "2-10780927-1", + "question": "What is the sum of laps that has a car number of larger than 1, is a ford, and has 155 points?", + "evidence": "", + "schema_text_wo_content": "Table 2-10780927-1, columns = [Driver, Car #, Make, Points, Laps, Winnings]\n", + "schema_text_with_content": "Table 2-10780927-1, columns = [`Driver` (Example values: [jeff gordon, tony stewart, denny hamlin]), `Car #` (Example values: [24.0, 20.0, 11.0]), `Make` (Example values: [chevrolet, ford, dodge]), `Points` (Example values: [190.0, 180.0, 170.0]), `Laps` (Example values: [312.0, 311.0, 310.0]), `Winnings` (Example values: [$251,411, $209,411, $158,150])]\n", + "ori_query": "select sum(`laps`) from `2-10780927-1` where `car #` > 1 and `make` = 'ford' and `points` = 155", + "amb_query": "SELECT SUM(\"laps\") FROM \"2-10780927-1\" WHERE \"car #\" > 1 AND make IN ('ford car', 'ford', 'ford brand', 'ford vehicle') AND \"points\" = 155" + }, + { + "db_id": "2-15322962-2", + "question": "What is the label for the catalog of none, and is in the sweden?", + "evidence": "", + "schema_text_wo_content": "Table 2-15322962-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15322962-2, columns = [`Region` (Example values: [britain, uk, england, scotland, wales, and northern ireland]), `Date` (Example values: [november 18, 2002, 2003, 2002]), `Label` (Example values: [nebula, magik muzik, playground music scandinavia]), `Format` (Example values: [cd , maxi, vinyl , 12\", cdr, promo]), `Catalog` (Example values: [nebcd029, nebt029, nebtx029])]\n", + "ori_query": "select `label` from `2-15322962-2` where `catalog` = 'none' and `region` = 'sweden'", + "amb_query": "SELECT \"label\" FROM \"2-15322962-2\" WHERE \"catalog\" = 'none' AND region IN ('sweden', 'swedish')" + }, + { + "db_id": "2-15322962-2", + "question": "What is the label for the catalog of none, and is in the United Kingdom?", + "evidence": "", + "schema_text_wo_content": "Table 2-15322962-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15322962-2, columns = [`Region` (Example values: [britain, uk, england, scotland, wales, and northern ireland]), `Date` (Example values: [november 18, 2002, 2003, 2002]), `Label` (Example values: [nebula, magik muzik, playground music scandinavia]), `Format` (Example values: [cd , maxi, vinyl , 12\", cdr, promo]), `Catalog` (Example values: [nebcd029, nebt029, nebtx029])]\n", + "ori_query": "select `label` from `2-15322962-2` where `catalog` = 'none' and `region` = 'united kingdom'", + "amb_query": "SELECT \"label\" FROM \"2-15322962-2\" WHERE \"catalog\" = 'none' AND region IN ('england, scotland, wales, and northern ireland', 'britain', 'uk', 'united kingdom')" + }, + { + "db_id": "2-15322962-2", + "question": "What is the label from the Netherlands?", + "evidence": "", + "schema_text_wo_content": "Table 2-15322962-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15322962-2, columns = [`Region` (Example values: [britain, uk, england, scotland, wales, and northern ireland]), `Date` (Example values: [november 18, 2002, 2003, 2002]), `Label` (Example values: [nebula, magik muzik, playground music scandinavia]), `Format` (Example values: [cd , maxi, vinyl , 12\", cdr, promo]), `Catalog` (Example values: [nebcd029, nebt029, nebtx029])]\n", + "ori_query": "select `label` from `2-15322962-2` where `region` = 'netherlands'", + "amb_query": "SELECT \"label\" FROM \"2-15322962-2\" WHERE region IN ('netherlands', 'holland')" + }, + { + "db_id": "2-18965848-4", + "question": "Which Rank has a Bronze of 1, and a Nation of sweden?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select `rank` from `2-18965848-4` where `bronze` = 1 and `nation` = 'sweden'", + "amb_query": "SELECT \"rank\" FROM \"2-18965848-4\" WHERE \"bronze\" = 1 AND nation IN ('sweden', 'swedish')" + }, + { + "db_id": "2-18965848-4", + "question": "Which Bronze has a Gold of 2, and a Nation of total, and a Total larger than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select max(`bronze`) from `2-18965848-4` where `gold` = 2 and `nation` = 'total' and `total` > 2", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-18965848-4\" WHERE \"gold\" = 2 AND nation IN ('overall injuries', 'total') AND \"total\" > 2" + }, + { + "db_id": "2-18965848-4", + "question": "How much Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Nation of hungary, and a Total larger than 11?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select count(`bronze`) from `2-18965848-4` where `gold` > 1 and `silver` < 3 and `nation` = 'hungary' and `total` > 11", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-18965848-4\" WHERE \"gold\" > 1 AND \"silver\" < 3 AND nation IN ('hungary', 'hungarian republic') AND \"total\" > 11" + }, + { + "db_id": "2-18965848-4", + "question": "How much Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Nation of bulgaria, and a Total larger than 11?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select count(`bronze`) from `2-18965848-4` where `gold` > 1 and `silver` < 3 and `nation` = 'bulgaria' and `total` > 11", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-18965848-4\" WHERE \"gold\" > 1 AND \"silver\" < 3 AND nation IN ('bulgaria', 'bulgaria, eu') AND \"total\" > 11" + }, + { + "db_id": "2-18965848-4", + "question": "Which Rank has a Bronze of 1, and a Nation of spain?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select `rank` from `2-18965848-4` where `bronze` = 1 and `nation` = 'spain'", + "amb_query": "SELECT \"rank\" FROM \"2-18965848-4\" WHERE \"bronze\" = 1 AND nation IN ('spain', 'kingdom of spain')" + }, + { + "db_id": "2-18965848-4", + "question": "Which Bronze has a Gold of 2, and a Nation of new zealand, and a Total larger than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select max(`bronze`) from `2-18965848-4` where `gold` = 2 and `nation` = 'new zealand' and `total` > 2", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-18965848-4\" WHERE \"gold\" = 2 AND nation IN ('new zealand', 'new zealand nation') AND \"total\" > 2" + }, + { + "db_id": "2-18965848-4", + "question": "How much Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Nation of germany, and a Total larger than 11?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select count(`bronze`) from `2-18965848-4` where `gold` > 1 and `silver` < 3 and `nation` = 'germany' and `total` > 11", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-18965848-4\" WHERE \"gold\" > 1 AND \"silver\" < 3 AND nation IN ('germany', 'germany country') AND \"total\" > 11" + }, + { + "db_id": "2-18965848-4", + "question": "Which Rank has a Bronze of 1, and a Nation of lithuania?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select `rank` from `2-18965848-4` where `bronze` = 1 and `nation` = 'lithuania'", + "amb_query": "SELECT \"rank\" FROM \"2-18965848-4\" WHERE \"bronze\" = 1 AND nation IN ('lithuania', 'the country of lithuania')" + }, + { + "db_id": "2-18965848-4", + "question": "Which Bronze has a Gold of 2, and a Nation of slovakia, and a Total larger than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18965848-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18965848-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungarian republic, germany country, poland]), `Gold` (Example values: [10.0, 4.0, 2.0]), `Silver` (Example values: [1.0, 2.0, 3.0]), `Bronze` (Example values: [3.0, 5.0, 2.0]), `Total` (Example values: [14.0, 11.0, 10.0])]\n", + "ori_query": "select max(`bronze`) from `2-18965848-4` where `gold` = 2 and `nation` = 'slovakia' and `total` > 2", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-18965848-4\" WHERE \"gold\" = 2 AND nation IN ('the country of slovakia', 'slovakia') AND \"total\" > 2" + }, + { + "db_id": "2-14323142-16", + "question": "Which player is from the sweden, and played for the Bowling Green Falcons (CCHA) as their College/Junior/Club Team (League)?", + "evidence": "", + "schema_text_wo_content": "Table 2-14323142-16, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-14323142-16, columns = [`Round` (Example values: [1, 2, 3]), `Player` (Example values: [claude boivin, pat murray, craig fisher]), `Position` (Example values: [left wing, goaltender, defense]), `Nationality` (Example values: [canada, united states of america, usa]), `College/Junior/Club Team (League)` (Example values: [drummondville voltigeurs ( qmjhl ), michigan state spartans ( ccha ), oshawa legionaires ( metjhl )])]\n", + "ori_query": "select `player` from `2-14323142-16` where `nationality` = 'sweden' and `college/junior/club team (league)` = 'bowling green falcons (ccha)'", + "amb_query": "SELECT \"player\" FROM \"2-14323142-16\" WHERE nationality IN ('sweden', 'kingdom of sweden') AND \"college/junior/club team (league)\" = 'bowling green falcons (ccha)'" + }, + { + "db_id": "2-14323142-16", + "question": "Which player is from the United States, and played for the Bowling Green Falcons (CCHA) as their College/Junior/Club Team (League)?", + "evidence": "", + "schema_text_wo_content": "Table 2-14323142-16, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-14323142-16, columns = [`Round` (Example values: [1, 2, 3]), `Player` (Example values: [claude boivin, pat murray, craig fisher]), `Position` (Example values: [left wing, goaltender, defense]), `Nationality` (Example values: [canada, united states of america, usa]), `College/Junior/Club Team (League)` (Example values: [drummondville voltigeurs ( qmjhl ), michigan state spartans ( ccha ), oshawa legionaires ( metjhl )])]\n", + "ori_query": "select `player` from `2-14323142-16` where `nationality` = 'united states' and `college/junior/club team (league)` = 'bowling green falcons (ccha)'", + "amb_query": "SELECT \"player\" FROM \"2-14323142-16\" WHERE nationality IN ('america', 'united states', 'united states of america', 'usa') AND \"college/junior/club team (league)\" = 'bowling green falcons (ccha)'" + }, + { + "db_id": "2-14707564-9", + "question": "What is the name of the player from sweden with a rank lower than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-14707564-9, columns = [Ranking, Nationality, Name, Adjusted fee, From, Year]\n", + "schema_text_with_content": "Table 2-14707564-9, columns = [`Ranking` (Example values: [1.0, 2.0, 3.0]), `Nationality` (Example values: [brazil, sweden country, spain]), `Name` (Example values: [neymar, zlatan ibrahimović category:articles with hcards, cesc fàbregas category:articles with hcards]), `Adjusted fee` (Example values: [£m]), `From` (Example values: [santos fc, internazionale, arsenal, london]), `Year` (Example values: [2013.0, 2009.0, 2011.0])]\n", + "ori_query": "select `name` from `2-14707564-9` where `nationality` = 'sweden' and `ranking` > 3", + "amb_query": "SELECT \"name\" FROM \"2-14707564-9\" WHERE nationality IN ('sweden', 'sweden country') AND \"ranking\" > 3" + }, + { + "db_id": "2-14707564-9", + "question": "What is the name of the player from Spain with a rank lower than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-14707564-9, columns = [Ranking, Nationality, Name, Adjusted fee, From, Year]\n", + "schema_text_with_content": "Table 2-14707564-9, columns = [`Ranking` (Example values: [1.0, 2.0, 3.0]), `Nationality` (Example values: [brazil, sweden country, spain]), `Name` (Example values: [neymar, zlatan ibrahimović category:articles with hcards, cesc fàbregas category:articles with hcards]), `Adjusted fee` (Example values: [£m]), `From` (Example values: [santos fc, internazionale, arsenal, london]), `Year` (Example values: [2013.0, 2009.0, 2011.0])]\n", + "ori_query": "select `name` from `2-14707564-9` where `nationality` = 'spain' and `ranking` > 3", + "amb_query": "SELECT \"name\" FROM \"2-14707564-9\" WHERE nationality IN ('spain', 'spain country') AND \"ranking\" > 3" + }, + { + "db_id": "2-14707564-9", + "question": "What is the most recent year a player was from arsenal?", + "evidence": "", + "schema_text_wo_content": "Table 2-14707564-9, columns = [Ranking, Nationality, Name, Adjusted fee, From, Year]\n", + "schema_text_with_content": "Table 2-14707564-9, columns = [`Ranking` (Example values: [1.0, 2.0, 3.0]), `Nationality` (Example values: [brazil, sweden country, spain]), `Name` (Example values: [neymar, zlatan ibrahimović category:articles with hcards, cesc fàbregas category:articles with hcards]), `Adjusted fee` (Example values: [£m]), `From` (Example values: [santos fc, internazionale, arsenal, london]), `Year` (Example values: [2013.0, 2009.0, 2011.0])]\n", + "ori_query": "select max(`year`) from `2-14707564-9` where `from` = 'arsenal'", + "amb_query": "SELECT MAX(\"year\") FROM \"2-14707564-9\" WHERE from IN ('arsenal, london', 'arsenal')" + }, + { + "db_id": "2-14707564-9", + "question": "What is the most recent year a player was from Valencia?", + "evidence": "", + "schema_text_wo_content": "Table 2-14707564-9, columns = [Ranking, Nationality, Name, Adjusted fee, From, Year]\n", + "schema_text_with_content": "Table 2-14707564-9, columns = [`Ranking` (Example values: [1.0, 2.0, 3.0]), `Nationality` (Example values: [brazil, sweden country, spain]), `Name` (Example values: [neymar, zlatan ibrahimović category:articles with hcards, cesc fàbregas category:articles with hcards]), `Adjusted fee` (Example values: [£m]), `From` (Example values: [santos fc, internazionale, arsenal, london]), `Year` (Example values: [2013.0, 2009.0, 2011.0])]\n", + "ori_query": "select max(`year`) from `2-14707564-9` where `from` = 'valencia'", + "amb_query": "SELECT MAX(\"year\") FROM \"2-14707564-9\" WHERE from IN ('valencia cf', 'valencia')" + }, + { + "db_id": "2-15987929-1", + "question": "What is the sum of silver medals of the nation sweden, which has less than 0 gold?", + "evidence": "", + "schema_text_wo_content": "Table 2-15987929-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15987929-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, romania, east germany]), `Gold` (Example values: [12.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 1.0, 2.0]), `Bronze` (Example values: [4.0, 2.0, 1.0]), `Total` (Example values: [20.0, 6.0, 4.0])]\n", + "ori_query": "select sum(`silver`) from `2-15987929-1` where `nation` = 'sweden' and `gold` < 0", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-15987929-1\" WHERE nation IN ('sweden', 'sweden, northern europe') AND \"gold\" < 0" + }, + { + "db_id": "2-15987929-1", + "question": "What is the sum of silver medals of the nation bulgaria, which has less than 0 gold?", + "evidence": "", + "schema_text_wo_content": "Table 2-15987929-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15987929-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, romania, east germany]), `Gold` (Example values: [12.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 1.0, 2.0]), `Bronze` (Example values: [4.0, 2.0, 1.0]), `Total` (Example values: [20.0, 6.0, 4.0])]\n", + "ori_query": "select sum(`silver`) from `2-15987929-1` where `nation` = 'bulgaria' and `gold` < 0", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-15987929-1\" WHERE nation IN ('bulgaria', 'bulgaria country') AND \"gold\" < 0" + }, + { + "db_id": "2-15987929-1", + "question": "What is the sum of silver medals of the nation Cuba, which has less than 0 gold?", + "evidence": "", + "schema_text_wo_content": "Table 2-15987929-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15987929-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, romania, east germany]), `Gold` (Example values: [12.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 1.0, 2.0]), `Bronze` (Example values: [4.0, 2.0, 1.0]), `Total` (Example values: [20.0, 6.0, 4.0])]\n", + "ori_query": "select sum(`silver`) from `2-15987929-1` where `nation` = 'cuba' and `gold` < 0", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-15987929-1\" WHERE nation IN ('cuba, west indies', 'cuba') AND \"gold\" < 0" + }, + { + "db_id": "2-18632367-4", + "question": "What's the highest total of sweden when the bronze was less than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18632367-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18632367-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, east germany, hungary]), `Gold` (Example values: [6.0, 7.0, 3.0]), `Silver` (Example values: [4.0, 2.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 1.0]), `Total` (Example values: [12.0, 11.0, 8.0])]\n", + "ori_query": "select max(`total`) from `2-18632367-4` where `nation` = 'sweden' and `bronze` < 2", + "amb_query": "SELECT MAX(\"total\") FROM \"2-18632367-4\" WHERE nation IN ('sweden', 'kingdom of sweden') AND \"bronze\" < 2" + }, + { + "db_id": "2-18632367-4", + "question": "What's the highest total of czechoslovakia when the bronze was less than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18632367-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18632367-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, east germany, hungary]), `Gold` (Example values: [6.0, 7.0, 3.0]), `Silver` (Example values: [4.0, 2.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 1.0]), `Total` (Example values: [12.0, 11.0, 8.0])]\n", + "ori_query": "select max(`total`) from `2-18632367-4` where `nation` = 'czechoslovakia' and `bronze` < 2", + "amb_query": "SELECT MAX(\"total\") FROM \"2-18632367-4\" WHERE nation IN ('czechoslovakia', 'czech republic and slovakia') AND \"bronze\" < 2" + }, + { + "db_id": "2-18632367-4", + "question": "What's the highest total of Romania when the bronze was less than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18632367-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18632367-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, east germany, hungary]), `Gold` (Example values: [6.0, 7.0, 3.0]), `Silver` (Example values: [4.0, 2.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 1.0]), `Total` (Example values: [12.0, 11.0, 8.0])]\n", + "ori_query": "select max(`total`) from `2-18632367-4` where `nation` = 'romania' and `bronze` < 2", + "amb_query": "SELECT MAX(\"total\") FROM \"2-18632367-4\" WHERE nation IN ('romanian', 'romania') AND \"bronze\" < 2" + }, + { + "db_id": "2-167446-1", + "question": "what is the date when the nationality is kingdom of yugoslavia, the type is freighter and the displacement is 5,145 t?", + "evidence": "", + "schema_text_wo_content": "Table 2-167446-1, columns = [Name, Type, Nationality, Date, Displacement]\n", + "schema_text_with_content": "Table 2-167446-1, columns = [`Name` (Example values: [scientist, tirrana, city of baghdad]), `Type` (Example values: [freighter, passenger liner, motor vessel]), `Nationality` (Example values: [england, scotland, wales, and northern ireland, norway, united kingdom of great britain and northern ireland]), `Date` (Example values: [3 may 1940, 10 june 1940, 11 july 1940]), `Displacement` (Example values: [6,200 t, 7,230 t, 7,505 t])]\n", + "ori_query": "select `date` from `2-167446-1` where `nationality` = 'kingdom of yugoslavia' and `type` = 'freighter' and `displacement` = '5,145 t'", + "amb_query": "SELECT \"date\" FROM \"2-167446-1\" WHERE nationality IN ('kingdom of yugoslavia', 'yugoslav republic') AND \"type\" = 'freighter' AND \"displacement\" = '5,145 t'" + }, + { + "db_id": "2-167446-1", + "question": "what is the date when the nationality is united kingdom, the type is freighter and the displacement is 5,145 t?", + "evidence": "", + "schema_text_wo_content": "Table 2-167446-1, columns = [Name, Type, Nationality, Date, Displacement]\n", + "schema_text_with_content": "Table 2-167446-1, columns = [`Name` (Example values: [scientist, tirrana, city of baghdad]), `Type` (Example values: [freighter, passenger liner, motor vessel]), `Nationality` (Example values: [england, scotland, wales, and northern ireland, norway, united kingdom of great britain and northern ireland]), `Date` (Example values: [3 may 1940, 10 june 1940, 11 july 1940]), `Displacement` (Example values: [6,200 t, 7,230 t, 7,505 t])]\n", + "ori_query": "select `date` from `2-167446-1` where `nationality` = 'united kingdom' and `type` = 'freighter' and `displacement` = '5,145 t'", + "amb_query": "SELECT \"date\" FROM \"2-167446-1\" WHERE nationality IN ('england, scotland, wales, and northern ireland', 'uk', 'united kingdom of great britain and northern ireland', 'united kingdom') AND \"type\" = 'freighter' AND \"displacement\" = '5,145 t'" + }, + { + "db_id": "2-167446-1", + "question": "what is the name when the type is freighter, nationality is united kingdom on 3 may 1940?", + "evidence": "", + "schema_text_wo_content": "Table 2-167446-1, columns = [Name, Type, Nationality, Date, Displacement]\n", + "schema_text_with_content": "Table 2-167446-1, columns = [`Name` (Example values: [scientist, tirrana, city of baghdad]), `Type` (Example values: [freighter, passenger liner, motor vessel]), `Nationality` (Example values: [england, scotland, wales, and northern ireland, norway, united kingdom of great britain and northern ireland]), `Date` (Example values: [3 may 1940, 10 june 1940, 11 july 1940]), `Displacement` (Example values: [6,200 t, 7,230 t, 7,505 t])]\n", + "ori_query": "select `name` from `2-167446-1` where `type` = 'freighter' and `nationality` = 'united kingdom' and `date` = '3 may 1940'", + "amb_query": "SELECT \"name\" FROM \"2-167446-1\" WHERE \"type\" = 'freighter' AND nationality IN ('england, scotland, wales, and northern ireland', 'uk', 'united kingdom of great britain and northern ireland', 'united kingdom') AND \"date\" = '3 may 1940'" + }, + { + "db_id": "2-167446-1", + "question": "what is the name for the nationality total:?", + "evidence": "", + "schema_text_wo_content": "Table 2-167446-1, columns = [Name, Type, Nationality, Date, Displacement]\n", + "schema_text_with_content": "Table 2-167446-1, columns = [`Name` (Example values: [scientist, tirrana, city of baghdad]), `Type` (Example values: [freighter, passenger liner, motor vessel]), `Nationality` (Example values: [england, scotland, wales, and northern ireland, norway, united kingdom of great britain and northern ireland]), `Date` (Example values: [3 may 1940, 10 june 1940, 11 july 1940]), `Displacement` (Example values: [6,200 t, 7,230 t, 7,505 t])]\n", + "ori_query": "select `name` from `2-167446-1` where `nationality` = 'total:'", + "amb_query": "SELECT \"name\" FROM \"2-167446-1\" WHERE \"nationality\" = 'total:'" + }, + { + "db_id": "2-1074011-3", + "question": "How many people were injured in total in bastar, chattisgarh with more than 2 people killed?", + "evidence": "", + "schema_text_wo_content": "Table 2-1074011-3, columns = [Incident No., Date, Place, Killed, Injured]\n", + "schema_text_with_content": "Table 2-1074011-3, columns = [`Incident No.` (Example values: [1, 2, 3]), `Date` (Example values: [9 february, 15 february, 28 february]), `Place` (Example values: [dantewada, chhattisgarh state, erraboru, chhattisgarh, bihar's east champaran]), `Killed` (Example values: [8.0, 3.0, 25.0]), `Injured` (Example values: [0.0, 9.0, 5.0])]\n", + "ori_query": "select count(`injured`) from `2-1074011-3` where `place` = 'bastar, chattisgarh' and `killed` > 2", + "amb_query": "SELECT COUNT(\"injured\") FROM \"2-1074011-3\" WHERE place IN ('bastar, india', 'bastar, chattisgarh') AND \"killed\" > 2" + }, + { + "db_id": "2-1074011-3", + "question": "What is the least amount of injuries in total when 8 people were killed?", + "evidence": "", + "schema_text_wo_content": "Table 2-1074011-3, columns = [Incident No., Date, Place, Killed, Injured]\n", + "schema_text_with_content": "Table 2-1074011-3, columns = [`Incident No.` (Example values: [1, 2, 3]), `Date` (Example values: [9 february, 15 february, 28 february]), `Place` (Example values: [dantewada, chhattisgarh state, erraboru, chhattisgarh, bihar's east champaran]), `Killed` (Example values: [8.0, 3.0, 25.0]), `Injured` (Example values: [0.0, 9.0, 5.0])]\n", + "ori_query": "select min(`injured`) from `2-1074011-3` where `place` = 'total' and `killed` = 8", + "amb_query": "SELECT MIN(\"injured\") FROM \"2-1074011-3\" WHERE place IN ('total', 'total injury count') AND \"killed\" = 8" + }, + { + "db_id": "2-1074011-3", + "question": "How many people were injured in total in East Champaran, Bihar with more than 2 people killed?", + "evidence": "", + "schema_text_wo_content": "Table 2-1074011-3, columns = [Incident No., Date, Place, Killed, Injured]\n", + "schema_text_with_content": "Table 2-1074011-3, columns = [`Incident No.` (Example values: [1, 2, 3]), `Date` (Example values: [9 february, 15 february, 28 february]), `Place` (Example values: [dantewada, chhattisgarh state, erraboru, chhattisgarh, bihar's east champaran]), `Killed` (Example values: [8.0, 3.0, 25.0]), `Injured` (Example values: [0.0, 9.0, 5.0])]\n", + "ori_query": "select count(`injured`) from `2-1074011-3` where `place` = 'east champaran, bihar' and `killed` > 2", + "amb_query": "SELECT COUNT(\"injured\") FROM \"2-1074011-3\" WHERE \"place\" = 'east champaran, bihar' AND \"killed\" > 2" + }, + { + "db_id": "2-1074011-3", + "question": "What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?", + "evidence": "", + "schema_text_wo_content": "Table 2-1074011-3, columns = [Incident No., Date, Place, Killed, Injured]\n", + "schema_text_with_content": "Table 2-1074011-3, columns = [`Incident No.` (Example values: [1, 2, 3]), `Date` (Example values: [9 february, 15 february, 28 february]), `Place` (Example values: [dantewada, chhattisgarh state, erraboru, chhattisgarh, bihar's east champaran]), `Killed` (Example values: [8.0, 3.0, 25.0]), `Injured` (Example values: [0.0, 9.0, 5.0])]\n", + "ori_query": "select min(`injured`) from `2-1074011-3` where `place` = 'dantewada, chhattisgarh' and `killed` = 8", + "amb_query": "SELECT MIN(\"injured\") FROM \"2-1074011-3\" WHERE place IN ('dantewada, chhattisgarh state', 'dantewada, chhattisgarh region', 'dantewada, chhattisgarh') AND \"killed\" = 8" + }, + { + "db_id": "2-15970834-1", + "question": "What is the sum of Total, when Nation is total, and when Gold is greater than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15970834-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15970834-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, west germany (frg), bulgarian republic]), `Gold` (Example values: [12.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 5.0, 2.0]), `Bronze` (Example values: [4.0, 0.0, 1.0]), `Total` (Example values: [16.0, 2.0, 7.0])]\n", + "ori_query": "select sum(`total`) from `2-15970834-1` where `nation` = 'total' and `gold` > 2", + "amb_query": "SELECT SUM(\"total\") FROM \"2-15970834-1\" WHERE nation IN ('overall injuries', 'total') AND \"gold\" > 2" + }, + { + "db_id": "2-15970834-1", + "question": "What is the average Total, when Gold is 0, and when Nation is bulgaria?", + "evidence": "", + "schema_text_wo_content": "Table 2-15970834-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15970834-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, west germany (frg), bulgarian republic]), `Gold` (Example values: [12.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 5.0, 2.0]), `Bronze` (Example values: [4.0, 0.0, 1.0]), `Total` (Example values: [16.0, 2.0, 7.0])]\n", + "ori_query": "select avg(`total`) from `2-15970834-1` where `gold` = 0 and `nation` = 'bulgaria'", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15970834-1\" WHERE \"gold\" = 0 AND nation IN ('bulgarian republic', 'bulgaria')" + }, + { + "db_id": "2-15970834-1", + "question": "What is the sum of Total, when Nation is south korea, and when Gold is greater than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15970834-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15970834-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, west germany (frg), bulgarian republic]), `Gold` (Example values: [12.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 5.0, 2.0]), `Bronze` (Example values: [4.0, 0.0, 1.0]), `Total` (Example values: [16.0, 2.0, 7.0])]\n", + "ori_query": "select sum(`total`) from `2-15970834-1` where `nation` = 'south korea' and `gold` > 2", + "amb_query": "SELECT SUM(\"total\") FROM \"2-15970834-1\" WHERE nation IN ('south korea', 'republic of korea') AND \"gold\" > 2" + }, + { + "db_id": "2-15970834-1", + "question": "What is the average Total, when Gold is 0, and when Nation is mongolia?", + "evidence": "", + "schema_text_wo_content": "Table 2-15970834-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15970834-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, west germany (frg), bulgarian republic]), `Gold` (Example values: [12.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 5.0, 2.0]), `Bronze` (Example values: [4.0, 0.0, 1.0]), `Total` (Example values: [16.0, 2.0, 7.0])]\n", + "ori_query": "select avg(`total`) from `2-15970834-1` where `gold` = 0 and `nation` = 'mongolia'", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15970834-1\" WHERE \"gold\" = 0 AND nation IN ('mongolia', 'mongolian republic')" + }, + { + "db_id": "2-15970834-1", + "question": "What is the sum of Total, when Nation is West Germany, and when Gold is greater than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15970834-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15970834-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, west germany (frg), bulgarian republic]), `Gold` (Example values: [12.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 5.0, 2.0]), `Bronze` (Example values: [4.0, 0.0, 1.0]), `Total` (Example values: [16.0, 2.0, 7.0])]\n", + "ori_query": "select sum(`total`) from `2-15970834-1` where `nation` = 'west germany' and `gold` > 2", + "amb_query": "SELECT SUM(\"total\") FROM \"2-15970834-1\" WHERE nation IN ('west germany (frg)', 'west germany') AND \"gold\" > 2" + }, + { + "db_id": "2-15970834-1", + "question": "What is the average Total, when Gold is 0, and when Nation is Iran?", + "evidence": "", + "schema_text_wo_content": "Table 2-15970834-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15970834-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, west germany (frg), bulgarian republic]), `Gold` (Example values: [12.0, 2.0, 1.0]), `Silver` (Example values: [0.0, 5.0, 2.0]), `Bronze` (Example values: [4.0, 0.0, 1.0]), `Total` (Example values: [16.0, 2.0, 7.0])]\n", + "ori_query": "select avg(`total`) from `2-15970834-1` where `gold` = 0 and `nation` = 'iran'", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15970834-1\" WHERE \"gold\" = 0 AND nation IN ('iran, middle east', 'iran')" + }, + { + "db_id": "2-18788871-4", + "question": "What is the fewest number of silver medals won by total with fewer than 3 total medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-18788871-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18788871-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [germany, hungary, sweden]), `Gold` (Example values: [7.0, 5.0, 2.0]), `Silver` (Example values: [1.0, 5.0, 3.0]), `Bronze` (Example values: [6.0, 2.0, 1.0]), `Total` (Example values: [14.0, 12.0, 6.0])]\n", + "ori_query": "select min(`silver`) from `2-18788871-4` where `nation` = 'total' and `total` < 3", + "amb_query": "SELECT MIN(\"silver\") FROM \"2-18788871-4\" WHERE nation IN ('overall injuries', 'total') AND \"total\" < 3" + }, + { + "db_id": "2-18788871-4", + "question": "What is the fewest number of silver medals won by czech republic with fewer than 3 total medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-18788871-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18788871-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [germany, hungary, sweden]), `Gold` (Example values: [7.0, 5.0, 2.0]), `Silver` (Example values: [1.0, 5.0, 3.0]), `Bronze` (Example values: [6.0, 2.0, 1.0]), `Total` (Example values: [14.0, 12.0, 6.0])]\n", + "ori_query": "select min(`silver`) from `2-18788871-4` where `nation` = 'czech republic' and `total` < 3", + "amb_query": "SELECT MIN(\"silver\") FROM \"2-18788871-4\" WHERE nation IN ('czech republic, central europe', 'czech republic') AND \"total\" < 3" + }, + { + "db_id": "2-18788871-4", + "question": "What is the fewest number of silver medals won by Canada with fewer than 3 total medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-18788871-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18788871-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [germany, hungary, sweden]), `Gold` (Example values: [7.0, 5.0, 2.0]), `Silver` (Example values: [1.0, 5.0, 3.0]), `Bronze` (Example values: [6.0, 2.0, 1.0]), `Total` (Example values: [14.0, 12.0, 6.0])]\n", + "ori_query": "select min(`silver`) from `2-18788871-4` where `nation` = 'canada' and `total` < 3", + "amb_query": "SELECT MIN(\"silver\") FROM \"2-18788871-4\" WHERE nation IN ('canada', 'the nation of canada') AND \"total\" < 3" + }, + { + "db_id": "2-18566436-1", + "question": "What is total's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18566436-1, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18566436-1, columns = [`Nation` (Example values: [great britain, russia, italy]), `Gold` (Example values: [10.0, 6.0, 4.0]), `Silver` (Example values: [5.0, 7.0, 8.0]), `Bronze` (Example values: [3.0, 11.0, 0.0]), `Total` (Example values: [18.0, 24.0, 15.0])]\n", + "ori_query": "select avg(`gold`) from `2-18566436-1` where `bronze` < 2 and `nation` = 'total' and `total` > 1", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18566436-1\" WHERE \"bronze\" < 2 AND nation IN ('total', 'total injury count') AND \"total\" > 1" + }, + { + "db_id": "2-18566436-1", + "question": "What is the average Gold entry for the poland that also has a Bronze entry that is greater than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-18566436-1, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18566436-1, columns = [`Nation` (Example values: [great britain, russia, italy]), `Gold` (Example values: [10.0, 6.0, 4.0]), `Silver` (Example values: [5.0, 7.0, 8.0]), `Bronze` (Example values: [3.0, 11.0, 0.0]), `Total` (Example values: [18.0, 24.0, 15.0])]\n", + "ori_query": "select avg(`gold`) from `2-18566436-1` where `nation` = 'poland' and `bronze` > 0", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18566436-1\" WHERE nation IN ('polska', 'poland') AND \"bronze\" > 0" + }, + { + "db_id": "2-18566436-1", + "question": "What is germany's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18566436-1, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18566436-1, columns = [`Nation` (Example values: [great britain, russia, italy]), `Gold` (Example values: [10.0, 6.0, 4.0]), `Silver` (Example values: [5.0, 7.0, 8.0]), `Bronze` (Example values: [3.0, 11.0, 0.0]), `Total` (Example values: [18.0, 24.0, 15.0])]\n", + "ori_query": "select avg(`gold`) from `2-18566436-1` where `bronze` < 2 and `nation` = 'germany' and `total` > 1", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18566436-1\" WHERE \"bronze\" < 2 AND nation IN ('germany', 'germany, europe') AND \"total\" > 1" + }, + { + "db_id": "2-18566436-1", + "question": "What is the average Gold entry for the serbia that also has a Bronze entry that is greater than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-18566436-1, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18566436-1, columns = [`Nation` (Example values: [great britain, russia, italy]), `Gold` (Example values: [10.0, 6.0, 4.0]), `Silver` (Example values: [5.0, 7.0, 8.0]), `Bronze` (Example values: [3.0, 11.0, 0.0]), `Total` (Example values: [18.0, 24.0, 15.0])]\n", + "ori_query": "select avg(`gold`) from `2-18566436-1` where `nation` = 'serbia' and `bronze` > 0", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18566436-1\" WHERE nation IN ('serbia country', 'serbia') AND \"bronze\" > 0" + }, + { + "db_id": "2-18566436-1", + "question": "What is the average Gold entry for the Netherlands that also has a Bronze entry that is greater than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-18566436-1, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18566436-1, columns = [`Nation` (Example values: [great britain, russia, italy]), `Gold` (Example values: [10.0, 6.0, 4.0]), `Silver` (Example values: [5.0, 7.0, 8.0]), `Bronze` (Example values: [3.0, 11.0, 0.0]), `Total` (Example values: [18.0, 24.0, 15.0])]\n", + "ori_query": "select avg(`gold`) from `2-18566436-1` where `nation` = 'netherlands' and `bronze` > 0", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18566436-1\" WHERE nation IN ('netherlands', 'holland') AND \"bronze\" > 0" + }, + { + "db_id": "2-18566436-1", + "question": "What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18566436-1, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18566436-1, columns = [`Nation` (Example values: [great britain, russia, italy]), `Gold` (Example values: [10.0, 6.0, 4.0]), `Silver` (Example values: [5.0, 7.0, 8.0]), `Bronze` (Example values: [3.0, 11.0, 0.0]), `Total` (Example values: [18.0, 24.0, 15.0])]\n", + "ori_query": "select avg(`gold`) from `2-18566436-1` where `bronze` < 2 and `nation` = 'turkey' and `total` > 1", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18566436-1\" WHERE \"bronze\" < 2 AND nation IN ('turkey', 'turkish republic') AND \"total\" > 1" + }, + { + "db_id": "2-15504821-3", + "question": "What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is hungary and there is more than 2 for Bronze?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select avg(`total`) from `2-15504821-3` where `gold` = 0 and `rank` < 16 and `nation` = 'hungary' and `bronze` > 2", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15504821-3\" WHERE \"gold\" = 0 AND \"rank\" < 16 AND nation IN ('hungary country', 'hungary') AND \"bronze\" > 2" + }, + { + "db_id": "2-15504821-3", + "question": "What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is france and there is more than 2 for Bronze?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select avg(`total`) from `2-15504821-3` where `gold` = 0 and `rank` < 16 and `nation` = 'france' and `bronze` > 2", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15504821-3\" WHERE \"gold\" = 0 AND \"rank\" < 16 AND nation IN ('france', 'french republic') AND \"bronze\" > 2" + }, + { + "db_id": "2-15504821-3", + "question": "What is the total number of Total when united states is the nation with less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select count(`total`) from `2-15504821-3` where `nation` = 'united states' and `silver` < 1", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-15504821-3\" WHERE nation IN ('united states of america', 'united states') AND \"silver\" < 1" + }, + { + "db_id": "2-15504821-3", + "question": "What is the total number of Total when belgium is the nation with less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select count(`total`) from `2-15504821-3` where `nation` = 'belgium' and `silver` < 1", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-15504821-3\" WHERE nation IN ('belgium', 'belgium nation') AND \"silver\" < 1" + }, + { + "db_id": "2-15504821-3", + "question": "What is the highest Total when brazil is the nation with less than 11 rank?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select max(`total`) from `2-15504821-3` where `nation` = 'brazil' and `rank` < 11", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15504821-3\" WHERE nation IN ('brazil', 'brazil, the country') AND \"rank\" < 11" + }, + { + "db_id": "2-15504821-3", + "question": "What is the highest Total when poland is the nation with less than 11 rank?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select max(`total`) from `2-15504821-3` where `nation` = 'poland' and `rank` < 11", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15504821-3\" WHERE nation IN ('poland', 'poland republic') AND \"rank\" < 11" + }, + { + "db_id": "2-15504821-3", + "question": "What is the total number of Total with more than 16 rank for the nation of japan with more than 0 for silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select count(`total`) from `2-15504821-3` where `rank` > 16 and `nation` = 'japan' and `silver` > 0", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-15504821-3\" WHERE \"rank\" > 16 AND nation IN ('japan country', 'japan') AND \"silver\" > 0" + }, + { + "db_id": "2-15504821-3", + "question": "What is the total number of Total when Germany is the nation with less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select count(`total`) from `2-15504821-3` where `nation` = 'germany' and `silver` < 1", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-15504821-3\" WHERE nation IN ('germany', 'german republic') AND \"silver\" < 1" + }, + { + "db_id": "2-15504821-3", + "question": "What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is Georgia and there is more than 2 for Bronze?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select avg(`total`) from `2-15504821-3` where `gold` = 0 and `rank` < 16 and `nation` = 'georgia' and `bronze` > 2", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15504821-3\" WHERE \"gold\" = 0 AND \"rank\" < 16 AND nation IN ('georgia region', 'georgia') AND \"bronze\" > 2" + }, + { + "db_id": "2-15504821-3", + "question": "What is the highest Total when Georgia is the nation with less than 11 rank?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select max(`total`) from `2-15504821-3` where `nation` = 'georgia' and `rank` < 11", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15504821-3\" WHERE nation IN ('georgia region', 'georgia') AND \"rank\" < 11" + }, + { + "db_id": "2-15504821-3", + "question": "What is the total number of Total with more than 16 rank for the nation of Romania with more than 0 for silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-15504821-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15504821-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [japan country, south korea, poland republic]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 0.0]), `Total` (Example values: [10.0, 5.0, 2.0])]\n", + "ori_query": "select count(`total`) from `2-15504821-3` where `rank` > 16 and `nation` = 'romania' and `silver` > 0", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-15504821-3\" WHERE \"rank\" > 16 AND nation IN ('romania', 'the nation of romania') AND \"silver\" > 0" + }, + { + "db_id": "2-15988551-1", + "question": "What is the total number of golds having a total of 1, bronzes of 0, and from hungary?", + "evidence": "", + "schema_text_wo_content": "Table 2-15988551-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15988551-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, japan, bulgaria]), `Gold` (Example values: [9.0, 2.0, 1.0]), `Silver` (Example values: [5.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 7.0, 2.0]), `Total` (Example values: [14.0, 3.0, 10.0])]\n", + "ori_query": "select count(`gold`) from `2-15988551-1` where `total` = 1 and `bronze` < 1 and `nation` = 'hungary'", + "amb_query": "SELECT COUNT(\"gold\") FROM \"2-15988551-1\" WHERE \"total\" = 1 AND \"bronze\" < 1 AND nation IN ('hungary, central europe', 'hungary')" + }, + { + "db_id": "2-15988551-1", + "question": "What is the total number of golds having a total of 1, bronzes of 0, and from czechoslovakia?", + "evidence": "", + "schema_text_wo_content": "Table 2-15988551-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15988551-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, japan, bulgaria]), `Gold` (Example values: [9.0, 2.0, 1.0]), `Silver` (Example values: [5.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 7.0, 2.0]), `Total` (Example values: [14.0, 3.0, 10.0])]\n", + "ori_query": "select count(`gold`) from `2-15988551-1` where `total` = 1 and `bronze` < 1 and `nation` = 'czechoslovakia'", + "amb_query": "SELECT COUNT(\"gold\") FROM \"2-15988551-1\" WHERE \"total\" = 1 AND \"bronze\" < 1 AND nation IN ('czechoslovakia', 'czechoslovakia, central europe')" + }, + { + "db_id": "2-15988551-1", + "question": "What is the total number of golds having a total of 1, bronzes of 0, and from West Germany?", + "evidence": "", + "schema_text_wo_content": "Table 2-15988551-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15988551-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, japan, bulgaria]), `Gold` (Example values: [9.0, 2.0, 1.0]), `Silver` (Example values: [5.0, 1.0, 2.0]), `Bronze` (Example values: [0.0, 7.0, 2.0]), `Total` (Example values: [14.0, 3.0, 10.0])]\n", + "ori_query": "select count(`gold`) from `2-15988551-1` where `total` = 1 and `bronze` < 1 and `nation` = 'west germany'", + "amb_query": "SELECT COUNT(\"gold\") FROM \"2-15988551-1\" WHERE \"total\" = 1 AND \"bronze\" < 1 AND nation IN ('federal republic of germany (west)', 'west germany')" + }, + { + "db_id": "2-14707564-5", + "question": "What ranking has the nationality of hungary and the goals of 26?", + "evidence": "", + "schema_text_wo_content": "Table 2-14707564-5, columns = [Ranking, Nationality, Name, Years, Goals]\n", + "schema_text_with_content": "Table 2-14707564-5, columns = [`Ranking` (Example values: [1.0, 2.0, 3.0]), `Nationality` (Example values: [the country of spain, hungary nation, spanish nation]), `Name` (Example values: [josep samitier, lászló kubala, césar rodríguez álvarez]), `Years` (Example values: [1919–1932, 1950–1961, 1942–1955]), `Goals` (Example values: [65.0, 49.0, 36.0])]\n", + "ori_query": "select `ranking` from `2-14707564-5` where `nationality` = 'hungary' and `goals` = 26", + "amb_query": "SELECT \"ranking\" FROM \"2-14707564-5\" WHERE nationality IN ('hungary', 'hungary nation') AND \"goals\" = 26" + }, + { + "db_id": "2-14707564-5", + "question": "What ranking has the nationality of spain and the goals of 26?", + "evidence": "", + "schema_text_wo_content": "Table 2-14707564-5, columns = [Ranking, Nationality, Name, Years, Goals]\n", + "schema_text_with_content": "Table 2-14707564-5, columns = [`Ranking` (Example values: [1.0, 2.0, 3.0]), `Nationality` (Example values: [the country of spain, hungary nation, spanish nation]), `Name` (Example values: [josep samitier, lászló kubala, césar rodríguez álvarez]), `Years` (Example values: [1919–1932, 1950–1961, 1942–1955]), `Goals` (Example values: [65.0, 49.0, 36.0])]\n", + "ori_query": "select `ranking` from `2-14707564-5` where `nationality` = 'spain' and `goals` = 26", + "amb_query": "SELECT \"ranking\" FROM \"2-14707564-5\" WHERE nationality IN ('spain', 'spanish nation', 'the country of spain', 'spain, europe') AND \"goals\" = 26" + }, + { + "db_id": "2-1636806-2", + "question": "What is Bronze, when Silver is 2, and when Nation is hungary?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `bronze` from `2-1636806-2` where `silver` = '2' and `nation` = 'hungary'", + "amb_query": "SELECT \"bronze\" FROM \"2-1636806-2\" WHERE \"silver\" = '2' AND nation IN ('hungary country', 'hungary')" + }, + { + "db_id": "2-1636806-2", + "question": "What is Bronze, when Silver is 2, and when Nation is norway?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `bronze` from `2-1636806-2` where `silver` = '2' and `nation` = 'norway'", + "amb_query": "SELECT \"bronze\" FROM \"2-1636806-2\" WHERE \"silver\" = '2' AND nation IN ('norway, europe', 'norway')" + }, + { + "db_id": "2-1636806-2", + "question": "What is Gold, when Silver is 5, and when Nation is germany?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `gold` from `2-1636806-2` where `silver` = '5' and `nation` = 'germany'", + "amb_query": "SELECT \"gold\" FROM \"2-1636806-2\" WHERE \"silver\" = '5' AND nation IN ('germany', 'german republic')" + }, + { + "db_id": "2-1636806-2", + "question": "What is Gold, when Silver is 5, and when Nation is switzerland?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `gold` from `2-1636806-2` where `silver` = '5' and `nation` = 'switzerland'", + "amb_query": "SELECT \"gold\" FROM \"2-1636806-2\" WHERE \"silver\" = '5' AND nation IN ('switzerland', 'switzerland country')" + }, + { + "db_id": "2-1636806-2", + "question": "What is Bronze, when Silver is 2, and when Nation is denmark?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `bronze` from `2-1636806-2` where `silver` = '2' and `nation` = 'denmark'", + "amb_query": "SELECT \"bronze\" FROM \"2-1636806-2\" WHERE \"silver\" = '2' AND nation IN ('denmark nation', 'denmark')" + }, + { + "db_id": "2-1636806-2", + "question": "What is Bronze, when Silver is 2, and when Nation is Italy?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `bronze` from `2-1636806-2` where `silver` = '2' and `nation` = 'italy'", + "amb_query": "SELECT \"bronze\" FROM \"2-1636806-2\" WHERE \"silver\" = '2' AND nation IN ('italy', 'italian republic')" + }, + { + "db_id": "2-1636806-2", + "question": "What is Gold, when Silver is 5, and when Nation is Belgium?", + "evidence": "", + "schema_text_wo_content": "Table 2-1636806-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1636806-2, columns = [`Nation` (Example values: [german republic, great britain, united states]), `Gold` (Example values: [30, 12, 11]), `Silver` (Example values: [18, 14, 12]), `Bronze` (Example values: [24, 8, 11]), `Total` (Example values: [72.0, 34.0, 35.0])]\n", + "ori_query": "select `gold` from `2-1636806-2` where `silver` = '5' and `nation` = 'belgium'", + "amb_query": "SELECT \"gold\" FROM \"2-1636806-2\" WHERE \"silver\" = '5' AND nation IN ('belgium', 'belgium, europe')" + }, + { + "db_id": "2-1864289-5", + "question": "What is the total number for a total when the nation is bulgaria and silver is larger than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select count(`total`) from `2-1864289-5` where `nation` = 'bulgaria' and `silver` > 0", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-1864289-5\" WHERE nation IN ('bulgaria', 'bulgaria, eu') AND \"silver\" > 0" + }, + { + "db_id": "2-1864289-5", + "question": "What is the most bronze can be when silver is larger than 2, and the nation is spain, and gold is more than 8?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select max(`bronze`) from `2-1864289-5` where `silver` > 2 and `nation` = 'spain' and `gold` > 8", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-1864289-5\" WHERE \"silver\" > 2 AND nation IN ('spain', 'spain, europe') AND \"gold\" > 8" + }, + { + "db_id": "2-1864289-5", + "question": "What is the most bronze can be when silver is larger than 2, and the nation is czech republic, and gold is more than 8?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select max(`bronze`) from `2-1864289-5` where `silver` > 2 and `nation` = 'czech republic' and `gold` > 8", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-1864289-5\" WHERE \"silver\" > 2 AND nation IN ('czechia', 'czech republic') AND \"gold\" > 8" + }, + { + "db_id": "2-1864289-5", + "question": "What is the most bronze can be when silver is larger than 2, and the nation is austria, and gold is more than 8?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select max(`bronze`) from `2-1864289-5` where `silver` > 2 and `nation` = 'austria' and `gold` > 8", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-1864289-5\" WHERE \"silver\" > 2 AND nation IN ('austria, central europe', 'austria') AND \"gold\" > 8" + }, + { + "db_id": "2-1864289-5", + "question": "What is the total number for a total when the nation is ukraine and silver is larger than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select count(`total`) from `2-1864289-5` where `nation` = 'ukraine' and `silver` > 0", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-1864289-5\" WHERE nation IN ('ukraine', 'ukraine country') AND \"silver\" > 0" + }, + { + "db_id": "2-1864289-5", + "question": "What is the most bronze can be when silver is larger than 2, and the nation is germany, and gold is more than 8?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select max(`bronze`) from `2-1864289-5` where `silver` > 2 and `nation` = 'germany' and `gold` > 8", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-1864289-5\" WHERE \"silver\" > 2 AND nation IN ('germany', 'deutschland') AND \"gold\" > 8" + }, + { + "db_id": "2-1864289-5", + "question": "What is the total number for a total when the nation is netherlands and silver is larger than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1864289-5, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1864289-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, deutschland, russia]), `Gold` (Example values: [9.0, 8.0, 6.0]), `Silver` (Example values: [4.0, 7.0, 9.0]), `Bronze` (Example values: [3.0, 8.0, 7.0]), `Total` (Example values: [16.0, 23.0, 22.0])]\n", + "ori_query": "select count(`total`) from `2-1864289-5` where `nation` = 'netherlands' and `silver` > 0", + "amb_query": "SELECT COUNT(\"total\") FROM \"2-1864289-5\" WHERE nation IN ('netherlands', 'dutch republic') AND \"silver\" > 0" + }, + { + "db_id": "2-15503252-3", + "question": "What was the lowest heat for bulgaria with a rank smaller than 9 for Mike Fenner and a time smaller than 13.52?", + "evidence": "", + "schema_text_wo_content": "Table 2-15503252-3, columns = [Rank, Heat, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-15503252-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [3.0, 2.0, 4.0]), `Name` (Example values: [colin jackson, falk balzer, tony jarrett]), `Nationality` (Example values: [great britain, german republic, germany]), `Time` (Example values: [13.31, 13.47, 13.51])]\n", + "ori_query": "select min(`heat`) from `2-15503252-3` where `nationality` = 'bulgaria' and `rank` < 9 and `name` = 'mike fenner' and `time` < 13.52", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-15503252-3\" WHERE nationality IN ('bulgaria', 'bulgaria, eastern europe') AND \"rank\" < 9 AND \"name\" = 'mike fenner' AND \"time\" < 13.52" + }, + { + "db_id": "2-15503252-3", + "question": "What was the lowest heat for greece with a rank smaller than 9 for Mike Fenner and a time smaller than 13.52?", + "evidence": "", + "schema_text_wo_content": "Table 2-15503252-3, columns = [Rank, Heat, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-15503252-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [3.0, 2.0, 4.0]), `Name` (Example values: [colin jackson, falk balzer, tony jarrett]), `Nationality` (Example values: [great britain, german republic, germany]), `Time` (Example values: [13.31, 13.47, 13.51])]\n", + "ori_query": "select min(`heat`) from `2-15503252-3` where `nationality` = 'greece' and `rank` < 9 and `name` = 'mike fenner' and `time` < 13.52", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-15503252-3\" WHERE nationality IN ('greece country', 'greece') AND \"rank\" < 9 AND \"name\" = 'mike fenner' AND \"time\" < 13.52" + }, + { + "db_id": "2-15503252-3", + "question": "What was the lowest heat for Germany with a rank smaller than 9 for Mike Fenner and a time smaller than 13.52?", + "evidence": "", + "schema_text_wo_content": "Table 2-15503252-3, columns = [Rank, Heat, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-15503252-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [3.0, 2.0, 4.0]), `Name` (Example values: [colin jackson, falk balzer, tony jarrett]), `Nationality` (Example values: [great britain, german republic, germany]), `Time` (Example values: [13.31, 13.47, 13.51])]\n", + "ori_query": "select min(`heat`) from `2-15503252-3` where `nationality` = 'germany' and `rank` < 9 and `name` = 'mike fenner' and `time` < 13.52", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-15503252-3\" WHERE nationality IN ('germany', 'germany country', 'german republic') AND \"rank\" < 9 AND \"name\" = 'mike fenner' AND \"time\" < 13.52" + }, + { + "db_id": "2-18802185-4", + "question": "What average silver has bulgaria as the nation, with a total less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18802185-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18802185-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungary, germany, poland]), `Gold` (Example values: [9.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 5.0, 1.0]), `Bronze` (Example values: [3.0, 5.0, 4.0]), `Total` (Example values: [15.0, 13.0, 7.0])]\n", + "ori_query": "select avg(`silver`) from `2-18802185-4` where `nation` = 'bulgaria' and `total` < 1", + "amb_query": "SELECT AVG(\"silver\") FROM \"2-18802185-4\" WHERE nation IN ('bulgaria', 'bulgaria, eu') AND \"total\" < 1" + }, + { + "db_id": "2-18802185-4", + "question": "What average silver has china as the nation, with a total less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18802185-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18802185-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungary, germany, poland]), `Gold` (Example values: [9.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 5.0, 1.0]), `Bronze` (Example values: [3.0, 5.0, 4.0]), `Total` (Example values: [15.0, 13.0, 7.0])]\n", + "ori_query": "select avg(`silver`) from `2-18802185-4` where `nation` = 'china' and `total` < 1", + "amb_query": "SELECT AVG(\"silver\") FROM \"2-18802185-4\" WHERE nation IN ('china', 'china, asia') AND \"total\" < 1" + }, + { + "db_id": "2-18802185-4", + "question": "What average silver has belarus as the nation, with a total less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18802185-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18802185-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [hungary, germany, poland]), `Gold` (Example values: [9.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 5.0, 1.0]), `Bronze` (Example values: [3.0, 5.0, 4.0]), `Total` (Example values: [15.0, 13.0, 7.0])]\n", + "ori_query": "select avg(`silver`) from `2-18802185-4` where `nation` = 'belarus' and `total` < 1", + "amb_query": "SELECT AVG(\"silver\") FROM \"2-18802185-4\" WHERE nation IN ('belarus', 'belarus country') AND \"total\" < 1" + }, + { + "db_id": "2-15322952-2", + "question": "What Catalog was released in spain?", + "evidence": "", + "schema_text_wo_content": "Table 2-15322952-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15322952-2, columns = [`Region` (Example values: [spain country, germany country, united kingdom]), `Date` (Example values: [2003.0, 2002.0, 2004.0]), `Label` (Example values: [electropolis, zomba records, nebula classics]), `Format` (Example values: [vinyl , 12\", 2 x vinyl, 12\"]), `Catalog` (Example values: [vlmx 1341-3, rtd 103.4126.0, nebbc002])]\n", + "ori_query": "select `catalog` from `2-15322952-2` where `region` = 'spain'", + "amb_query": "SELECT \"catalog\" FROM \"2-15322952-2\" WHERE region IN ('spain', 'spain country')" + }, + { + "db_id": "2-15322952-2", + "question": "What Catalog was released in Germany?", + "evidence": "", + "schema_text_wo_content": "Table 2-15322952-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15322952-2, columns = [`Region` (Example values: [spain country, germany country, united kingdom]), `Date` (Example values: [2003.0, 2002.0, 2004.0]), `Label` (Example values: [electropolis, zomba records, nebula classics]), `Format` (Example values: [vinyl , 12\", 2 x vinyl, 12\"]), `Catalog` (Example values: [vlmx 1341-3, rtd 103.4126.0, nebbc002])]\n", + "ori_query": "select `catalog` from `2-15322952-2` where `region` = 'germany'", + "amb_query": "SELECT \"catalog\" FROM \"2-15322952-2\" WHERE region IN ('germany', 'germany country')" + }, + { + "db_id": "2-10970776-3", + "question": "What is the number of bronze that new zealand, which has less than 7 total medals, has?", + "evidence": "", + "schema_text_wo_content": "Table 2-10970776-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10970776-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [england, malaysia, india]), `Gold` (Example values: [33.0, 24.0, 4.0]), `Silver` (Example values: [30.0, 20.0, 3.0]), `Bronze` (Example values: [34.0, 12.0, 8.0]), `Total` (Example values: [97.0, 56.0, 15.0])]\n", + "ori_query": "select sum(`bronze`) from `2-10970776-3` where `nation` = 'new zealand' and `total` < 7", + "amb_query": "SELECT SUM(\"bronze\") FROM \"2-10970776-3\" WHERE nation IN ('new zealand', 'nz') AND \"total\" < 7" + }, + { + "db_id": "2-10970776-3", + "question": "What is the number of bronze that Scotland, which has less than 7 total medals, has?", + "evidence": "", + "schema_text_wo_content": "Table 2-10970776-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10970776-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [england, malaysia, india]), `Gold` (Example values: [33.0, 24.0, 4.0]), `Silver` (Example values: [30.0, 20.0, 3.0]), `Bronze` (Example values: [34.0, 12.0, 8.0]), `Total` (Example values: [97.0, 56.0, 15.0])]\n", + "ori_query": "select sum(`bronze`) from `2-10970776-3` where `nation` = 'scotland' and `total` < 7", + "amb_query": "SELECT SUM(\"bronze\") FROM \"2-10970776-3\" WHERE nation IN ('scotland', 'scottish') AND \"total\" < 7" + }, + { + "db_id": "2-12392600-3", + "question": "What is the largest silver with Gold larger than 4, a Nation of czech republic, and a Total larger than 26?", + "evidence": "", + "schema_text_wo_content": "Table 2-12392600-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-12392600-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, united states of america, canada]), `Gold` (Example values: [12.0, 8.0, 4.0]), `Silver` (Example values: [7.0, 12.0, 1.0]), `Bronze` (Example values: [11.0, 6.0, 5.0]), `Total` (Example values: [30.0, 26.0, 10.0])]\n", + "ori_query": "select max(`silver`) from `2-12392600-3` where `gold` > 4 and `nation` = 'czech republic' and `total` > 26", + "amb_query": "SELECT MAX(\"silver\") FROM \"2-12392600-3\" WHERE \"gold\" > 4 AND nation IN ('czech republic of europe', 'czech republic') AND \"total\" > 26" + }, + { + "db_id": "2-12392600-3", + "question": "How many silvers have a Nation of france, and a Rank larger than 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-12392600-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-12392600-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, united states of america, canada]), `Gold` (Example values: [12.0, 8.0, 4.0]), `Silver` (Example values: [7.0, 12.0, 1.0]), `Bronze` (Example values: [11.0, 6.0, 5.0]), `Total` (Example values: [30.0, 26.0, 10.0])]\n", + "ori_query": "select count(`silver`) from `2-12392600-3` where `nation` = 'france' and `rank` > 10", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-12392600-3\" WHERE nation IN ('france', 'france country') AND \"rank\" > 10" + }, + { + "db_id": "2-12392600-3", + "question": "What is the largest silver with Gold larger than 4, a Nation of china, and a Total larger than 26?", + "evidence": "", + "schema_text_wo_content": "Table 2-12392600-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-12392600-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, united states of america, canada]), `Gold` (Example values: [12.0, 8.0, 4.0]), `Silver` (Example values: [7.0, 12.0, 1.0]), `Bronze` (Example values: [11.0, 6.0, 5.0]), `Total` (Example values: [30.0, 26.0, 10.0])]\n", + "ori_query": "select max(`silver`) from `2-12392600-3` where `gold` > 4 and `nation` = 'china' and `total` > 26", + "amb_query": "SELECT MAX(\"silver\") FROM \"2-12392600-3\" WHERE \"gold\" > 4 AND nation IN ('china nation', 'china') AND \"total\" > 26" + }, + { + "db_id": "2-12392600-3", + "question": "How many silvers have a Nation of germany, and a Rank larger than 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-12392600-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-12392600-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, united states of america, canada]), `Gold` (Example values: [12.0, 8.0, 4.0]), `Silver` (Example values: [7.0, 12.0, 1.0]), `Bronze` (Example values: [11.0, 6.0, 5.0]), `Total` (Example values: [30.0, 26.0, 10.0])]\n", + "ori_query": "select count(`silver`) from `2-12392600-3` where `nation` = 'germany' and `rank` > 10", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-12392600-3\" WHERE nation IN ('germany', 'germany country') AND \"rank\" > 10" + }, + { + "db_id": "2-12392600-3", + "question": "What is the largest silver with Gold larger than 4, a Nation of united states, and a Total larger than 26?", + "evidence": "", + "schema_text_wo_content": "Table 2-12392600-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-12392600-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, united states of america, canada]), `Gold` (Example values: [12.0, 8.0, 4.0]), `Silver` (Example values: [7.0, 12.0, 1.0]), `Bronze` (Example values: [11.0, 6.0, 5.0]), `Total` (Example values: [30.0, 26.0, 10.0])]\n", + "ori_query": "select max(`silver`) from `2-12392600-3` where `gold` > 4 and `nation` = 'united states' and `total` > 26", + "amb_query": "SELECT MAX(\"silver\") FROM \"2-12392600-3\" WHERE \"gold\" > 4 AND nation IN ('united states of america', 'united states') AND \"total\" > 26" + }, + { + "db_id": "2-12392600-3", + "question": "How many silvers have a Nation of hungary, and a Rank larger than 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-12392600-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-12392600-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, united states of america, canada]), `Gold` (Example values: [12.0, 8.0, 4.0]), `Silver` (Example values: [7.0, 12.0, 1.0]), `Bronze` (Example values: [11.0, 6.0, 5.0]), `Total` (Example values: [30.0, 26.0, 10.0])]\n", + "ori_query": "select count(`silver`) from `2-12392600-3` where `nation` = 'hungary' and `rank` > 10", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-12392600-3\" WHERE nation IN ('hungary country', 'hungary') AND \"rank\" > 10" + }, + { + "db_id": "2-18579281-5", + "question": "Which Heat has a Nationality of czech republic, and a Result larger than 55.97?", + "evidence": "", + "schema_text_wo_content": "Table 2-18579281-5, columns = [Rank, Heat, Name, Nationality, Result]\n", + "schema_text_with_content": "Table 2-18579281-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [1.0, 2.0]), `Name` (Example values: [sheena tosta, melaine walker, tasha danvers]), `Nationality` (Example values: [united states, jamaica, great britain]), `Result` (Example values: [54.07, 54.2, 54.31])]\n", + "ori_query": "select min(`heat`) from `2-18579281-5` where `nationality` = 'czech republic' and `result` > 55.97", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-18579281-5\" WHERE nationality IN ('czech republic', 'czech republic nation') AND \"result\" > 55.97" + }, + { + "db_id": "2-18579281-5", + "question": "Which Heat has a Nationality of burkina faso, and a Result larger than 55.97?", + "evidence": "", + "schema_text_wo_content": "Table 2-18579281-5, columns = [Rank, Heat, Name, Nationality, Result]\n", + "schema_text_with_content": "Table 2-18579281-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [1.0, 2.0]), `Name` (Example values: [sheena tosta, melaine walker, tasha danvers]), `Nationality` (Example values: [united states, jamaica, great britain]), `Result` (Example values: [54.07, 54.2, 54.31])]\n", + "ori_query": "select min(`heat`) from `2-18579281-5` where `nationality` = 'burkina faso' and `result` > 55.97", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-18579281-5\" WHERE nationality IN ('burkina faso state', 'burkina faso') AND \"result\" > 55.97" + }, + { + "db_id": "2-18579281-5", + "question": "Which Heat has a Nationality of bulgaria, and a Result larger than 55.97?", + "evidence": "", + "schema_text_wo_content": "Table 2-18579281-5, columns = [Rank, Heat, Name, Nationality, Result]\n", + "schema_text_with_content": "Table 2-18579281-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [1.0, 2.0]), `Name` (Example values: [sheena tosta, melaine walker, tasha danvers]), `Nationality` (Example values: [united states, jamaica, great britain]), `Result` (Example values: [54.07, 54.2, 54.31])]\n", + "ori_query": "select min(`heat`) from `2-18579281-5` where `nationality` = 'bulgaria' and `result` > 55.97", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-18579281-5\" WHERE nationality IN ('bulgaria', 'bulgarian') AND \"result\" > 55.97" + }, + { + "db_id": "2-18624773-3", + "question": "What is the time in a heat smaller than 5, in Lane 5, for austria?", + "evidence": "", + "schema_text_wo_content": "Table 2-18624773-3, columns = [Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-18624773-3, columns = [`Heat` (Example values: [7.0, 8.0, 9.0]), `Lane` (Example values: [4.0, 5.0, 7.0]), `Name` (Example values: [alexander dale oen, kosuke kitajima, hugues duboscq]), `Nationality` (Example values: [kingdom of norway, japan, france]), `Time` (Example values: [59.41, 59.52, 59.67])]\n", + "ori_query": "select `time` from `2-18624773-3` where `heat` < 5 and `lane` = 5 and `nationality` = 'austria'", + "amb_query": "SELECT \"time\" FROM \"2-18624773-3\" WHERE \"heat\" < 5 AND \"lane\" = 5 AND nationality IN ('austria, central europe', 'austria')" + }, + { + "db_id": "2-18624773-3", + "question": "What is the time in a heat smaller than 5, in Lane 5, for norway?", + "evidence": "", + "schema_text_wo_content": "Table 2-18624773-3, columns = [Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-18624773-3, columns = [`Heat` (Example values: [7.0, 8.0, 9.0]), `Lane` (Example values: [4.0, 5.0, 7.0]), `Name` (Example values: [alexander dale oen, kosuke kitajima, hugues duboscq]), `Nationality` (Example values: [kingdom of norway, japan, france]), `Time` (Example values: [59.41, 59.52, 59.67])]\n", + "ori_query": "select `time` from `2-18624773-3` where `heat` < 5 and `lane` = 5 and `nationality` = 'norway'", + "amb_query": "SELECT \"time\" FROM \"2-18624773-3\" WHERE \"heat\" < 5 AND \"lane\" = 5 AND nationality IN ('norway', 'kingdom of norway')" + }, + { + "db_id": "2-18624773-3", + "question": "What is the time in a heat smaller than 5, in Lane 5, for turkey?", + "evidence": "", + "schema_text_wo_content": "Table 2-18624773-3, columns = [Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-18624773-3, columns = [`Heat` (Example values: [7.0, 8.0, 9.0]), `Lane` (Example values: [4.0, 5.0, 7.0]), `Name` (Example values: [alexander dale oen, kosuke kitajima, hugues duboscq]), `Nationality` (Example values: [kingdom of norway, japan, france]), `Time` (Example values: [59.41, 59.52, 59.67])]\n", + "ori_query": "select `time` from `2-18624773-3` where `heat` < 5 and `lane` = 5 and `nationality` = 'turkey'", + "amb_query": "SELECT \"time\" FROM \"2-18624773-3\" WHERE \"heat\" < 5 AND \"lane\" = 5 AND nationality IN ('turkey', 'turkey nation')" + }, + { + "db_id": "2-18624773-3", + "question": "What is the time in a heat smaller than 5, in Lane 5, for Vietnam?", + "evidence": "", + "schema_text_wo_content": "Table 2-18624773-3, columns = [Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-18624773-3, columns = [`Heat` (Example values: [7.0, 8.0, 9.0]), `Lane` (Example values: [4.0, 5.0, 7.0]), `Name` (Example values: [alexander dale oen, kosuke kitajima, hugues duboscq]), `Nationality` (Example values: [kingdom of norway, japan, france]), `Time` (Example values: [59.41, 59.52, 59.67])]\n", + "ori_query": "select `time` from `2-18624773-3` where `heat` < 5 and `lane` = 5 and `nationality` = 'vietnam'", + "amb_query": "SELECT \"time\" FROM \"2-18624773-3\" WHERE \"heat\" < 5 AND \"lane\" = 5 AND nationality IN ('vietnam', 'viet nam')" + }, + { + "db_id": "2-14687922-2", + "question": "What is the highest number of bronze for the ukraine with more than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-14687922-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14687922-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, australia, new zealand]), `Gold` (Example values: [5.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 2.0, 0.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [6.0, 4.0, 3.0])]\n", + "ori_query": "select max(`bronze`) from `2-14687922-2` where `nation` = 'ukraine' and `silver` > 1", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-14687922-2\" WHERE nation IN ('ukraine nation', 'ukraine') AND \"silver\" > 1" + }, + { + "db_id": "2-14687922-2", + "question": "What is the highest number of bronze for the United States with more than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-14687922-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14687922-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [great britain, australia, new zealand]), `Gold` (Example values: [5.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 2.0, 0.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [6.0, 4.0, 3.0])]\n", + "ori_query": "select max(`bronze`) from `2-14687922-2` where `nation` = 'united states' and `silver` > 1", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-14687922-2\" WHERE nation IN ('america', 'united states') AND \"silver\" > 1" + }, + { + "db_id": "2-17544076-1", + "question": "What is the highest total medals of ukraine, which has more than 1 silver and more than 6 bronze medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-17544076-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17544076-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russian state, ukraine country, azerbaijan country]), `Gold` (Example values: [7.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 1.0, 0.0]), `Bronze` (Example values: [6.0, 4.0, 3.0]), `Total` (Example values: [16.0, 8.0, 7.0])]\n", + "ori_query": "select max(`total`) from `2-17544076-1` where `silver` > 1 and `nation` = 'ukraine' and `bronze` > 6", + "amb_query": "SELECT MAX(\"total\") FROM \"2-17544076-1\" WHERE \"silver\" > 1 AND nation IN ('ukraine', 'ukraine country') AND \"bronze\" > 6" + }, + { + "db_id": "2-17544076-1", + "question": "What is the total number of gold medals of turkey, which has less than 1 silver medal?", + "evidence": "", + "schema_text_wo_content": "Table 2-17544076-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17544076-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russian state, ukraine country, azerbaijan country]), `Gold` (Example values: [7.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 1.0, 0.0]), `Bronze` (Example values: [6.0, 4.0, 3.0]), `Total` (Example values: [16.0, 8.0, 7.0])]\n", + "ori_query": "select count(`gold`) from `2-17544076-1` where `silver` < 1 and `nation` = 'turkey'", + "amb_query": "SELECT COUNT(\"gold\") FROM \"2-17544076-1\" WHERE \"silver\" < 1 AND nation IN ('turkey', 'turkey nation')" + }, + { + "db_id": "2-17544076-1", + "question": "What is the highest total medals of azerbaijan, which has more than 1 silver and more than 6 bronze medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-17544076-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17544076-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russian state, ukraine country, azerbaijan country]), `Gold` (Example values: [7.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 1.0, 0.0]), `Bronze` (Example values: [6.0, 4.0, 3.0]), `Total` (Example values: [16.0, 8.0, 7.0])]\n", + "ori_query": "select max(`total`) from `2-17544076-1` where `silver` > 1 and `nation` = 'azerbaijan' and `bronze` > 6", + "amb_query": "SELECT MAX(\"total\") FROM \"2-17544076-1\" WHERE \"silver\" > 1 AND nation IN ('azerbaijan', 'azerbaijan country') AND \"bronze\" > 6" + }, + { + "db_id": "2-17544076-1", + "question": "What is the total number of gold medals of denmark, which has less than 1 silver medal?", + "evidence": "", + "schema_text_wo_content": "Table 2-17544076-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17544076-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russian state, ukraine country, azerbaijan country]), `Gold` (Example values: [7.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 1.0, 0.0]), `Bronze` (Example values: [6.0, 4.0, 3.0]), `Total` (Example values: [16.0, 8.0, 7.0])]\n", + "ori_query": "select count(`gold`) from `2-17544076-1` where `silver` < 1 and `nation` = 'denmark'", + "amb_query": "SELECT COUNT(\"gold\") FROM \"2-17544076-1\" WHERE \"silver\" < 1 AND nation IN ('denmark nation', 'denmark')" + }, + { + "db_id": "2-17544076-1", + "question": "What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-17544076-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17544076-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russian state, ukraine country, azerbaijan country]), `Gold` (Example values: [7.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 1.0, 0.0]), `Bronze` (Example values: [6.0, 4.0, 3.0]), `Total` (Example values: [16.0, 8.0, 7.0])]\n", + "ori_query": "select max(`total`) from `2-17544076-1` where `silver` > 1 and `nation` = 'russia' and `bronze` > 6", + "amb_query": "SELECT MAX(\"total\") FROM \"2-17544076-1\" WHERE \"silver\" > 1 AND nation IN ('russia', 'russian state') AND \"bronze\" > 6" + }, + { + "db_id": "2-17544076-1", + "question": "What is the total number of gold medals of slovakia, which has less than 1 silver medal?", + "evidence": "", + "schema_text_wo_content": "Table 2-17544076-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17544076-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russian state, ukraine country, azerbaijan country]), `Gold` (Example values: [7.0, 3.0, 2.0]), `Silver` (Example values: [3.0, 1.0, 0.0]), `Bronze` (Example values: [6.0, 4.0, 3.0]), `Total` (Example values: [16.0, 8.0, 7.0])]\n", + "ori_query": "select count(`gold`) from `2-17544076-1` where `silver` < 1 and `nation` = 'slovakia'", + "amb_query": "SELECT COUNT(\"gold\") FROM \"2-17544076-1\" WHERE \"silver\" < 1 AND nation IN ('slovak republic', 'slovakia')" + }, + { + "db_id": "1-1359212-2", + "question": "how many locations has ukraine as the winner?", + "evidence": "", + "schema_text_wo_content": "Table 1-1359212-2, columns = [Year, Winner, Language, Artist, Song, Points, Margin, Second place, Date, Venue, Location, Participants]\n", + "schema_text_with_content": "Table 1-1359212-2, columns = [`Year` (Example values: [2003.0, 2004.0, 2005.0]), `Winner` (Example values: [croatia, spain, europe, belarus]), `Language` (Example values: [croatian, spanish, russian]), `Artist` (Example values: [dino jelusić, maría isabel, ksenia sitnik]), `Song` (Example values: [\"ti si moja prva ljubav\", \" antes muerta que sencilla \", \"my vmeste\" (мы вместе)]), `Points` (Example values: [134.0, 171.0, 149.0]), `Margin` (Example values: [9.0, 31.0, 3.0]), `Second place` (Example values: [spain (espana), england, scotland, wales, and northern ireland, republic of belarus]), `Date` (Example values: [15 november 2003, 20 november 2004, 26 november 2005]), `Venue` (Example values: [forum copenhagen, håkons hall, ethias arena]), `Location` (Example values: [copenhagen, lillehammer, hasselt]), `Participants` (Example values: [16.0, 18.0, 15.0])]\n", + "ori_query": "select count(`location`) from `1-1359212-2` where `winner` = 'ukraine'", + "amb_query": "SELECT COUNT(\"location\") FROM \"1-1359212-2\" WHERE winner IN ('ukraine', 'the state of ukraine')" + }, + { + "db_id": "1-1359212-2", + "question": "how many locations has spain as the winner?", + "evidence": "", + "schema_text_wo_content": "Table 1-1359212-2, columns = [Year, Winner, Language, Artist, Song, Points, Margin, Second place, Date, Venue, Location, Participants]\n", + "schema_text_with_content": "Table 1-1359212-2, columns = [`Year` (Example values: [2003.0, 2004.0, 2005.0]), `Winner` (Example values: [croatia, spain, europe, belarus]), `Language` (Example values: [croatian, spanish, russian]), `Artist` (Example values: [dino jelusić, maría isabel, ksenia sitnik]), `Song` (Example values: [\"ti si moja prva ljubav\", \" antes muerta que sencilla \", \"my vmeste\" (мы вместе)]), `Points` (Example values: [134.0, 171.0, 149.0]), `Margin` (Example values: [9.0, 31.0, 3.0]), `Second place` (Example values: [spain (espana), england, scotland, wales, and northern ireland, republic of belarus]), `Date` (Example values: [15 november 2003, 20 november 2004, 26 november 2005]), `Venue` (Example values: [forum copenhagen, håkons hall, ethias arena]), `Location` (Example values: [copenhagen, lillehammer, hasselt]), `Participants` (Example values: [16.0, 18.0, 15.0])]\n", + "ori_query": "select count(`location`) from `1-1359212-2` where `winner` = 'spain'", + "amb_query": "SELECT COUNT(\"location\") FROM \"1-1359212-2\" WHERE winner IN ('spain', 'spain, europe')" + }, + { + "db_id": "1-1359212-2", + "question": "where is hte second place winner from russia?", + "evidence": "", + "schema_text_wo_content": "Table 1-1359212-2, columns = [Year, Winner, Language, Artist, Song, Points, Margin, Second place, Date, Venue, Location, Participants]\n", + "schema_text_with_content": "Table 1-1359212-2, columns = [`Year` (Example values: [2003.0, 2004.0, 2005.0]), `Winner` (Example values: [croatia, spain, europe, belarus]), `Language` (Example values: [croatian, spanish, russian]), `Artist` (Example values: [dino jelusić, maría isabel, ksenia sitnik]), `Song` (Example values: [\"ti si moja prva ljubav\", \" antes muerta que sencilla \", \"my vmeste\" (мы вместе)]), `Points` (Example values: [134.0, 171.0, 149.0]), `Margin` (Example values: [9.0, 31.0, 3.0]), `Second place` (Example values: [spain (espana), england, scotland, wales, and northern ireland, republic of belarus]), `Date` (Example values: [15 november 2003, 20 november 2004, 26 november 2005]), `Venue` (Example values: [forum copenhagen, håkons hall, ethias arena]), `Location` (Example values: [copenhagen, lillehammer, hasselt]), `Participants` (Example values: [16.0, 18.0, 15.0])]\n", + "ori_query": "select `winner` from `1-1359212-2` where `second place` = 'russia'", + "amb_query": "SELECT \"winner\" FROM \"1-1359212-2\" WHERE second place IN ('russia', 'russia, the largest country in the world')" + }, + { + "db_id": "1-1359212-2", + "question": "what amount has belarus as second place and the language is russian?", + "evidence": "", + "schema_text_wo_content": "Table 1-1359212-2, columns = [Year, Winner, Language, Artist, Song, Points, Margin, Second place, Date, Venue, Location, Participants]\n", + "schema_text_with_content": "Table 1-1359212-2, columns = [`Year` (Example values: [2003.0, 2004.0, 2005.0]), `Winner` (Example values: [croatia, spain, europe, belarus]), `Language` (Example values: [croatian, spanish, russian]), `Artist` (Example values: [dino jelusić, maría isabel, ksenia sitnik]), `Song` (Example values: [\"ti si moja prva ljubav\", \" antes muerta que sencilla \", \"my vmeste\" (мы вместе)]), `Points` (Example values: [134.0, 171.0, 149.0]), `Margin` (Example values: [9.0, 31.0, 3.0]), `Second place` (Example values: [spain (espana), england, scotland, wales, and northern ireland, republic of belarus]), `Date` (Example values: [15 november 2003, 20 november 2004, 26 november 2005]), `Venue` (Example values: [forum copenhagen, håkons hall, ethias arena]), `Location` (Example values: [copenhagen, lillehammer, hasselt]), `Participants` (Example values: [16.0, 18.0, 15.0])]\n", + "ori_query": "select count(`margin`) from `1-1359212-2` where `second place` = 'belarus' and `language` = 'russian'", + "amb_query": "SELECT COUNT(\"margin\") FROM \"1-1359212-2\" WHERE second place IN ('republic of belarus', 'belarus') AND \"language\" = 'russian'" + }, + { + "db_id": "1-1359212-2", + "question": "where is hte second place winner from united kingdom?", + "evidence": "", + "schema_text_wo_content": "Table 1-1359212-2, columns = [Year, Winner, Language, Artist, Song, Points, Margin, Second place, Date, Venue, Location, Participants]\n", + "schema_text_with_content": "Table 1-1359212-2, columns = [`Year` (Example values: [2003.0, 2004.0, 2005.0]), `Winner` (Example values: [croatia, spain, europe, belarus]), `Language` (Example values: [croatian, spanish, russian]), `Artist` (Example values: [dino jelusić, maría isabel, ksenia sitnik]), `Song` (Example values: [\"ti si moja prva ljubav\", \" antes muerta que sencilla \", \"my vmeste\" (мы вместе)]), `Points` (Example values: [134.0, 171.0, 149.0]), `Margin` (Example values: [9.0, 31.0, 3.0]), `Second place` (Example values: [spain (espana), england, scotland, wales, and northern ireland, republic of belarus]), `Date` (Example values: [15 november 2003, 20 november 2004, 26 november 2005]), `Venue` (Example values: [forum copenhagen, håkons hall, ethias arena]), `Location` (Example values: [copenhagen, lillehammer, hasselt]), `Participants` (Example values: [16.0, 18.0, 15.0])]\n", + "ori_query": "select `winner` from `1-1359212-2` where `second place` = 'united kingdom'", + "amb_query": "SELECT \"winner\" FROM \"1-1359212-2\" WHERE second place IN ('england, scotland, wales, and northern ireland', 'united kingdom')" + }, + { + "db_id": "1-1359212-2", + "question": "what amount has spain as second place and the language is russian?", + "evidence": "", + "schema_text_wo_content": "Table 1-1359212-2, columns = [Year, Winner, Language, Artist, Song, Points, Margin, Second place, Date, Venue, Location, Participants]\n", + "schema_text_with_content": "Table 1-1359212-2, columns = [`Year` (Example values: [2003.0, 2004.0, 2005.0]), `Winner` (Example values: [croatia, spain, europe, belarus]), `Language` (Example values: [croatian, spanish, russian]), `Artist` (Example values: [dino jelusić, maría isabel, ksenia sitnik]), `Song` (Example values: [\"ti si moja prva ljubav\", \" antes muerta que sencilla \", \"my vmeste\" (мы вместе)]), `Points` (Example values: [134.0, 171.0, 149.0]), `Margin` (Example values: [9.0, 31.0, 3.0]), `Second place` (Example values: [spain (espana), england, scotland, wales, and northern ireland, republic of belarus]), `Date` (Example values: [15 november 2003, 20 november 2004, 26 november 2005]), `Venue` (Example values: [forum copenhagen, håkons hall, ethias arena]), `Location` (Example values: [copenhagen, lillehammer, hasselt]), `Participants` (Example values: [16.0, 18.0, 15.0])]\n", + "ori_query": "select count(`margin`) from `1-1359212-2` where `second place` = 'spain' and `language` = 'russian'", + "amb_query": "SELECT COUNT(\"margin\") FROM \"1-1359212-2\" WHERE second place IN ('spain', 'spain (espana)') AND \"language\" = 'russian'" + }, + { + "db_id": "2-12592245-1", + "question": "What is the average launch date of the vmv-1 vessel in norway?", + "evidence": "", + "schema_text_wo_content": "Table 2-12592245-1, columns = [Ship, Launched, Location, Speed, Fate]\n", + "schema_text_with_content": "Table 2-12592245-1, columns = [`Ship` (Example values: [vmv-1, vmv-2, vmv-3]), `Launched` (Example values: [1930.0, 1916.0, 1931.0]), `Location` (Example values: [germany, german republic, helsinki , finland]), `Speed` (Example values: [25 knots, 23 knots, 16 knots]), `Fate` (Example values: [decommissioned 1950, lost (burned) 1931, retired 1939])]\n", + "ori_query": "select avg(`launched`) from `2-12592245-1` where `location` = 'norway' and `ship` = 'vmv-1'", + "amb_query": "SELECT AVG(\"launched\") FROM \"2-12592245-1\" WHERE location IN ('norway country', 'norway') AND \"ship\" = 'vmv-1'" + }, + { + "db_id": "2-12592245-1", + "question": "What is the average launch date of the vmv-1 vessel in Germany?", + "evidence": "", + "schema_text_wo_content": "Table 2-12592245-1, columns = [Ship, Launched, Location, Speed, Fate]\n", + "schema_text_with_content": "Table 2-12592245-1, columns = [`Ship` (Example values: [vmv-1, vmv-2, vmv-3]), `Launched` (Example values: [1930.0, 1916.0, 1931.0]), `Location` (Example values: [germany, german republic, helsinki , finland]), `Speed` (Example values: [25 knots, 23 knots, 16 knots]), `Fate` (Example values: [decommissioned 1950, lost (burned) 1931, retired 1939])]\n", + "ori_query": "select avg(`launched`) from `2-12592245-1` where `location` = 'germany' and `ship` = 'vmv-1'", + "amb_query": "SELECT AVG(\"launched\") FROM \"2-12592245-1\" WHERE location IN ('germany', 'german republic') AND \"ship\" = 'vmv-1'" + }, + { + "db_id": "2-163231-4", + "question": "How many golds does norway have?", + "evidence": "", + "schema_text_wo_content": "Table 2-163231-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-163231-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, german republic, united states]), `Gold` (Example values: [7, 4, 3]), `Silver` (Example values: [5, 3, 4]), `Bronze` (Example values: [9.0, 1.0, 3.0]), `Total` (Example values: [21.0, 8.0, 10.0])]\n", + "ori_query": "select `gold` from `2-163231-4` where `nation` = 'norway'", + "amb_query": "SELECT \"gold\" FROM \"2-163231-4\" WHERE nation IN ('norway country', 'norway')" + }, + { + "db_id": "2-163231-4", + "question": "How many golds does france have?", + "evidence": "", + "schema_text_wo_content": "Table 2-163231-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-163231-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, german republic, united states]), `Gold` (Example values: [7, 4, 3]), `Silver` (Example values: [5, 3, 4]), `Bronze` (Example values: [9.0, 1.0, 3.0]), `Total` (Example values: [21.0, 8.0, 10.0])]\n", + "ori_query": "select `gold` from `2-163231-4` where `nation` = 'france'", + "amb_query": "SELECT \"gold\" FROM \"2-163231-4\" WHERE nation IN ('the country of france', 'france')" + }, + { + "db_id": "2-163231-4", + "question": "How many golds does Germany have?", + "evidence": "", + "schema_text_wo_content": "Table 2-163231-4, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-163231-4, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet union, german republic, united states]), `Gold` (Example values: [7, 4, 3]), `Silver` (Example values: [5, 3, 4]), `Bronze` (Example values: [9.0, 1.0, 3.0]), `Total` (Example values: [21.0, 8.0, 10.0])]\n", + "ori_query": "select `gold` from `2-163231-4` where `nation` = 'germany'", + "amb_query": "SELECT \"gold\" FROM \"2-163231-4\" WHERE nation IN ('germany', 'german republic')" + }, + { + "db_id": "2-1570375-3", + "question": "How many bronze numbers had a total of more than 4 when the rank is less than four, france is involved, and there's less than 5 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-1570375-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1570375-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, czech republic, germany country]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 5.0]), `Bronze` (Example values: [4.0, 1.0, 2.0]), `Total` (Example values: [13.0, 6.0, 8.0])]\n", + "ori_query": "select count(`bronze`) from `2-1570375-3` where `total` > 4 and `rank` < 4 and `nation` = 'france' and `silver` < 5", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-1570375-3\" WHERE \"total\" > 4 AND \"rank\" < 4 AND nation IN ('france', 'france country') AND \"silver\" < 5" + }, + { + "db_id": "2-1570375-3", + "question": "How many bronze numbers had a total of more than 4 when the rank is less than four, greece is involved, and there's less than 5 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-1570375-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1570375-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, czech republic, germany country]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 5.0]), `Bronze` (Example values: [4.0, 1.0, 2.0]), `Total` (Example values: [13.0, 6.0, 8.0])]\n", + "ori_query": "select count(`bronze`) from `2-1570375-3` where `total` > 4 and `rank` < 4 and `nation` = 'greece' and `silver` < 5", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-1570375-3\" WHERE \"total\" > 4 AND \"rank\" < 4 AND nation IN ('greece, mediterranean region', 'greece') AND \"silver\" < 5" + }, + { + "db_id": "2-1570375-3", + "question": "How many bronze numbers had a total of more than 4 when the rank is less than four, ireland is involved, and there's less than 5 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-1570375-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1570375-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, czech republic, germany country]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 5.0]), `Bronze` (Example values: [4.0, 1.0, 2.0]), `Total` (Example values: [13.0, 6.0, 8.0])]\n", + "ori_query": "select count(`bronze`) from `2-1570375-3` where `total` > 4 and `rank` < 4 and `nation` = 'ireland' and `silver` < 5", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-1570375-3\" WHERE \"total\" > 4 AND \"rank\" < 4 AND nation IN ('republic of ireland', 'ireland') AND \"silver\" < 5" + }, + { + "db_id": "2-1570375-3", + "question": "How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-1570375-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1570375-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, czech republic, germany country]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 5.0]), `Bronze` (Example values: [4.0, 1.0, 2.0]), `Total` (Example values: [13.0, 6.0, 8.0])]\n", + "ori_query": "select count(`bronze`) from `2-1570375-3` where `total` > 4 and `rank` < 4 and `nation` = 'germany' and `silver` < 5", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-1570375-3\" WHERE \"total\" > 4 AND \"rank\" < 4 AND nation IN ('germany', 'germany country') AND \"silver\" < 5" + }, + { + "db_id": "2-17029703-3", + "question": "What is the average number of bronze medals of the france, which has more than 0 gold?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select avg(`bronze`) from `2-17029703-3` where `nation` = 'france' and `gold` > 0", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-17029703-3\" WHERE nation IN ('france', 'france, europe') AND \"gold\" > 0" + }, + { + "db_id": "2-17029703-3", + "question": "How many total silvers does brazil have?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select count(`silver`) from `2-17029703-3` where `nation` = 'brazil'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-17029703-3\" WHERE nation IN ('brazil', 'brazilian republic')" + }, + { + "db_id": "2-17029703-3", + "question": "How many total silvers does iran have?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select count(`silver`) from `2-17029703-3` where `nation` = 'iran'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-17029703-3\" WHERE nation IN ('persia', 'iran')" + }, + { + "db_id": "2-17029703-3", + "question": "How many total silvers does belarus have?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select count(`silver`) from `2-17029703-3` where `nation` = 'belarus'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-17029703-3\" WHERE nation IN ('republic of belarus', 'belarus')" + }, + { + "db_id": "2-17029703-3", + "question": "What is the average number of bronze medals of the turkey, which has more than 0 gold?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select avg(`bronze`) from `2-17029703-3` where `nation` = 'turkey' and `gold` > 0", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-17029703-3\" WHERE nation IN ('turkey', 'turkey, eurasia') AND \"gold\" > 0" + }, + { + "db_id": "2-17029703-3", + "question": "How many total silvers does Russia have?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select count(`silver`) from `2-17029703-3` where `nation` = 'russia'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-17029703-3\" WHERE nation IN ('russia', 'russia country')" + }, + { + "db_id": "2-17029703-3", + "question": "What is the average number of bronze medals of the Philippines, which has more than 0 gold?", + "evidence": "", + "schema_text_wo_content": "Table 2-17029703-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17029703-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, turkey, eurasia, france, europe]), `Gold` (Example values: [8.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 0.0, 3.0]), `Bronze` (Example values: [2.0, 3.0, 0.0]), `Total` (Example values: [11.0, 5.0, 2.0])]\n", + "ori_query": "select avg(`bronze`) from `2-17029703-3` where `nation` = 'philippines' and `gold` > 0", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-17029703-3\" WHERE nation IN ('philippines', 'republic of the philippines') AND \"gold\" > 0" + }, + { + "db_id": "2-11389949-1", + "question": "What is the gold when the total is less than 2, and rank is 3 and france is the nation?", + "evidence": "", + "schema_text_wo_content": "Table 2-11389949-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11389949-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, japanese, canada, north america]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [4.0, 2.0, 1.0])]\n", + "ori_query": "select `gold` from `2-11389949-1` where `total` < 2 and `rank` = 3 and `nation` = 'france'", + "amb_query": "SELECT \"gold\" FROM \"2-11389949-1\" WHERE \"total\" < 2 AND \"rank\" = 3 AND nation IN ('france nation', 'france')" + }, + { + "db_id": "2-11389949-1", + "question": "What is the gold when the total is less than 2, and rank is 3 and Canada is the nation?", + "evidence": "", + "schema_text_wo_content": "Table 2-11389949-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11389949-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, japanese, canada, north america]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [4.0, 2.0, 1.0])]\n", + "ori_query": "select `gold` from `2-11389949-1` where `total` < 2 and `rank` = 3 and `nation` = 'canada'", + "amb_query": "SELECT \"gold\" FROM \"2-11389949-1\" WHERE \"total\" < 2 AND \"rank\" = 3 AND nation IN ('canada, north america', 'canada')" + }, + { + "db_id": "2-11389949-1", + "question": "What is silver when gold is 1 and the rank is less than 3 for japan?", + "evidence": "", + "schema_text_wo_content": "Table 2-11389949-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11389949-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, japanese, canada, north america]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [4.0, 2.0, 1.0])]\n", + "ori_query": "select `silver` from `2-11389949-1` where `gold` = 1 and `rank` < 3 and `nation` = 'japan'", + "amb_query": "SELECT \"silver\" FROM \"2-11389949-1\" WHERE \"gold\" = 1 AND \"rank\" < 3 AND nation IN ('japanese', 'japan')" + }, + { + "db_id": "2-12005739-2", + "question": "Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of ireland, and the Games smaller than 5?", + "evidence": "", + "schema_text_wo_content": "Table 2-12005739-2, columns = [Name, Nation, Points, Games, Pts/game]\n", + "schema_text_with_content": "Table 2-12005739-2, columns = [`Name` (Example values: [estelle sartini, karen andrew, non evans]), `Nation` (Example values: [france, england country, wales]), `Points` (Example values: [33.0, 31.0, 29.0]), `Games` (Example values: [5.0, 4.0, 2.0]), `Pts/game` (Example values: [6.6, 6.2, 5.8])]\n", + "ori_query": "select avg(`points`) from `2-12005739-2` where `pts/game` > 4 and `nation` = 'ireland' and `games` < 5", + "amb_query": "SELECT AVG(\"points\") FROM \"2-12005739-2\" WHERE \"pts/game\" > 4 AND nation IN ('ireland', 'ireland, the emerald isle') AND \"games\" < 5" + }, + { + "db_id": "2-12005739-2", + "question": "Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?", + "evidence": "", + "schema_text_wo_content": "Table 2-12005739-2, columns = [Name, Nation, Points, Games, Pts/game]\n", + "schema_text_with_content": "Table 2-12005739-2, columns = [`Name` (Example values: [estelle sartini, karen andrew, non evans]), `Nation` (Example values: [france, england country, wales]), `Points` (Example values: [33.0, 31.0, 29.0]), `Games` (Example values: [5.0, 4.0, 2.0]), `Pts/game` (Example values: [6.6, 6.2, 5.8])]\n", + "ori_query": "select avg(`points`) from `2-12005739-2` where `pts/game` > 4 and `nation` = 'england' and `games` < 5", + "amb_query": "SELECT AVG(\"points\") FROM \"2-12005739-2\" WHERE \"pts/game\" > 4 AND nation IN ('the nation of england', 'english', 'england', 'england country') AND \"games\" < 5" + }, + { + "db_id": "2-1473124-1", + "question": "What is the highest rank of united states, which had less than 0 silvers?", + "evidence": "", + "schema_text_wo_content": "Table 2-1473124-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1473124-1, columns = [`Rank` (Example values: [1.0, 2.0]), `Nation` (Example values: [soviet state, united states, north america, austria country]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 1.0]), `Total` (Example values: [2.0, 1.0])]\n", + "ori_query": "select min(`rank`) from `2-1473124-1` where `nation` = 'united states' and `silver` < 0", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-1473124-1\" WHERE nation IN ('united states, north america', 'united states') AND \"silver\" < 0" + }, + { + "db_id": "2-1473124-1", + "question": "What is the total number of bronze medals of soviet union, which is ranked 2 and has less than 1 total medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-1473124-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1473124-1, columns = [`Rank` (Example values: [1.0, 2.0]), `Nation` (Example values: [soviet state, united states, north america, austria country]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 1.0]), `Total` (Example values: [2.0, 1.0])]\n", + "ori_query": "select count(`bronze`) from `2-1473124-1` where `rank` = 2 and `nation` = 'soviet union' and `total` < 1", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-1473124-1\" WHERE \"rank\" = 2 AND nation IN ('soviet union', 'soviet state') AND \"total\" < 1" + }, + { + "db_id": "2-1473124-1", + "question": "What is the highest rank of Austria, which had less than 0 silvers?", + "evidence": "", + "schema_text_wo_content": "Table 2-1473124-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1473124-1, columns = [`Rank` (Example values: [1.0, 2.0]), `Nation` (Example values: [soviet state, united states, north america, austria country]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 1.0]), `Total` (Example values: [2.0, 1.0])]\n", + "ori_query": "select min(`rank`) from `2-1473124-1` where `nation` = 'austria' and `silver` < 0", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-1473124-1\" WHERE nation IN ('austria', 'austria country') AND \"silver\" < 0" + }, + { + "db_id": "2-1473124-1", + "question": "What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-1473124-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1473124-1, columns = [`Rank` (Example values: [1.0, 2.0]), `Nation` (Example values: [soviet state, united states, north america, austria country]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 1.0]), `Total` (Example values: [2.0, 1.0])]\n", + "ori_query": "select count(`bronze`) from `2-1473124-1` where `rank` = 2 and `nation` = 'west germany' and `total` < 1", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-1473124-1\" WHERE \"rank\" = 2 AND nation IN ('west germany', 'west germany, europe') AND \"total\" < 1" + }, + { + "db_id": "2-16279834-3", + "question": "What is the lowest Rank, when Nation is united states, and when Bronze is less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-16279834-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-16279834-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [south korea, china, america]), `Gold` (Example values: [5.0, 2.0, 0.0]), `Silver` (Example values: [4.0, 3.0, 2.0]), `Bronze` (Example values: [4.0, 2.0, 3.0]), `Total` (Example values: [13.0, 10.0, 7.0])]\n", + "ori_query": "select min(`rank`) from `2-16279834-3` where `nation` = 'united states' and `bronze` < 1", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-16279834-3\" WHERE nation IN ('america', 'united states') AND \"bronze\" < 1" + }, + { + "db_id": "2-16279834-3", + "question": "What is the lowest Rank, when Nation is Great Britain, and when Bronze is less than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-16279834-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-16279834-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [south korea, china, america]), `Gold` (Example values: [5.0, 2.0, 0.0]), `Silver` (Example values: [4.0, 3.0, 2.0]), `Bronze` (Example values: [4.0, 2.0, 3.0]), `Total` (Example values: [13.0, 10.0, 7.0])]\n", + "ori_query": "select min(`rank`) from `2-16279834-3` where `nation` = 'great britain' and `bronze` < 1", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-16279834-3\" WHERE nation IN ('great britain', 'england, scotland, and wales') AND \"bronze\" < 1" + }, + { + "db_id": "2-16279834-3", + "question": "What is the lowest Gold, when Nation is Canada, and when Rank is greater than 4?", + "evidence": "", + "schema_text_wo_content": "Table 2-16279834-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-16279834-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [south korea, china, america]), `Gold` (Example values: [5.0, 2.0, 0.0]), `Silver` (Example values: [4.0, 3.0, 2.0]), `Bronze` (Example values: [4.0, 2.0, 3.0]), `Total` (Example values: [13.0, 10.0, 7.0])]\n", + "ori_query": "select min(`gold`) from `2-16279834-3` where `nation` = 'canada' and `rank` > 4", + "amb_query": "SELECT MIN(\"gold\") FROM \"2-16279834-3\" WHERE nation IN ('canada country', 'canada') AND \"rank\" > 4" + }, + { + "db_id": "2-12427276-3", + "question": "What is the average Rank for a lane smaller than 3 with a nationality of united states?", + "evidence": "", + "schema_text_wo_content": "Table 2-12427276-3, columns = [Rank, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-12427276-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [4.0, 5.0, 6.0]), `Name` (Example values: [roxana maracineanu, miki nakao, antje buschschulte]), `Nationality` (Example values: [france, japan, germany]), `Time` (Example values: [2:11.93, 2:12.49, 2:12.64])]\n", + "ori_query": "select avg(`rank`) from `2-12427276-3` where `lane` < 3 and `nationality` = 'united states'", + "amb_query": "SELECT AVG(\"rank\") FROM \"2-12427276-3\" WHERE \"lane\" < 3 AND nationality IN ('united states', 'usa')" + }, + { + "db_id": "2-12427276-3", + "question": "What is the average Rank for a lane smaller than 3 with a nationality of Australia?", + "evidence": "", + "schema_text_wo_content": "Table 2-12427276-3, columns = [Rank, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-12427276-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [4.0, 5.0, 6.0]), `Name` (Example values: [roxana maracineanu, miki nakao, antje buschschulte]), `Nationality` (Example values: [france, japan, germany]), `Time` (Example values: [2:11.93, 2:12.49, 2:12.64])]\n", + "ori_query": "select avg(`rank`) from `2-12427276-3` where `lane` < 3 and `nationality` = 'australia'", + "amb_query": "SELECT AVG(\"rank\") FROM \"2-12427276-3\" WHERE \"lane\" < 3 AND nationality IN ('australia', 'australian continent')" + }, + { + "db_id": "2-11178110-2", + "question": "what is the average bronze when gold is 1, the nation is united states and the rank is less than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-11178110-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11178110-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [east germany nation, soviet union, hungary, central europe]), `Gold` (Example values: [2.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0]), `Total` (Example values: [3.0, 4.0, 1.0])]\n", + "ori_query": "select avg(`bronze`) from `2-11178110-2` where `gold` = 1 and `nation` = 'united states' and `rank` < 3", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-11178110-2\" WHERE \"gold\" = 1 AND nation IN ('america', 'united states') AND \"rank\" < 3" + }, + { + "db_id": "2-11178110-2", + "question": "what is the average bronze when gold is 1, the nation is hungary and the rank is less than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-11178110-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11178110-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [east germany nation, soviet union, hungary, central europe]), `Gold` (Example values: [2.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0]), `Total` (Example values: [3.0, 4.0, 1.0])]\n", + "ori_query": "select avg(`bronze`) from `2-11178110-2` where `gold` = 1 and `nation` = 'hungary' and `rank` < 3", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-11178110-2\" WHERE \"gold\" = 1 AND nation IN ('hungary, central europe', 'hungary') AND \"rank\" < 3" + }, + { + "db_id": "2-11178110-2", + "question": "How many times was the total more than 1, the nation was east germany and silver was more than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-11178110-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11178110-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [east germany nation, soviet union, hungary, central europe]), `Gold` (Example values: [2.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0]), `Total` (Example values: [3.0, 4.0, 1.0])]\n", + "ori_query": "select count(`bronze`) from `2-11178110-2` where `total` > 1 and `nation` = 'east germany' and `silver` > 1", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-11178110-2\" WHERE \"total\" > 1 AND nation IN ('east germany nation', 'east germany') AND \"silver\" > 1" + }, + { + "db_id": "2-11178110-2", + "question": "what is the average rank when the nation is east germany and silver is more than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-11178110-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11178110-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [east germany nation, soviet union, hungary, central europe]), `Gold` (Example values: [2.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0]), `Total` (Example values: [3.0, 4.0, 1.0])]\n", + "ori_query": "select avg(`rank`) from `2-11178110-2` where `nation` = 'east germany' and `silver` > 1", + "amb_query": "SELECT AVG(\"rank\") FROM \"2-11178110-2\" WHERE nation IN ('east germany nation', 'east germany') AND \"silver\" > 1" + }, + { + "db_id": "2-1013129-8", + "question": "Who is the player from united states with a 199 pick?", + "evidence": "", + "schema_text_wo_content": "Table 2-1013129-8, columns = [Pick, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 2-1013129-8, columns = [`Pick` (Example values: [183, 184, 185]), `Player` (Example values: [jason boudrias, brad englehart, rob guinn]), `Position` (Example values: [forward, centre, defence]), `Nationality` (Example values: [canada, canadian, russia]), `NHL team` (Example values: [florida panthers, anaheim ducks, edmonton oilers]), `College/junior/club team` (Example values: [laval titan (qmjhl), kimball union academy (hs-new hampshire), newmarket royals (ohl)])]\n", + "ori_query": "select `player` from `2-1013129-8` where `nationality` = 'united states' and `pick` = '199'", + "amb_query": "SELECT \"player\" FROM \"2-1013129-8\" WHERE nationality IN ('america', 'united states, north america', 'united states') AND \"pick\" = '199'" + }, + { + "db_id": "2-1013129-8", + "question": "Who is the player from Canada with a 199 pick?", + "evidence": "", + "schema_text_wo_content": "Table 2-1013129-8, columns = [Pick, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 2-1013129-8, columns = [`Pick` (Example values: [183, 184, 185]), `Player` (Example values: [jason boudrias, brad englehart, rob guinn]), `Position` (Example values: [forward, centre, defence]), `Nationality` (Example values: [canada, canadian, russia]), `NHL team` (Example values: [florida panthers, anaheim ducks, edmonton oilers]), `College/junior/club team` (Example values: [laval titan (qmjhl), kimball union academy (hs-new hampshire), newmarket royals (ohl)])]\n", + "ori_query": "select `player` from `2-1013129-8` where `nationality` = 'canada' and `pick` = '199'", + "amb_query": "SELECT \"player\" FROM \"2-1013129-8\" WHERE nationality IN ('canadian', 'canada country', 'canada') AND \"pick\" = '199'" + }, + { + "db_id": "1-14573770-4", + "question": "How many times did united states win?", + "evidence": "", + "schema_text_wo_content": "Table 1-14573770-4, columns = [Nation, Winners, Runners-up, Third Place, Fourth Place]\n", + "schema_text_with_content": "Table 1-14573770-4, columns = [`Nation` (Example values: [arg, south america, federative republic of brazil, mexico]), `Winners` (Example values: [3.0, 2.0, 1.0]), `Runners-up` (Example values: [2.0, 0.0, 1.0]), `Third Place` (Example values: [1.0, 0.0, 2.0]), `Fourth Place` (Example values: [1.0, 4.0, 0.0])]\n", + "ori_query": "select max(`winners`) from `1-14573770-4` where `nation` = 'united states'", + "amb_query": "SELECT MAX(\"winners\") FROM \"1-14573770-4\" WHERE nation IN ('united states', 'usa')" + }, + { + "db_id": "1-14573770-4", + "question": "How many teams named brazil?", + "evidence": "", + "schema_text_wo_content": "Table 1-14573770-4, columns = [Nation, Winners, Runners-up, Third Place, Fourth Place]\n", + "schema_text_with_content": "Table 1-14573770-4, columns = [`Nation` (Example values: [arg, south america, federative republic of brazil, mexico]), `Winners` (Example values: [3.0, 2.0, 1.0]), `Runners-up` (Example values: [2.0, 0.0, 1.0]), `Third Place` (Example values: [1.0, 0.0, 2.0]), `Fourth Place` (Example values: [1.0, 4.0, 0.0])]\n", + "ori_query": "select max(`fourth place`) from `1-14573770-4` where `nation` = 'brazil'", + "amb_query": "SELECT MAX(\"fourth place\") FROM \"1-14573770-4\" WHERE nation IN ('brazil', 'federative republic of brazil')" + }, + { + "db_id": "1-14573770-4", + "question": "How many teams named argentina?", + "evidence": "", + "schema_text_wo_content": "Table 1-14573770-4, columns = [Nation, Winners, Runners-up, Third Place, Fourth Place]\n", + "schema_text_with_content": "Table 1-14573770-4, columns = [`Nation` (Example values: [arg, south america, federative republic of brazil, mexico]), `Winners` (Example values: [3.0, 2.0, 1.0]), `Runners-up` (Example values: [2.0, 0.0, 1.0]), `Third Place` (Example values: [1.0, 0.0, 2.0]), `Fourth Place` (Example values: [1.0, 4.0, 0.0])]\n", + "ori_query": "select max(`fourth place`) from `1-14573770-4` where `nation` = 'argentina'", + "amb_query": "SELECT MAX(\"fourth place\") FROM \"1-14573770-4\" WHERE nation IN ('arg, south america', 'argentina')" + }, + { + "db_id": "1-14573770-4", + "question": "How many times did argentina win?", + "evidence": "", + "schema_text_wo_content": "Table 1-14573770-4, columns = [Nation, Winners, Runners-up, Third Place, Fourth Place]\n", + "schema_text_with_content": "Table 1-14573770-4, columns = [`Nation` (Example values: [arg, south america, federative republic of brazil, mexico]), `Winners` (Example values: [3.0, 2.0, 1.0]), `Runners-up` (Example values: [2.0, 0.0, 1.0]), `Third Place` (Example values: [1.0, 0.0, 2.0]), `Fourth Place` (Example values: [1.0, 4.0, 0.0])]\n", + "ori_query": "select max(`winners`) from `1-14573770-4` where `nation` = 'argentina'", + "amb_query": "SELECT MAX(\"winners\") FROM \"1-14573770-4\" WHERE nation IN ('arg, south america', 'argentina')" + }, + { + "db_id": "1-2886617-3", + "question": "How many picks have united states as the nationality and larry courville is the player?", + "evidence": "", + "schema_text_wo_content": "Table 1-2886617-3, columns = [Pick, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2886617-3, columns = [`Pick` (Example values: [53., 54., 55.]), `Player` (Example values: [brad larsen, ryan pepperall, mike leclerc]), `Position` (Example values: [left wing, right wing, defence]), `Nationality` (Example values: [canada, north america, canada, the great white north, canada]), `NHL team` (Example values: [ottawa senators, toronto maple leafs (from new york islanders), mighty ducks of anaheim]), `College/junior/club team` (Example values: [swift current broncos (whl), kitchener rangers (ohl), brandon wheat kings (whl)])]\n", + "ori_query": "select count(`pick`) from `1-2886617-3` where `nationality` = 'united states' and `player` = 'larry courville'", + "amb_query": "SELECT COUNT(\"pick\") FROM \"1-2886617-3\" WHERE nationality IN ('united states', 'usa') AND \"player\" = 'larry courville'" + }, + { + "db_id": "1-2886617-3", + "question": "How many picks have canada as the nationality and larry courville is the player?", + "evidence": "", + "schema_text_wo_content": "Table 1-2886617-3, columns = [Pick, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2886617-3, columns = [`Pick` (Example values: [53., 54., 55.]), `Player` (Example values: [brad larsen, ryan pepperall, mike leclerc]), `Position` (Example values: [left wing, right wing, defence]), `Nationality` (Example values: [canada, north america, canada, the great white north, canada]), `NHL team` (Example values: [ottawa senators, toronto maple leafs (from new york islanders), mighty ducks of anaheim]), `College/junior/club team` (Example values: [swift current broncos (whl), kitchener rangers (ohl), brandon wheat kings (whl)])]\n", + "ori_query": "select count(`pick`) from `1-2886617-3` where `nationality` = 'canada' and `player` = 'larry courville'", + "amb_query": "SELECT COUNT(\"pick\") FROM \"1-2886617-3\" WHERE nationality IN ('canada, the great white north', 'canada, north america', 'canada', 'the country of canada') AND \"player\" = 'larry courville'" + }, + { + "db_id": "2-1613392-3", + "question": "What is the smallest total from united states with a rank larger than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-1613392-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1613392-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, republic of cuba, japanese]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [6.0, 4.0, 5.0])]\n", + "ori_query": "select min(`total`) from `2-1613392-3` where `nation` = 'united states' and `rank` > 3", + "amb_query": "SELECT MIN(\"total\") FROM \"2-1613392-3\" WHERE nation IN ('united states', 'usa') AND \"rank\" > 3" + }, + { + "db_id": "2-1613392-3", + "question": "What is the smallest total from cuba with a rank larger than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-1613392-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1613392-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, republic of cuba, japanese]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [6.0, 4.0, 5.0])]\n", + "ori_query": "select min(`total`) from `2-1613392-3` where `nation` = 'cuba' and `rank` > 3", + "amb_query": "SELECT MIN(\"total\") FROM \"2-1613392-3\" WHERE nation IN ('cuba', 'republic of cuba') AND \"rank\" > 3" + }, + { + "db_id": "2-1613392-3", + "question": "What is the smallest total from Japan with a rank larger than 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-1613392-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1613392-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, republic of cuba, japanese]), `Gold` (Example values: [4.0, 3.0, 2.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [6.0, 4.0, 5.0])]\n", + "ori_query": "select min(`total`) from `2-1613392-3` where `nation` = 'japan' and `rank` > 3", + "amb_query": "SELECT MIN(\"total\") FROM \"2-1613392-3\" WHERE nation IN ('japanese', 'japan') AND \"rank\" > 3" + }, + { + "db_id": "2-10648431-3", + "question": "How many golds for brazil (12 total)?", + "evidence": "", + "schema_text_wo_content": "Table 2-10648431-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10648431-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, the nation of canada, cuba]), `Gold` (Example values: [30.0, 3.0, 2.0]), `Silver` (Example values: [18.0, 9.0, 3.0]), `Bronze` (Example values: [6.0, 12.0, 7.0]), `Total` (Example values: [54.0, 24.0, 12.0])]\n", + "ori_query": "select `gold` from `2-10648431-3` where `total` > 12 and `nation` = 'brazil'", + "amb_query": "SELECT \"gold\" FROM \"2-10648431-3\" WHERE \"total\" > 12 AND nation IN ('brazil', 'brazil, the country')" + }, + { + "db_id": "2-10648431-3", + "question": "How many golds for trinidad and tobago (12 total)?", + "evidence": "", + "schema_text_wo_content": "Table 2-10648431-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10648431-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, the nation of canada, cuba]), `Gold` (Example values: [30.0, 3.0, 2.0]), `Silver` (Example values: [18.0, 9.0, 3.0]), `Bronze` (Example values: [6.0, 12.0, 7.0]), `Total` (Example values: [54.0, 24.0, 12.0])]\n", + "ori_query": "select `gold` from `2-10648431-3` where `total` > 12 and `nation` = 'trinidad and tobago'", + "amb_query": "SELECT \"gold\" FROM \"2-10648431-3\" WHERE \"total\" > 12 AND nation IN ('trinidad and tobago', 'republic of trinidad and tobago')" + }, + { + "db_id": "2-10648431-3", + "question": "How many golds for Canada (12 total)?", + "evidence": "", + "schema_text_wo_content": "Table 2-10648431-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10648431-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, the nation of canada, cuba]), `Gold` (Example values: [30.0, 3.0, 2.0]), `Silver` (Example values: [18.0, 9.0, 3.0]), `Bronze` (Example values: [6.0, 12.0, 7.0]), `Total` (Example values: [54.0, 24.0, 12.0])]\n", + "ori_query": "select `gold` from `2-10648431-3` where `total` > 12 and `nation` = 'canada'", + "amb_query": "SELECT \"gold\" FROM \"2-10648431-3\" WHERE \"total\" > 12 AND nation IN ('canada', 'the nation of canada')" + }, + { + "db_id": "2-16494599-19", + "question": "What player from the poland played for the Grizzlies from 1997-1998?", + "evidence": "", + "schema_text_wo_content": "Table 2-16494599-19, columns = [Player, Nationality, Position, Years for Grizzlies, School/Club Team]\n", + "schema_text_with_content": "Table 2-16494599-19, columns = [`Player` (Example values: [hasheem thabeet, john thomas, otis thorpe]), `Nationality` (Example values: [tanzania, usa, united states of america]), `Position` (Example values: [center, forward, power forward / center]), `Years for Grizzlies` (Example values: [2009-2011, 2005-2006, 1997-1998]), `School/Club Team` (Example values: [connecticut, minnesota, providence])]\n", + "ori_query": "select `player` from `2-16494599-19` where `nationality` = 'poland' and `years for grizzlies` = '1997-1998'", + "amb_query": "SELECT \"player\" FROM \"2-16494599-19\" WHERE nationality IN ('polska', 'poland') AND \"years for grizzlies\" = '1997-1998'" + }, + { + "db_id": "2-16494599-19", + "question": "What player from the United States played for the Grizzlies from 1997-1998?", + "evidence": "", + "schema_text_wo_content": "Table 2-16494599-19, columns = [Player, Nationality, Position, Years for Grizzlies, School/Club Team]\n", + "schema_text_with_content": "Table 2-16494599-19, columns = [`Player` (Example values: [hasheem thabeet, john thomas, otis thorpe]), `Nationality` (Example values: [tanzania, usa, united states of america]), `Position` (Example values: [center, forward, power forward / center]), `Years for Grizzlies` (Example values: [2009-2011, 2005-2006, 1997-1998]), `School/Club Team` (Example values: [connecticut, minnesota, providence])]\n", + "ori_query": "select `player` from `2-16494599-19` where `nationality` = 'united states' and `years for grizzlies` = '1997-1998'", + "amb_query": "SELECT \"player\" FROM \"2-16494599-19\" WHERE nationality IN ('united states', 'united states of america', 'usa') AND \"years for grizzlies\" = '1997-1998'" + }, + { + "db_id": "2-17136937-1", + "question": "What's the largest number of Gold medals won when bronze won are 2 and total won are over 7 by poland?", + "evidence": "", + "schema_text_wo_content": "Table 2-17136937-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17136937-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [italy, the country of hungary, france]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [3.0, 2.0, 1.0]), `Bronze` (Example values: [2.0, 4.0, 0.0]), `Total` (Example values: [8.0, 7.0, 6.0])]\n", + "ori_query": "select max(`gold`) from `2-17136937-1` where `bronze` = 2 and `nation` = 'poland' and `total` > 7", + "amb_query": "SELECT MAX(\"gold\") FROM \"2-17136937-1\" WHERE \"bronze\" = 2 AND nation IN ('poland, eastern europe', 'poland') AND \"total\" > 7" + }, + { + "db_id": "2-17136937-1", + "question": "What's the largest number of Gold medals won when bronze won are 2 and total won are over 7 by Hungary?", + "evidence": "", + "schema_text_wo_content": "Table 2-17136937-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17136937-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [italy, the country of hungary, france]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [3.0, 2.0, 1.0]), `Bronze` (Example values: [2.0, 4.0, 0.0]), `Total` (Example values: [8.0, 7.0, 6.0])]\n", + "ori_query": "select max(`gold`) from `2-17136937-1` where `bronze` = 2 and `nation` = 'hungary' and `total` > 7", + "amb_query": "SELECT MAX(\"gold\") FROM \"2-17136937-1\" WHERE \"bronze\" = 2 AND nation IN ('the country of hungary', 'hungary') AND \"total\" > 7" + }, + { + "db_id": "2-15759218-1", + "question": "What rank has 0 as the bronze, and a total less than 3, with japan as the nation?", + "evidence": "", + "schema_text_wo_content": "Table 2-15759218-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15759218-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet state, hungary, poland]), `Gold` (Example values: [11.0, 2.0, 1.0]), `Silver` (Example values: [4.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [17.0, 4.0, 3.0])]\n", + "ori_query": "select `rank` from `2-15759218-1` where `bronze` = 0 and `total` < 3 and `nation` = 'japan'", + "amb_query": "SELECT \"rank\" FROM \"2-15759218-1\" WHERE \"bronze\" = 0 AND \"total\" < 3 AND nation IN ('japan, east asia', 'japan')" + }, + { + "db_id": "2-15759218-1", + "question": "What average total has soviet union as the nation, and a bronze greater than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-15759218-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15759218-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet state, hungary, poland]), `Gold` (Example values: [11.0, 2.0, 1.0]), `Silver` (Example values: [4.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [17.0, 4.0, 3.0])]\n", + "ori_query": "select avg(`total`) from `2-15759218-1` where `nation` = 'soviet union' and `bronze` > 1", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15759218-1\" WHERE nation IN ('soviet union', 'soviet state') AND \"bronze\" > 1" + }, + { + "db_id": "2-15759218-1", + "question": "What average total has czechoslovakia as the nation, and a bronze greater than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-15759218-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15759218-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet state, hungary, poland]), `Gold` (Example values: [11.0, 2.0, 1.0]), `Silver` (Example values: [4.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [17.0, 4.0, 3.0])]\n", + "ori_query": "select avg(`total`) from `2-15759218-1` where `nation` = 'czechoslovakia' and `bronze` > 1", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15759218-1\" WHERE nation IN ('czechoslovakia, former country', 'czechoslovakia') AND \"bronze\" > 1" + }, + { + "db_id": "2-15759218-1", + "question": "What rank has 0 as the bronze, and a total less than 3, with mongolia as the nation?", + "evidence": "", + "schema_text_wo_content": "Table 2-15759218-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15759218-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet state, hungary, poland]), `Gold` (Example values: [11.0, 2.0, 1.0]), `Silver` (Example values: [4.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [17.0, 4.0, 3.0])]\n", + "ori_query": "select `rank` from `2-15759218-1` where `bronze` = 0 and `total` < 3 and `nation` = 'mongolia'", + "amb_query": "SELECT \"rank\" FROM \"2-15759218-1\" WHERE \"bronze\" = 0 AND \"total\" < 3 AND nation IN ('mongolia', 'mongolian republic')" + }, + { + "db_id": "2-15759218-1", + "question": "What average total has cuba as the nation, and a bronze greater than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-15759218-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15759218-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet state, hungary, poland]), `Gold` (Example values: [11.0, 2.0, 1.0]), `Silver` (Example values: [4.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [17.0, 4.0, 3.0])]\n", + "ori_query": "select avg(`total`) from `2-15759218-1` where `nation` = 'cuba' and `bronze` > 1", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15759218-1\" WHERE nation IN ('cuba', 'cuba, caribbean') AND \"bronze\" > 1" + }, + { + "db_id": "2-15759218-1", + "question": "What rank has 0 as the bronze, and a total less than 3, with north korea as the nation?", + "evidence": "", + "schema_text_wo_content": "Table 2-15759218-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15759218-1, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [soviet state, hungary, poland]), `Gold` (Example values: [11.0, 2.0, 1.0]), `Silver` (Example values: [4.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [17.0, 4.0, 3.0])]\n", + "ori_query": "select `rank` from `2-15759218-1` where `bronze` = 0 and `total` < 3 and `nation` = 'north korea'", + "amb_query": "SELECT \"rank\" FROM \"2-15759218-1\" WHERE \"bronze\" = 0 AND \"total\" < 3 AND nation IN ('north korea', 'north korea, dprk')" + }, + { + "db_id": "2-13845847-2", + "question": "What is the time for yokohama , japan?", + "evidence": "", + "schema_text_wo_content": "Table 2-13845847-2, columns = [Res., Record, Opponent, Method, Event, Round, Time, Location]\n", + "schema_text_with_content": "Table 2-13845847-2, columns = [`Res.` (Example values: [loss, win, nc]), `Record` (Example values: [13–16–3 (1), 13–15–3 (1), 13–14–3 (1)]), `Opponent` (Example values: [ivan serati, mario sperry, hiroyuki ito]), `Method` (Example values: [submission (rear naked choke), ko (strikes), submission (guillotine choke)]), `Event` (Example values: [cage rage 24: feel the pain, cage rage 22: hard as hell, pain and glory 2004]), `Round` (Example values: [2.0, 1.0, 3.0]), `Time` (Example values: [1:34, 1:39, 0:32]), `Location` (Example values: [london, london, uk, birmingham , england])]\n", + "ori_query": "select `time` from `2-13845847-2` where `location` = 'yokohama , japan'", + "amb_query": "SELECT \"time\" FROM \"2-13845847-2\" WHERE location IN ('yokohama , japan', 'yokohama, kanagawa, japan')" + }, + { + "db_id": "2-13845847-2", + "question": "What is the time for yokohama, japan?", + "evidence": "", + "schema_text_wo_content": "Table 2-13845847-2, columns = [Res., Record, Opponent, Method, Event, Round, Time, Location]\n", + "schema_text_with_content": "Table 2-13845847-2, columns = [`Res.` (Example values: [loss, win, nc]), `Record` (Example values: [13–16–3 (1), 13–15–3 (1), 13–14–3 (1)]), `Opponent` (Example values: [ivan serati, mario sperry, hiroyuki ito]), `Method` (Example values: [submission (rear naked choke), ko (strikes), submission (guillotine choke)]), `Event` (Example values: [cage rage 24: feel the pain, cage rage 22: hard as hell, pain and glory 2004]), `Round` (Example values: [2.0, 1.0, 3.0]), `Time` (Example values: [1:34, 1:39, 0:32]), `Location` (Example values: [london, london, uk, birmingham , england])]\n", + "ori_query": "select `time` from `2-13845847-2` where `location` = 'yokohama, japan'", + "amb_query": "SELECT \"time\" FROM \"2-13845847-2\" WHERE location IN ('yokohama, japan', 'yokohama, japan (kanagawa)')" + }, + { + "db_id": "2-13845847-2", + "question": "Who was the opponent in ekaterinburg , russia in a round less than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-13845847-2, columns = [Res., Record, Opponent, Method, Event, Round, Time, Location]\n", + "schema_text_with_content": "Table 2-13845847-2, columns = [`Res.` (Example values: [loss, win, nc]), `Record` (Example values: [13–16–3 (1), 13–15–3 (1), 13–14–3 (1)]), `Opponent` (Example values: [ivan serati, mario sperry, hiroyuki ito]), `Method` (Example values: [submission (rear naked choke), ko (strikes), submission (guillotine choke)]), `Event` (Example values: [cage rage 24: feel the pain, cage rage 22: hard as hell, pain and glory 2004]), `Round` (Example values: [2.0, 1.0, 3.0]), `Time` (Example values: [1:34, 1:39, 0:32]), `Location` (Example values: [london, london, uk, birmingham , england])]\n", + "ori_query": "select `opponent` from `2-13845847-2` where `location` = 'ekaterinburg , russia' and `round` < 2", + "amb_query": "SELECT \"opponent\" FROM \"2-13845847-2\" WHERE location IN ('city of ekaterinburg, russia', 'ekaterinburg , russia') AND \"round\" < 2" + }, + { + "db_id": "2-13845847-2", + "question": "Who was the opponent in osaka , japan in a round less than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-13845847-2, columns = [Res., Record, Opponent, Method, Event, Round, Time, Location]\n", + "schema_text_with_content": "Table 2-13845847-2, columns = [`Res.` (Example values: [loss, win, nc]), `Record` (Example values: [13–16–3 (1), 13–15–3 (1), 13–14–3 (1)]), `Opponent` (Example values: [ivan serati, mario sperry, hiroyuki ito]), `Method` (Example values: [submission (rear naked choke), ko (strikes), submission (guillotine choke)]), `Event` (Example values: [cage rage 24: feel the pain, cage rage 22: hard as hell, pain and glory 2004]), `Round` (Example values: [2.0, 1.0, 3.0]), `Time` (Example values: [1:34, 1:39, 0:32]), `Location` (Example values: [london, london, uk, birmingham , england])]\n", + "ori_query": "select `opponent` from `2-13845847-2` where `location` = 'osaka , japan' and `round` < 2", + "amb_query": "SELECT \"opponent\" FROM \"2-13845847-2\" WHERE location IN ('osaka , japan', 'osaka, kansai region, japan') AND \"round\" < 2" + }, + { + "db_id": "2-13845847-2", + "question": "What is the time for Moscow, Russia?", + "evidence": "", + "schema_text_wo_content": "Table 2-13845847-2, columns = [Res., Record, Opponent, Method, Event, Round, Time, Location]\n", + "schema_text_with_content": "Table 2-13845847-2, columns = [`Res.` (Example values: [loss, win, nc]), `Record` (Example values: [13–16–3 (1), 13–15–3 (1), 13–14–3 (1)]), `Opponent` (Example values: [ivan serati, mario sperry, hiroyuki ito]), `Method` (Example values: [submission (rear naked choke), ko (strikes), submission (guillotine choke)]), `Event` (Example values: [cage rage 24: feel the pain, cage rage 22: hard as hell, pain and glory 2004]), `Round` (Example values: [2.0, 1.0, 3.0]), `Time` (Example values: [1:34, 1:39, 0:32]), `Location` (Example values: [london, london, uk, birmingham , england])]\n", + "ori_query": "select `time` from `2-13845847-2` where `location` = 'moscow, russia'", + "amb_query": "SELECT \"time\" FROM \"2-13845847-2\" WHERE location IN ('moscow, russian federation', 'moscow, russia')" + }, + { + "db_id": "2-13845847-2", + "question": "Who was the opponent in London, England in a round less than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-13845847-2, columns = [Res., Record, Opponent, Method, Event, Round, Time, Location]\n", + "schema_text_with_content": "Table 2-13845847-2, columns = [`Res.` (Example values: [loss, win, nc]), `Record` (Example values: [13–16–3 (1), 13–15–3 (1), 13–14–3 (1)]), `Opponent` (Example values: [ivan serati, mario sperry, hiroyuki ito]), `Method` (Example values: [submission (rear naked choke), ko (strikes), submission (guillotine choke)]), `Event` (Example values: [cage rage 24: feel the pain, cage rage 22: hard as hell, pain and glory 2004]), `Round` (Example values: [2.0, 1.0, 3.0]), `Time` (Example values: [1:34, 1:39, 0:32]), `Location` (Example values: [london, london, uk, birmingham , england])]\n", + "ori_query": "select `opponent` from `2-13845847-2` where `location` = 'london, england' and `round` < 2", + "amb_query": "SELECT \"opponent\" FROM \"2-13845847-2\" WHERE location IN ('london, england', 'london, uk', 'london') AND \"round\" < 2" + }, + { + "db_id": "2-17440650-2", + "question": "What is the round in yokohama , japan with a draw for method?", + "evidence": "", + "schema_text_wo_content": "Table 2-17440650-2, columns = [Res., Record, Opponent, Method, Event, Round, Location]\n", + "schema_text_with_content": "Table 2-17440650-2, columns = [`Res.` (Example values: [loss, win, draw]), `Record` (Example values: [14-5-1, 14-4-1, 14-3-1]), `Opponent` (Example values: [thomas hytten, evan dunham, samy schiavo]), `Method` (Example values: [ko (punch), tko (punches), submission (rear naked choke)]), `Event` (Example values: [vfc - vision fighting championship 2, ufc 95, ufc 89]), `Round` (Example values: [1, 3, 2]), `Location` (Example values: [sweden, england, british columbia , canada])]\n", + "ori_query": "select `round` from `2-17440650-2` where `location` = 'yokohama , japan' and `method` = 'draw'", + "amb_query": "SELECT \"round\" FROM \"2-17440650-2\" WHERE location IN ('yokohama , japan', 'yokohama, japan, kanagawa prefecture') AND \"method\" = 'draw'" + }, + { + "db_id": "2-17440650-2", + "question": "What is the round in Finland with a draw for method?", + "evidence": "", + "schema_text_wo_content": "Table 2-17440650-2, columns = [Res., Record, Opponent, Method, Event, Round, Location]\n", + "schema_text_with_content": "Table 2-17440650-2, columns = [`Res.` (Example values: [loss, win, draw]), `Record` (Example values: [14-5-1, 14-4-1, 14-3-1]), `Opponent` (Example values: [thomas hytten, evan dunham, samy schiavo]), `Method` (Example values: [ko (punch), tko (punches), submission (rear naked choke)]), `Event` (Example values: [vfc - vision fighting championship 2, ufc 95, ufc 89]), `Round` (Example values: [1, 3, 2]), `Location` (Example values: [sweden, england, british columbia , canada])]\n", + "ori_query": "select `round` from `2-17440650-2` where `location` = 'finland' and `method` = 'draw'", + "amb_query": "SELECT \"round\" FROM \"2-17440650-2\" WHERE location IN ('finland country', 'suomi', 'finland') AND \"method\" = 'draw'" + }, + { + "db_id": "2-15143976-2", + "question": "Which Format has a Region of europe, and a Catalog of kem 072?", + "evidence": "", + "schema_text_wo_content": "Table 2-15143976-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15143976-2, columns = [`Region` (Example values: [european territory, united states, america]), `Date` (Example values: [march 31, 2008, april 1, 2008, may 24, 2008]), `Label` (Example values: [kemado records, impedance records, toy's factory records]), `Format` (Example values: [cd album, lp album]), `Catalog` (Example values: [kem 073, kem 071, kem 072])]\n", + "ori_query": "select `format` from `2-15143976-2` where `region` = 'europe' and `catalog` = 'kem 072'", + "amb_query": "SELECT \"format\" FROM \"2-15143976-2\" WHERE region IN ('european territory', 'europe') AND \"catalog\" = 'kem 072'" + }, + { + "db_id": "2-15143976-2", + "question": "Which Format has a Region of united states, and a Catalog of kem 072?", + "evidence": "", + "schema_text_wo_content": "Table 2-15143976-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15143976-2, columns = [`Region` (Example values: [european territory, united states, america]), `Date` (Example values: [march 31, 2008, april 1, 2008, may 24, 2008]), `Label` (Example values: [kemado records, impedance records, toy's factory records]), `Format` (Example values: [cd album, lp album]), `Catalog` (Example values: [kem 073, kem 071, kem 072])]\n", + "ori_query": "select `format` from `2-15143976-2` where `region` = 'united states' and `catalog` = 'kem 072'", + "amb_query": "SELECT \"format\" FROM \"2-15143976-2\" WHERE region IN ('america', 'united states') AND \"catalog\" = 'kem 072'" + }, + { + "db_id": "2-15143976-2", + "question": "Which Label has a Region of united states, and a Format of lp album?", + "evidence": "", + "schema_text_wo_content": "Table 2-15143976-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-15143976-2, columns = [`Region` (Example values: [european territory, united states, america]), `Date` (Example values: [march 31, 2008, april 1, 2008, may 24, 2008]), `Label` (Example values: [kemado records, impedance records, toy's factory records]), `Format` (Example values: [cd album, lp album]), `Catalog` (Example values: [kem 073, kem 071, kem 072])]\n", + "ori_query": "select `label` from `2-15143976-2` where `region` = 'united states' and `format` = 'lp album'", + "amb_query": "SELECT \"label\" FROM \"2-15143976-2\" WHERE region IN ('america', 'united states') AND \"format\" = 'lp album'" + }, + { + "db_id": "2-17035268-2", + "question": "Which Rank has a Nation of china, and a Silver larger than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-17035268-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17035268-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, russia, republic of korea]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [0.0, 1.0]), `Total` (Example values: [2.0, 1.0, 3.0])]\n", + "ori_query": "select sum(`rank`) from `2-17035268-2` where `nation` = 'china' and `silver` > 0", + "amb_query": "SELECT SUM(\"rank\") FROM \"2-17035268-2\" WHERE nation IN ('china', 'china, asia') AND \"silver\" > 0" + }, + { + "db_id": "2-17035268-2", + "question": "Which Rank has a Nation of south korea, and a Silver larger than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-17035268-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-17035268-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [united states, russia, republic of korea]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [0.0, 1.0]), `Total` (Example values: [2.0, 1.0, 3.0])]\n", + "ori_query": "select sum(`rank`) from `2-17035268-2` where `nation` = 'south korea' and `silver` > 0", + "amb_query": "SELECT SUM(\"rank\") FROM \"2-17035268-2\" WHERE nation IN ('south korea', 'republic of korea') AND \"silver\" > 0" + }, + { + "db_id": "2-14094649-10", + "question": "what is the name of china head quarters", + "evidence": "", + "schema_text_wo_content": "Table 2-14094649-10, columns = [Rank, Name, Headquarters, Primary industry, Market value ( USD million)]\n", + "schema_text_with_content": "Table 2-14094649-10, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [exxon mobil, general electric, microsoft]), `Headquarters` (Example values: [united states, russia, japan]), `Primary industry` (Example values: [oil and gas, conglomerate, software industry]), `Market value ( USD million)` (Example values: [429,567, 363,611, 272,912])]\n", + "ori_query": "select `name` from `2-14094649-10` where `headquarters` = 'china'", + "amb_query": "SELECT \"name\" FROM \"2-14094649-10\" WHERE headquarters IN ('china', 'china, asia')" + }, + { + "db_id": "2-14094649-10", + "question": "what is the name of the netherlands head quarters", + "evidence": "", + "schema_text_wo_content": "Table 2-14094649-10, columns = [Rank, Name, Headquarters, Primary industry, Market value ( USD million)]\n", + "schema_text_with_content": "Table 2-14094649-10, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [exxon mobil, general electric, microsoft]), `Headquarters` (Example values: [united states, russia, japan]), `Primary industry` (Example values: [oil and gas, conglomerate, software industry]), `Market value ( USD million)` (Example values: [429,567, 363,611, 272,912])]\n", + "ori_query": "select `name` from `2-14094649-10` where `headquarters` = 'the netherlands'", + "amb_query": "SELECT \"name\" FROM \"2-14094649-10\" WHERE headquarters IN ('the netherlands', 'dutch republic')" + }, + { + "db_id": "2-15362194-1", + "question": "What was the most total medals awarded to germany?", + "evidence": "", + "schema_text_wo_content": "Table 2-15362194-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15362194-1, columns = [`Rank` (Example values: [1, 2, 4]), `Nation` (Example values: [japan, ukraine, united states]), `Gold` (Example values: [2.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [5.0, 2.0, 3.0])]\n", + "ori_query": "select max(`total`) from `2-15362194-1` where `nation` = 'germany'", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15362194-1\" WHERE nation IN ('germany', 'german republic')" + }, + { + "db_id": "2-15362194-1", + "question": "What was the most total medals awarded to Poland?", + "evidence": "", + "schema_text_wo_content": "Table 2-15362194-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15362194-1, columns = [`Rank` (Example values: [1, 2, 4]), `Nation` (Example values: [japan, ukraine, united states]), `Gold` (Example values: [2.0, 1.0, 0.0]), `Silver` (Example values: [1.0, 0.0, 2.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [5.0, 2.0, 3.0])]\n", + "ori_query": "select max(`total`) from `2-15362194-1` where `nation` = 'poland'", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15362194-1\" WHERE nation IN ('republic of poland', 'poland')" + }, + { + "db_id": "2-11803648-12", + "question": "What club team is the switzerland player with an overall pick smaller than 142 from?", + "evidence": "", + "schema_text_wo_content": "Table 2-11803648-12, columns = [Round, Overall, Player, Nationality, Club team]\n", + "schema_text_with_content": "Table 2-11803648-12, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Overall` (Example values: [29.0, 67.0, 100.0]), `Player` (Example values: [patrick eaves, igor mirnov, philippe seydoux]), `Nationality` (Example values: [us, russia, switzerland, europe]), `Club team` (Example values: [boston college (ncaa), moscow dynamo (russia), kloten flyers (switzerland)])]\n", + "ori_query": "select `club team` from `2-11803648-12` where `nationality` = 'switzerland' and `overall` < 142", + "amb_query": "SELECT \"club team\" FROM \"2-11803648-12\" WHERE nationality IN ('switzerland', 'switzerland, europe') AND \"overall\" < 142" + }, + { + "db_id": "2-11803648-12", + "question": "What club team is the United States player with an overall pick smaller than 142 from?", + "evidence": "", + "schema_text_wo_content": "Table 2-11803648-12, columns = [Round, Overall, Player, Nationality, Club team]\n", + "schema_text_with_content": "Table 2-11803648-12, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Overall` (Example values: [29.0, 67.0, 100.0]), `Player` (Example values: [patrick eaves, igor mirnov, philippe seydoux]), `Nationality` (Example values: [us, russia, switzerland, europe]), `Club team` (Example values: [boston college (ncaa), moscow dynamo (russia), kloten flyers (switzerland)])]\n", + "ori_query": "select `club team` from `2-11803648-12` where `nationality` = 'united states' and `overall` < 142", + "amb_query": "SELECT \"club team\" FROM \"2-11803648-12\" WHERE nationality IN ('us', 'united states') AND \"overall\" < 142" + }, + { + "db_id": "2-11356674-6", + "question": "What is the full amount of Total for switzerland when the number of gold is less than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-11356674-6, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11356674-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [germany, switzerland, europe, united states]), `Gold` (Example values: [5.0, 0.0]), `Silver` (Example values: [2.0, 1.0, 0.0]), `Bronze` (Example values: [0.0, 3.0, 2.0]), `Total` (Example values: [7.0, 4.0, 3.0])]\n", + "ori_query": "select sum(`total`) from `2-11356674-6` where `nation` = 'switzerland' and `gold` < 0", + "amb_query": "SELECT SUM(\"total\") FROM \"2-11356674-6\" WHERE nation IN ('switzerland', 'switzerland, europe') AND \"gold\" < 0" + }, + { + "db_id": "2-11356674-6", + "question": "What is the full amount of Total for Austria when the number of gold is less than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-11356674-6, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11356674-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [germany, switzerland, europe, united states]), `Gold` (Example values: [5.0, 0.0]), `Silver` (Example values: [2.0, 1.0, 0.0]), `Bronze` (Example values: [0.0, 3.0, 2.0]), `Total` (Example values: [7.0, 4.0, 3.0])]\n", + "ori_query": "select sum(`total`) from `2-11356674-6` where `nation` = 'austria' and `gold` < 0", + "amb_query": "SELECT SUM(\"total\") FROM \"2-11356674-6\" WHERE nation IN ('austrian republic', 'austria') AND \"gold\" < 0" + }, + { + "db_id": "2-16066729-1", + "question": "What is the height of the player from riviera beach, fl?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `height` from `2-16066729-1` where `home town` = 'riviera beach, fl'", + "amb_query": "SELECT \"height\" FROM \"2-16066729-1\" WHERE home town IN ('riviera beach, fl', 'riviera beach, florida')" + }, + { + "db_id": "2-16066729-1", + "question": "What is the height of the player from sanford, nc?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `height` from `2-16066729-1` where `home town` = 'sanford, nc'", + "amb_query": "SELECT \"height\" FROM \"2-16066729-1\" WHERE home town IN ('sanford, nc, united states', 'sanford, nc')" + }, + { + "db_id": "2-16066729-1", + "question": "What position does the 5-8 player from cullowhee, nc play?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `position` from `2-16066729-1` where `height` = '5-8' and `home town` = 'cullowhee, nc'", + "amb_query": "SELECT \"position\" FROM \"2-16066729-1\" WHERE \"height\" = '5-8' AND home town IN ('cullowhee township, north carolina', 'cullowhee, nc')" + }, + { + "db_id": "2-16066729-1", + "question": "In what year of school is the player from kelford, nc?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `year` from `2-16066729-1` where `home town` = 'kelford, nc'", + "amb_query": "SELECT \"year\" FROM \"2-16066729-1\" WHERE home town IN ('kelford, north carolina, usa', 'kelford, nc')" + }, + { + "db_id": "2-16066729-1", + "question": "What is the height of the player from Las Vegas, NV?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `height` from `2-16066729-1` where `home town` = 'las vegas, nv'", + "amb_query": "SELECT \"height\" FROM \"2-16066729-1\" WHERE home town IN ('las vegas, nevada', 'las vegas, nv')" + }, + { + "db_id": "2-16066729-1", + "question": "What is the name of the guard from Cary, NC?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `name` from `2-16066729-1` where `position` = 'guard' and `home town` = 'cary, nc'", + "amb_query": "SELECT \"name\" FROM \"2-16066729-1\" WHERE position IN ('guard', 'basketball guard', 'defensive guard') AND home town IN ('cary, nc', 'town of cary, nc')" + }, + { + "db_id": "2-16066729-1", + "question": "What position does the 5-8 player from Grottoes, VA play?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `position` from `2-16066729-1` where `height` = '5-8' and `home town` = 'grottoes, va'", + "amb_query": "SELECT \"position\" FROM \"2-16066729-1\" WHERE \"height\" = '5-8' AND home town IN ('grottoes, va', 'town of grottoes, virginia')" + }, + { + "db_id": "2-16066729-1", + "question": "In what year of school is the player from Fayetteville, NC?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `year` from `2-16066729-1` where `home town` = 'fayetteville, nc'", + "amb_query": "SELECT \"year\" FROM \"2-16066729-1\" WHERE home town IN ('fayetteville, nc', 'fayetteville, north carolina, united states')" + }, + { + "db_id": "2-16066729-1", + "question": "In what year of school is the forward Iman McFarland?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `year` from `2-16066729-1` where `position` = 'forward' and `name` = 'iman mcfarland'", + "amb_query": "SELECT \"year\" FROM \"2-16066729-1\" WHERE position IN ('forward', 'forward player', 'forward position') AND \"name\" = 'iman mcfarland'" + }, + { + "db_id": "2-16066729-1", + "question": "How tall is the freshman guard Cetera Degraffenreid?", + "evidence": "", + "schema_text_wo_content": "Table 2-16066729-1, columns = [Name, Height, Position, Year, Home Town]\n", + "schema_text_with_content": "Table 2-16066729-1, columns = [`Name` (Example values: [erlana larkins, trinity bursey, laura barry]), `Height` (Example values: [6-1, 5-10, 5-8]), `Position` (Example values: [forward position, basketball guard, defensive guard]), `Year` (Example values: [senior, sophomore, freshman year]), `Home Town` (Example values: [riviera beach, florida, sanford, nc, united states, town of cary, nc])]\n", + "ori_query": "select `height` from `2-16066729-1` where `position` = 'guard' and `year` = 'freshman' and `name` = 'cetera degraffenreid'", + "amb_query": "SELECT \"height\" FROM \"2-16066729-1\" WHERE position IN ('guard', 'basketball guard', 'defensive guard') AND year IN ('freshman', 'freshman year') AND \"name\" = 'cetera degraffenreid'" + }, + { + "db_id": "2-13909437-6", + "question": "What was their record when they were at dallas?", + "evidence": "", + "schema_text_wo_content": "Table 2-13909437-6, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-13909437-6, columns = [`Date` (Example values: [february 1, february 2, february 4]), `Visitor` (Example values: [detroit, dallas, st. louis]), `Score` (Example values: [4 – 1, 3 – 4, 1 – 1]), `Home` (Example values: [st. louis, detroit, pittsburgh, pennsylvania]), `Record` (Example values: [23–17–9, 24–17–9, 24–17–10])]\n", + "ori_query": "select `record` from `2-13909437-6` where `home` = 'dallas'", + "amb_query": "SELECT \"record\" FROM \"2-13909437-6\" WHERE home IN ('dallas', 'dallas county, texas')" + }, + { + "db_id": "2-13909437-6", + "question": "What was their record when they were at Pittsburgh?", + "evidence": "", + "schema_text_wo_content": "Table 2-13909437-6, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-13909437-6, columns = [`Date` (Example values: [february 1, february 2, february 4]), `Visitor` (Example values: [detroit, dallas, st. louis]), `Score` (Example values: [4 – 1, 3 – 4, 1 – 1]), `Home` (Example values: [st. louis, detroit, pittsburgh, pennsylvania]), `Record` (Example values: [23–17–9, 24–17–9, 24–17–10])]\n", + "ori_query": "select `record` from `2-13909437-6` where `home` = 'pittsburgh'", + "amb_query": "SELECT \"record\" FROM \"2-13909437-6\" WHERE home IN ('pittsburgh, pennsylvania', 'pittsburgh')" + }, + { + "db_id": "2-11801035-5", + "question": "What is the score when dallas is at home?", + "evidence": "", + "schema_text_wo_content": "Table 2-11801035-5, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11801035-5, columns = [`Date` (Example values: [december 1, december 4, december 6]), `Visitor` (Example values: [nashville, detroit, montreal]), `Score` (Example values: [5 – 4, 4 – 1, 4 – 2]), `Home` (Example values: [montreal, boston, city of philadelphia]), `Decision` (Example values: [huet, price]), `Attendance` (Example values: [21,273, 14,977, 19,322]), `Record` (Example values: [13–9–4, 13–10–4, 14–10–4])]\n", + "ori_query": "select `score` from `2-11801035-5` where `home` = 'dallas'", + "amb_query": "SELECT \"score\" FROM \"2-11801035-5\" WHERE home IN ('dallas', 'dallas-fort worth area')" + }, + { + "db_id": "2-11801035-5", + "question": "What is the score when Philadelphia is at home?", + "evidence": "", + "schema_text_wo_content": "Table 2-11801035-5, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11801035-5, columns = [`Date` (Example values: [december 1, december 4, december 6]), `Visitor` (Example values: [nashville, detroit, montreal]), `Score` (Example values: [5 – 4, 4 – 1, 4 – 2]), `Home` (Example values: [montreal, boston, city of philadelphia]), `Decision` (Example values: [huet, price]), `Attendance` (Example values: [21,273, 14,977, 19,322]), `Record` (Example values: [13–9–4, 13–10–4, 14–10–4])]\n", + "ori_query": "select `score` from `2-11801035-5` where `home` = 'philadelphia'", + "amb_query": "SELECT \"score\" FROM \"2-11801035-5\" WHERE home IN ('philadelphia', 'city of philadelphia')" + }, + { + "db_id": "2-17239112-7", + "question": "What is the Score of the philadelphia Home game on March 3 with 61 Points?", + "evidence": "", + "schema_text_wo_content": "Table 2-17239112-7, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17239112-7, columns = [`Date` (Example values: [march 3, march 4, march 7]), `Visitor` (Example values: [california, minnesota, pittsburgh]), `Score` (Example values: [2–1, 5–2, 4–10]), `Home` (Example values: [pittsburgh, pennsylvania, minnesota, pittsburgh metropolitan area]), `Attendance` (Example values: [11,688, 12,624, 15,273]), `Record` (Example values: [27–31–7, 27–32–7, 27–33–7]), `Points` (Example values: [61.0, 63.0, 64.0])]\n", + "ori_query": "select `score` from `2-17239112-7` where `home` = 'philadelphia' and `points` = 61 and `date` = 'march 3'", + "amb_query": "SELECT \"score\" FROM \"2-17239112-7\" WHERE home IN ('philadelphia', 'city of philadelphia') AND \"points\" = 61 AND \"date\" = 'march 3'" + }, + { + "db_id": "2-17239112-7", + "question": "What is the Date of the game in st. louis?", + "evidence": "", + "schema_text_wo_content": "Table 2-17239112-7, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17239112-7, columns = [`Date` (Example values: [march 3, march 4, march 7]), `Visitor` (Example values: [california, minnesota, pittsburgh]), `Score` (Example values: [2–1, 5–2, 4–10]), `Home` (Example values: [pittsburgh, pennsylvania, minnesota, pittsburgh metropolitan area]), `Attendance` (Example values: [11,688, 12,624, 15,273]), `Record` (Example values: [27–31–7, 27–32–7, 27–33–7]), `Points` (Example values: [61.0, 63.0, 64.0])]\n", + "ori_query": "select `date` from `2-17239112-7` where `home` = 'st. louis'", + "amb_query": "SELECT \"date\" FROM \"2-17239112-7\" WHERE home IN ('st. louis', 'city of st. louis')" + }, + { + "db_id": "2-17239112-7", + "question": "What is the Score of the Pittsburgh Home game on March 3 with 61 Points?", + "evidence": "", + "schema_text_wo_content": "Table 2-17239112-7, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17239112-7, columns = [`Date` (Example values: [march 3, march 4, march 7]), `Visitor` (Example values: [california, minnesota, pittsburgh]), `Score` (Example values: [2–1, 5–2, 4–10]), `Home` (Example values: [pittsburgh, pennsylvania, minnesota, pittsburgh metropolitan area]), `Attendance` (Example values: [11,688, 12,624, 15,273]), `Record` (Example values: [27–31–7, 27–32–7, 27–33–7]), `Points` (Example values: [61.0, 63.0, 64.0])]\n", + "ori_query": "select `score` from `2-17239112-7` where `home` = 'pittsburgh' and `points` = 61 and `date` = 'march 3'", + "amb_query": "SELECT \"score\" FROM \"2-17239112-7\" WHERE home IN ('pittsburgh, pennsylvania', 'pittsburgh', 'pittsburgh metropolitan area') AND \"points\" = 61 AND \"date\" = 'march 3'" + }, + { + "db_id": "2-17239112-7", + "question": "What is the Date of the game in Vancouver?", + "evidence": "", + "schema_text_wo_content": "Table 2-17239112-7, columns = [Date, Visitor, Score, Home, Attendance, Record, Points]\n", + "schema_text_with_content": "Table 2-17239112-7, columns = [`Date` (Example values: [march 3, march 4, march 7]), `Visitor` (Example values: [california, minnesota, pittsburgh]), `Score` (Example values: [2–1, 5–2, 4–10]), `Home` (Example values: [pittsburgh, pennsylvania, minnesota, pittsburgh metropolitan area]), `Attendance` (Example values: [11,688, 12,624, 15,273]), `Record` (Example values: [27–31–7, 27–32–7, 27–33–7]), `Points` (Example values: [61.0, 63.0, 64.0])]\n", + "ori_query": "select `date` from `2-17239112-7` where `home` = 'vancouver'", + "amb_query": "SELECT \"date\" FROM \"2-17239112-7\" WHERE home IN ('vancouver', 'city of vancouver')" + }, + { + "db_id": "2-14159731-6", + "question": "What is the date of the game with more than 16,015 in attendance with a philadelphia Visitor?", + "evidence": "", + "schema_text_wo_content": "Table 2-14159731-6, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-14159731-6, columns = [`Date` (Example values: [january 2, january 5, january 6]), `Visitor` (Example values: [philadelphia city, philadelphia, pennsylvania, philadelphia]), `Score` (Example values: [1 – 0, 4 – 3, 3 – 1]), `Home` (Example values: [boston, ny rangers, washington]), `Decision` (Example values: [niittymaki, esche]), `Attendance` (Example values: [16,980, 18,200, 16,876]), `Record` (Example values: [25–8–6, 26–8–6, 27–8–6])]\n", + "ori_query": "select `date` from `2-14159731-6` where `attendance` > 16,015 and `visitor` = 'philadelphia'", + "amb_query": "SELECT \"date\" FROM \"2-17239112-7\" WHERE home IN ('vancouver', 'city of vancouver')" + }, + { + "db_id": "2-14159731-6", + "question": "What is the date of the game with more than 16,015 in attendance with a Colorado Visitor?", + "evidence": "", + "schema_text_wo_content": "Table 2-14159731-6, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-14159731-6, columns = [`Date` (Example values: [january 2, january 5, january 6]), `Visitor` (Example values: [philadelphia city, philadelphia, pennsylvania, philadelphia]), `Score` (Example values: [1 – 0, 4 – 3, 3 – 1]), `Home` (Example values: [boston, ny rangers, washington]), `Decision` (Example values: [niittymaki, esche]), `Attendance` (Example values: [16,980, 18,200, 16,876]), `Record` (Example values: [25–8–6, 26–8–6, 27–8–6])]\n", + "ori_query": "select `date` from `2-14159731-6` where `attendance` > 16,015 and `visitor` = 'colorado'", + "amb_query": "SELECT \"date\" FROM \"2-17239112-7\" WHERE home IN ('vancouver', 'city of vancouver')" + }, + { + "db_id": "2-13908184-4", + "question": "What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of toronto?", + "evidence": "", + "schema_text_wo_content": "Table 2-13908184-4, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-13908184-4, columns = [`Date` (Example values: [december 1, december 5, december 6]), `Visitor` (Example values: [kansas city, chicago, philadelphia]), `Score` (Example values: [0 – 10, 2 – 3, 3 – 3]), `Home` (Example values: [philadelphia, kansas city, atlanta]), `Decision` (Example values: [parent, stephenson]), `Attendance` (Example values: [17,007, 8,971, 15,141]), `Record` (Example values: [15–6–3, 16–6–3, 16–6–4])]\n", + "ori_query": "select `score` from `2-13908184-4` where `decision` = 'parent' and `home` = 'philadelphia' and `visitor` = 'toronto'", + "amb_query": "SELECT \"score\" FROM \"2-13908184-4\" WHERE \"decision\" = 'parent' AND \"home\" = 'philadelphia' AND visitor IN ('toronto', 'toronto, ontario')" + }, + { + "db_id": "2-13908184-4", + "question": "What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of Pittsburgh?", + "evidence": "", + "schema_text_wo_content": "Table 2-13908184-4, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-13908184-4, columns = [`Date` (Example values: [december 1, december 5, december 6]), `Visitor` (Example values: [kansas city, chicago, philadelphia]), `Score` (Example values: [0 – 10, 2 – 3, 3 – 3]), `Home` (Example values: [philadelphia, kansas city, atlanta]), `Decision` (Example values: [parent, stephenson]), `Attendance` (Example values: [17,007, 8,971, 15,141]), `Record` (Example values: [15–6–3, 16–6–3, 16–6–4])]\n", + "ori_query": "select `score` from `2-13908184-4` where `decision` = 'parent' and `home` = 'philadelphia' and `visitor` = 'pittsburgh'", + "amb_query": "SELECT \"score\" FROM \"2-13908184-4\" WHERE \"decision\" = 'parent' AND \"home\" = 'philadelphia' AND visitor IN ('pittsburgh, pennsylvania', 'pittsburgh')" + }, + { + "db_id": "2-14783550-12", + "question": "What's the lowest Year with the Location of busan?", + "evidence": "", + "schema_text_wo_content": "Table 2-14783550-12, columns = [Year, Location, Gold, Silver, Bronze]\n", + "schema_text_with_content": "Table 2-14783550-12, columns = [`Year` (Example values: [1990.0, 1994.0, 1998.0]), `Location` (Example values: [beijing, hiroshima, bangkok, thailand]), `Gold` (Example values: [wang ping, zhuang hui, liu qinghua]), `Silver` (Example values: [peng ying, momi matsumura, nguyen thi thuy hien]), `Bronze` (Example values: [ng siu ching, chiew hui yan, yuri kaminiwa])]\n", + "ori_query": "select min(`year`) from `2-14783550-12` where `location` = 'busan'", + "amb_query": "SELECT MIN(\"year\") FROM \"2-14783550-12\" WHERE location IN ('busan', 'busan, republic of korea')" + }, + { + "db_id": "2-14783550-12", + "question": "What's the lowest Year with the Location of Bangkok?", + "evidence": "", + "schema_text_wo_content": "Table 2-14783550-12, columns = [Year, Location, Gold, Silver, Bronze]\n", + "schema_text_with_content": "Table 2-14783550-12, columns = [`Year` (Example values: [1990.0, 1994.0, 1998.0]), `Location` (Example values: [beijing, hiroshima, bangkok, thailand]), `Gold` (Example values: [wang ping, zhuang hui, liu qinghua]), `Silver` (Example values: [peng ying, momi matsumura, nguyen thi thuy hien]), `Bronze` (Example values: [ng siu ching, chiew hui yan, yuri kaminiwa])]\n", + "ori_query": "select min(`year`) from `2-14783550-12` where `location` = 'bangkok'", + "amb_query": "SELECT MIN(\"year\") FROM \"2-14783550-12\" WHERE location IN ('bangkok, thailand', 'bangkok')" + }, + { + "db_id": "2-14783550-12", + "question": "What Silver has the Location of Guangzhou?", + "evidence": "", + "schema_text_wo_content": "Table 2-14783550-12, columns = [Year, Location, Gold, Silver, Bronze]\n", + "schema_text_with_content": "Table 2-14783550-12, columns = [`Year` (Example values: [1990.0, 1994.0, 1998.0]), `Location` (Example values: [beijing, hiroshima, bangkok, thailand]), `Gold` (Example values: [wang ping, zhuang hui, liu qinghua]), `Silver` (Example values: [peng ying, momi matsumura, nguyen thi thuy hien]), `Bronze` (Example values: [ng siu ching, chiew hui yan, yuri kaminiwa])]\n", + "ori_query": "select `silver` from `2-14783550-12` where `location` = 'guangzhou'", + "amb_query": "SELECT \"silver\" FROM \"2-14783550-12\" WHERE location IN ('guangzhou', 'canton')" + }, + { + "db_id": "2-13986492-14", + "question": "What is seymour's mascot?", + "evidence": "", + "schema_text_wo_content": "Table 2-13986492-14, columns = [School, Location, Mascot, Enrollment, IHSAA Class, IHSAA Football Class, County]\n", + "schema_text_with_content": "Table 2-13986492-14, columns = [`School` (Example values: [bedford n. lawrence, columbus east, floyd central]), `Location` (Example values: [bedford town, columbus, floyds knobs]), `Mascot` (Example values: [stars, olympians, highlanders]), `Enrollment` (Example values: [1,662, 1,559, 1,650]), `IHSAA Class` (Example values: [aaaa, aaa]), `IHSAA Football Class` (Example values: [aaaaa, aaaa]), `County` (Example values: [47 lawrence, 03 bartholomew, 22 floyd])]\n", + "ori_query": "select `mascot` from `2-13986492-14` where `location` = 'seymour'", + "amb_query": "SELECT \"mascot\" FROM \"2-13986492-14\" WHERE location IN ('seymour', 'seymour, indiana')" + }, + { + "db_id": "2-13986492-14", + "question": "What is bedford's mascot?", + "evidence": "", + "schema_text_wo_content": "Table 2-13986492-14, columns = [School, Location, Mascot, Enrollment, IHSAA Class, IHSAA Football Class, County]\n", + "schema_text_with_content": "Table 2-13986492-14, columns = [`School` (Example values: [bedford n. lawrence, columbus east, floyd central]), `Location` (Example values: [bedford town, columbus, floyds knobs]), `Mascot` (Example values: [stars, olympians, highlanders]), `Enrollment` (Example values: [1,662, 1,559, 1,650]), `IHSAA Class` (Example values: [aaaa, aaa]), `IHSAA Football Class` (Example values: [aaaaa, aaaa]), `County` (Example values: [47 lawrence, 03 bartholomew, 22 floyd])]\n", + "ori_query": "select `mascot` from `2-13986492-14` where `location` = 'bedford'", + "amb_query": "SELECT \"mascot\" FROM \"2-13986492-14\" WHERE location IN ('bedford', 'bedford town')" + }, + { + "db_id": "2-14611430-1", + "question": "What is the score of the B.C. Open in connecticut?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611430-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611430-1, columns = [`Date` (Example values: [jan 10, jan 17, jan 24]), `Tournament` (Example values: [mercedes championships, sony open in hawaii, bob hope chrysler classic]), `Location` (Example values: [hawaii, california, arizona]), `Winner` (Example values: [david duval (8), jeff sluman (4), david duval (9)]), `Score` (Example values: [266 (–26), 271 (–9), 334 (–26)]), `1st prize ( $ )` (Example values: [468,000, 540,000, 504,000])]\n", + "ori_query": "select `score` from `2-14611430-1` where `location` = 'connecticut' and `tournament` = 'b.c. open'", + "amb_query": "SELECT \"score\" FROM \"2-14611430-1\" WHERE location IN ('connecticut', 'ct, america') AND \"tournament\" = 'b.c. open'" + }, + { + "db_id": "2-14611430-1", + "question": "What is the score of the B.C. Open in south carolina?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611430-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611430-1, columns = [`Date` (Example values: [jan 10, jan 17, jan 24]), `Tournament` (Example values: [mercedes championships, sony open in hawaii, bob hope chrysler classic]), `Location` (Example values: [hawaii, california, arizona]), `Winner` (Example values: [david duval (8), jeff sluman (4), david duval (9)]), `Score` (Example values: [266 (–26), 271 (–9), 334 (–26)]), `1st prize ( $ )` (Example values: [468,000, 540,000, 504,000])]\n", + "ori_query": "select `score` from `2-14611430-1` where `location` = 'south carolina' and `tournament` = 'b.c. open'", + "amb_query": "SELECT \"score\" FROM \"2-14611430-1\" WHERE location IN ('south carolina', 'south carolina, usa') AND \"tournament\" = 'b.c. open'" + }, + { + "db_id": "2-14611430-1", + "question": "Who is the winner of the tournament in mississippi on Oct 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611430-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611430-1, columns = [`Date` (Example values: [jan 10, jan 17, jan 24]), `Tournament` (Example values: [mercedes championships, sony open in hawaii, bob hope chrysler classic]), `Location` (Example values: [hawaii, california, arizona]), `Winner` (Example values: [david duval (8), jeff sluman (4), david duval (9)]), `Score` (Example values: [266 (–26), 271 (–9), 334 (–26)]), `1st prize ( $ )` (Example values: [468,000, 540,000, 504,000])]\n", + "ori_query": "select `winner` from `2-14611430-1` where `location` = 'mississippi' and `date` = 'oct 3'", + "amb_query": "SELECT \"winner\" FROM \"2-14611430-1\" WHERE location IN ('mississippi', 'mississippi river state') AND \"date\" = 'oct 3'" + }, + { + "db_id": "2-14611430-1", + "question": "Who is the winner of the tournament in maryland on Oct 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611430-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611430-1, columns = [`Date` (Example values: [jan 10, jan 17, jan 24]), `Tournament` (Example values: [mercedes championships, sony open in hawaii, bob hope chrysler classic]), `Location` (Example values: [hawaii, california, arizona]), `Winner` (Example values: [david duval (8), jeff sluman (4), david duval (9)]), `Score` (Example values: [266 (–26), 271 (–9), 334 (–26)]), `1st prize ( $ )` (Example values: [468,000, 540,000, 504,000])]\n", + "ori_query": "select `winner` from `2-14611430-1` where `location` = 'maryland' and `date` = 'oct 3'", + "amb_query": "SELECT \"winner\" FROM \"2-14611430-1\" WHERE location IN ('maryland', 'md') AND \"date\" = 'oct 3'" + }, + { + "db_id": "2-14611430-1", + "question": "What is the score of the B.C. Open in New York?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611430-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611430-1, columns = [`Date` (Example values: [jan 10, jan 17, jan 24]), `Tournament` (Example values: [mercedes championships, sony open in hawaii, bob hope chrysler classic]), `Location` (Example values: [hawaii, california, arizona]), `Winner` (Example values: [david duval (8), jeff sluman (4), david duval (9)]), `Score` (Example values: [266 (–26), 271 (–9), 334 (–26)]), `1st prize ( $ )` (Example values: [468,000, 540,000, 504,000])]\n", + "ori_query": "select `score` from `2-14611430-1` where `location` = 'new york' and `tournament` = 'b.c. open'", + "amb_query": "SELECT \"score\" FROM \"2-14611430-1\" WHERE location IN ('new york', 'nyc') AND \"tournament\" = 'b.c. open'" + }, + { + "db_id": "2-14611430-1", + "question": "Who is the winner of the tournament in Georgia on Oct 3?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611430-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611430-1, columns = [`Date` (Example values: [jan 10, jan 17, jan 24]), `Tournament` (Example values: [mercedes championships, sony open in hawaii, bob hope chrysler classic]), `Location` (Example values: [hawaii, california, arizona]), `Winner` (Example values: [david duval (8), jeff sluman (4), david duval (9)]), `Score` (Example values: [266 (–26), 271 (–9), 334 (–26)]), `1st prize ( $ )` (Example values: [468,000, 540,000, 504,000])]\n", + "ori_query": "select `winner` from `2-14611430-1` where `location` = 'georgia' and `date` = 'oct 3'", + "amb_query": "SELECT \"winner\" FROM \"2-14611430-1\" WHERE location IN ('state of georgia', 'georgia state', 'georgia') AND \"date\" = 'oct 3'" + }, + { + "db_id": "2-14611491-1", + "question": "What tournament was located in south carolina?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611491-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611491-1, columns = [`Date` (Example values: [jan 12, jan 19, jan 26]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, usa, state of california, arizona]), `Winner` (Example values: [tiger woods (3), john cook (9), steve jones (6)]), `Score` (Example values: [202 (–14), 327 (–33), 258 (–26)]), `1st prize ( $ )` (Example values: [216,000, 270,000, 342,000])]\n", + "ori_query": "select `tournament` from `2-14611491-1` where `location` = 'south carolina'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611491-1\" WHERE location IN ('south carolina', 'south carolina, united states')" + }, + { + "db_id": "2-14611491-1", + "question": "What tournament was located in california?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611491-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611491-1, columns = [`Date` (Example values: [jan 12, jan 19, jan 26]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, usa, state of california, arizona]), `Winner` (Example values: [tiger woods (3), john cook (9), steve jones (6)]), `Score` (Example values: [202 (–14), 327 (–33), 258 (–26)]), `1st prize ( $ )` (Example values: [216,000, 270,000, 342,000])]\n", + "ori_query": "select `tournament` from `2-14611491-1` where `location` = 'california'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611491-1\" WHERE location IN ('california, the united states', 'california', 'california, usa', 'state of california')" + }, + { + "db_id": "2-14611491-1", + "question": "What tournament was located in ohio?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611491-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611491-1, columns = [`Date` (Example values: [jan 12, jan 19, jan 26]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, usa, state of california, arizona]), `Winner` (Example values: [tiger woods (3), john cook (9), steve jones (6)]), `Score` (Example values: [202 (–14), 327 (–33), 258 (–26)]), `1st prize ( $ )` (Example values: [216,000, 270,000, 342,000])]\n", + "ori_query": "select `tournament` from `2-14611491-1` where `location` = 'ohio'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611491-1\" WHERE location IN ('state of ohio', 'ohio')" + }, + { + "db_id": "2-14611491-1", + "question": "What tournament was located in Colorado?", + "evidence": "", + "schema_text_wo_content": "Table 2-14611491-1, columns = [Date, Tournament, Location, Winner, Score, 1st prize ( $ )]\n", + "schema_text_with_content": "Table 2-14611491-1, columns = [`Date` (Example values: [jan 12, jan 19, jan 26]), `Tournament` (Example values: [mercedes championships, bob hope chrysler classic, phoenix open]), `Location` (Example values: [california, usa, state of california, arizona]), `Winner` (Example values: [tiger woods (3), john cook (9), steve jones (6)]), `Score` (Example values: [202 (–14), 327 (–33), 258 (–26)]), `1st prize ( $ )` (Example values: [216,000, 270,000, 342,000])]\n", + "ori_query": "select `tournament` from `2-14611491-1` where `location` = 'colorado'", + "amb_query": "SELECT \"tournament\" FROM \"2-14611491-1\" WHERE location IN ('colorado', 'colorado, united states')" + }, + { + "db_id": "2-12601141-1", + "question": "What is the lifespan of the democratic party in mississippi, for which Terence J. Quinn is a representative?", + "evidence": "", + "schema_text_wo_content": "Table 2-12601141-1, columns = [Representative, Years, State, Party, Lifespan]\n", + "schema_text_with_content": "Table 2-12601141-1, columns = [`Representative` (Example values: [john a. quackenbush, james minor quarles, julian m. quarles]), `Years` (Example values: [1889–1893, 1859–1861, 1899–1901]), `State` (Example values: [new york city, tennessee, virginia]), `Party` (Example values: [republican, oppositionist, democratic]), `Lifespan` (Example values: [1828–1908, 1823–1901, 1848–1929])]\n", + "ori_query": "select `lifespan` from `2-12601141-1` where `party` = 'democratic' and `state` = 'mississippi' and `representative` = 'terence j. quinn'", + "amb_query": "SELECT \"lifespan\" FROM \"2-12601141-1\" WHERE \"party\" = 'democratic' AND state IN ('mississippi', 'mississippi river state') AND \"representative\" = 'terence j. quinn'" + }, + { + "db_id": "2-12601141-1", + "question": "What is the lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?", + "evidence": "", + "schema_text_wo_content": "Table 2-12601141-1, columns = [Representative, Years, State, Party, Lifespan]\n", + "schema_text_with_content": "Table 2-12601141-1, columns = [`Representative` (Example values: [john a. quackenbush, james minor quarles, julian m. quarles]), `Years` (Example values: [1889–1893, 1859–1861, 1899–1901]), `State` (Example values: [new york city, tennessee, virginia]), `Party` (Example values: [republican, oppositionist, democratic]), `Lifespan` (Example values: [1828–1908, 1823–1901, 1848–1929])]\n", + "ori_query": "select `lifespan` from `2-12601141-1` where `party` = 'democratic' and `state` = 'new york' and `representative` = 'terence j. quinn'", + "amb_query": "SELECT \"lifespan\" FROM \"2-12601141-1\" WHERE \"party\" = 'democratic' AND state IN ('new york', 'new york city', 'new york, usa') AND \"representative\" = 'terence j. quinn'" + }, + { + "db_id": "1-12094300-1", + "question": "What is the score for the interview for the state of mississippi?", + "evidence": "", + "schema_text_wo_content": "Table 1-12094300-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094300-1, columns = [`State` (Example values: [mississippi river state, north dakota, oklahoma]), `Preliminaries` (Example values: [8.852, 8.622, 8.467]), `Interview` (Example values: [9.123, 9.005, 8.554]), `Swimsuit` (Example values: [9.366, 9.132, 8.948]), `Evening Gown` (Example values: [9.343, 9.073, 9.027]), `Average` (Example values: [9.277, 9.070, 8.843])]\n", + "ori_query": "select `interview` from `1-12094300-1` where `state` = 'mississippi'", + "amb_query": "SELECT \"interview\" FROM \"1-12094300-1\" WHERE state IN ('mississippi', 'mississippi river state')" + }, + { + "db_id": "1-12094300-1", + "question": "How many times did north carolina receive a score for evening gown?", + "evidence": "", + "schema_text_wo_content": "Table 1-12094300-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094300-1, columns = [`State` (Example values: [mississippi river state, north dakota, oklahoma]), `Preliminaries` (Example values: [8.852, 8.622, 8.467]), `Interview` (Example values: [9.123, 9.005, 8.554]), `Swimsuit` (Example values: [9.366, 9.132, 8.948]), `Evening Gown` (Example values: [9.343, 9.073, 9.027]), `Average` (Example values: [9.277, 9.070, 8.843])]\n", + "ori_query": "select count(`evening gown`) from `1-12094300-1` where `state` = 'north carolina'", + "amb_query": "SELECT COUNT(\"evening gown\") FROM \"1-12094300-1\" WHERE state IN ('north carolina state', 'north carolina')" + }, + { + "db_id": "1-12094300-1", + "question": "What is the score for the interview for the state of New York?", + "evidence": "", + "schema_text_wo_content": "Table 1-12094300-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094300-1, columns = [`State` (Example values: [mississippi river state, north dakota, oklahoma]), `Preliminaries` (Example values: [8.852, 8.622, 8.467]), `Interview` (Example values: [9.123, 9.005, 8.554]), `Swimsuit` (Example values: [9.366, 9.132, 8.948]), `Evening Gown` (Example values: [9.343, 9.073, 9.027]), `Average` (Example values: [9.277, 9.070, 8.843])]\n", + "ori_query": "select `interview` from `1-12094300-1` where `state` = 'new york'", + "amb_query": "SELECT \"interview\" FROM \"1-12094300-1\" WHERE state IN ('new york', 'empire state')" + }, + { + "db_id": "1-12094300-1", + "question": "How many times did district of Columbia receive a score for evening gown?", + "evidence": "", + "schema_text_wo_content": "Table 1-12094300-1, columns = [State, Preliminaries, Interview, Swimsuit, Evening Gown, Average]\n", + "schema_text_with_content": "Table 1-12094300-1, columns = [`State` (Example values: [mississippi river state, north dakota, oklahoma]), `Preliminaries` (Example values: [8.852, 8.622, 8.467]), `Interview` (Example values: [9.123, 9.005, 8.554]), `Swimsuit` (Example values: [9.366, 9.132, 8.948]), `Evening Gown` (Example values: [9.343, 9.073, 9.027]), `Average` (Example values: [9.277, 9.070, 8.843])]\n", + "ori_query": "select count(`evening gown`) from `1-12094300-1` where `state` = 'district of columbia'", + "amb_query": "SELECT COUNT(\"evening gown\") FROM \"1-12094300-1\" WHERE state IN ('district of columbia', 'washington, district of columbia')" + }, + { + "db_id": "2-14519555-8", + "question": "Which team is in the southwest with a home at Philips Arena?", + "evidence": "", + "schema_text_wo_content": "Table 2-14519555-8, columns = [Conference, Division, Team, City, Home Arena]\n", + "schema_text_with_content": "Table 2-14519555-8, columns = [`Conference` (Example values: [eastern, western]), `Division` (Example values: [atlantic, central, southeast]), `Team` (Example values: [boston celtics, brooklyn nets, new york knicks]), `City` (Example values: [boston, massachusetts, new york, new york ( brooklyn ), new york, new york ( manhattan )]), `Home Arena` (Example values: [td garden, barclays center, madison square garden])]\n", + "ori_query": "select `team` from `2-14519555-8` where `division` = 'southwest' and `home arena` = 'philips arena'", + "amb_query": "SELECT \"team\" FROM \"2-14519555-8\" WHERE division IN ('southwest', 'utah', 'southwest area') AND \"home arena\" = 'philips arena'" + }, + { + "db_id": "2-14519555-8", + "question": "Which team is in the Southeast with a home at Philips Arena?", + "evidence": "", + "schema_text_wo_content": "Table 2-14519555-8, columns = [Conference, Division, Team, City, Home Arena]\n", + "schema_text_with_content": "Table 2-14519555-8, columns = [`Conference` (Example values: [eastern, western]), `Division` (Example values: [atlantic, central, southeast]), `Team` (Example values: [boston celtics, brooklyn nets, new york knicks]), `City` (Example values: [boston, massachusetts, new york, new york ( brooklyn ), new york, new york ( manhattan )]), `Home Arena` (Example values: [td garden, barclays center, madison square garden])]\n", + "ori_query": "select `team` from `2-14519555-8` where `division` = 'southeast' and `home arena` = 'philips arena'", + "amb_query": "SELECT \"team\" FROM \"2-14519555-8\" WHERE division IN ('virginia', 'southeast', 'southeast area', 'southeastern division') AND \"home arena\" = 'philips arena'" + }, + { + "db_id": "2-16831299-2", + "question": "Which Placings have a Nation of czechoslovakia, and Points larger than 303.72?", + "evidence": "", + "schema_text_wo_content": "Table 2-16831299-2, columns = [Rank, Name, Nation, Points, Placings]\n", + "schema_text_with_content": "Table 2-16831299-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [ondrej nepela, sergei chetverukhin, jan hoffmann]), `Nation` (Example values: [czechoslovakia, former country, soviet union, east germany]), `Points` (Example values: [355.66, 348.91, 340.55]), `Placings` (Example values: [10.0, 17.0, 35.0])]\n", + "ori_query": "select sum(`placings`) from `2-16831299-2` where `nation` = 'czechoslovakia' and `points` > 303.72", + "amb_query": "SELECT SUM(\"placings\") FROM \"2-16831299-2\" WHERE nation IN ('czechoslovakia, former country', 'czechoslovakia') AND \"points\" > 303.72" + }, + { + "db_id": "2-16831299-2", + "question": "Which Placings have a Nation of yugoslavia, and Points larger than 303.72?", + "evidence": "", + "schema_text_wo_content": "Table 2-16831299-2, columns = [Rank, Name, Nation, Points, Placings]\n", + "schema_text_with_content": "Table 2-16831299-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [ondrej nepela, sergei chetverukhin, jan hoffmann]), `Nation` (Example values: [czechoslovakia, former country, soviet union, east germany]), `Points` (Example values: [355.66, 348.91, 340.55]), `Placings` (Example values: [10.0, 17.0, 35.0])]\n", + "ori_query": "select sum(`placings`) from `2-16831299-2` where `nation` = 'yugoslavia' and `points` > 303.72", + "amb_query": "SELECT SUM(\"placings\") FROM \"2-16831299-2\" WHERE nation IN ('yugoslavia', 'yugoslavian') AND \"points\" > 303.72" + }, + { + "db_id": "2-16831299-2", + "question": "Which Placings have a Nation of west germany, and Points larger than 303.72?", + "evidence": "", + "schema_text_wo_content": "Table 2-16831299-2, columns = [Rank, Name, Nation, Points, Placings]\n", + "schema_text_with_content": "Table 2-16831299-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [ondrej nepela, sergei chetverukhin, jan hoffmann]), `Nation` (Example values: [czechoslovakia, former country, soviet union, east germany]), `Points` (Example values: [355.66, 348.91, 340.55]), `Placings` (Example values: [10.0, 17.0, 35.0])]\n", + "ori_query": "select sum(`placings`) from `2-16831299-2` where `nation` = 'west germany' and `points` > 303.72", + "amb_query": "SELECT SUM(\"placings\") FROM \"2-16831299-2\" WHERE nation IN ('west germany', 'west germany nation') AND \"points\" > 303.72" + }, + { + "db_id": "2-15550233-3", + "question": "Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is yugoslavia?", + "evidence": "", + "schema_text_wo_content": "Table 2-15550233-3, columns = [Rank, Group, Athlete, Nationality, Result]\n", + "schema_text_with_content": "Table 2-15550233-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Group` (Example values: [a, b]), `Athlete` (Example values: [kirill sosunov, gregor cankar, kofi amoah prah]), `Nationality` (Example values: [russia, slovenia, germany]), `Result` (Example values: [8.14, 8.07, 7.95])]\n", + "ori_query": "select `athlete` from `2-15550233-3` where `rank` > 15 and `result` < 7.68 and `group` = 'b' and `nationality` = 'yugoslavia'", + "amb_query": "SELECT \"athlete\" FROM \"2-15550233-3\" WHERE \"rank\" > 15 AND \"result\" < 7.68 AND \"group\" = 'b' AND nationality IN ('yugoslavia', 'yugoslavian')" + }, + { + "db_id": "2-15550233-3", + "question": "Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is portugal?", + "evidence": "", + "schema_text_wo_content": "Table 2-15550233-3, columns = [Rank, Group, Athlete, Nationality, Result]\n", + "schema_text_with_content": "Table 2-15550233-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Group` (Example values: [a, b]), `Athlete` (Example values: [kirill sosunov, gregor cankar, kofi amoah prah]), `Nationality` (Example values: [russia, slovenia, germany]), `Result` (Example values: [8.14, 8.07, 7.95])]\n", + "ori_query": "select `athlete` from `2-15550233-3` where `rank` > 15 and `result` < 7.68 and `group` = 'b' and `nationality` = 'portugal'", + "amb_query": "SELECT \"athlete\" FROM \"2-15550233-3\" WHERE \"rank\" > 15 AND \"result\" < 7.68 AND \"group\" = 'b' AND nationality IN ('portugal', 'portuguese republic')" + }, + { + "db_id": "2-15550233-3", + "question": "Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain?", + "evidence": "", + "schema_text_wo_content": "Table 2-15550233-3, columns = [Rank, Group, Athlete, Nationality, Result]\n", + "schema_text_with_content": "Table 2-15550233-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Group` (Example values: [a, b]), `Athlete` (Example values: [kirill sosunov, gregor cankar, kofi amoah prah]), `Nationality` (Example values: [russia, slovenia, germany]), `Result` (Example values: [8.14, 8.07, 7.95])]\n", + "ori_query": "select `athlete` from `2-15550233-3` where `rank` > 15 and `result` < 7.68 and `group` = 'b' and `nationality` = 'great britain'", + "amb_query": "SELECT \"athlete\" FROM \"2-15550233-3\" WHERE \"rank\" > 15 AND \"result\" < 7.68 AND \"group\" = 'b' AND nationality IN ('great britain', 'britain')" + }, + { + "db_id": "2-13910113-4", + "question": "Who is the visitor team of game 19 with calgary as the home team?", + "evidence": "", + "schema_text_wo_content": "Table 2-13910113-4, columns = [Game #, Date, Visitor, Score, Home, Record, Points]\n", + "schema_text_with_content": "Table 2-13910113-4, columns = [`Game #` (Example values: [12.0, 13.0, 14.0]), `Date` (Example values: [november 1, november 2, november 5]), `Visitor` (Example values: [los angeles, hartford, pittsburgh]), `Score` (Example values: [3 - 1, 3 - 5, 6 - 4]), `Home` (Example values: [quebec, montreal, toronto]), `Record` (Example values: [7-5-0, 7-6-0, 8-6-0]), `Points` (Example values: [14.0, 16.0, 18.0])]\n", + "ori_query": "select `visitor` from `2-13910113-4` where `home` = 'calgary' and `game #` = 19", + "amb_query": "SELECT \"visitor\" FROM \"2-13910113-4\" WHERE home IN ('calgary city', 'calgary') AND \"game #\" = 19" + }, + { + "db_id": "2-13910113-4", + "question": "Who is the visitor team of game 19 with Los Angeles as the home team?", + "evidence": "", + "schema_text_wo_content": "Table 2-13910113-4, columns = [Game #, Date, Visitor, Score, Home, Record, Points]\n", + "schema_text_with_content": "Table 2-13910113-4, columns = [`Game #` (Example values: [12.0, 13.0, 14.0]), `Date` (Example values: [november 1, november 2, november 5]), `Visitor` (Example values: [los angeles, hartford, pittsburgh]), `Score` (Example values: [3 - 1, 3 - 5, 6 - 4]), `Home` (Example values: [quebec, montreal, toronto]), `Record` (Example values: [7-5-0, 7-6-0, 8-6-0]), `Points` (Example values: [14.0, 16.0, 18.0])]\n", + "ori_query": "select `visitor` from `2-13910113-4` where `home` = 'los angeles' and `game #` = 19", + "amb_query": "SELECT \"visitor\" FROM \"2-13910113-4\" WHERE home IN ('los angeles', 'los angeles metropolitan area', 'los angeles, california') AND \"game #\" = 19" + }, + { + "db_id": "2-14163678-3", + "question": "Which visitor has a edmonton home?", + "evidence": "", + "schema_text_wo_content": "Table 2-14163678-3, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-14163678-3, columns = [`Date` (Example values: [november 1, november 2, november 4]), `Visitor` (Example values: [detroit, dallas, edmonton]), `Score` (Example values: [1 – 2, 6 – 5, 1 – 5]), `Home` (Example values: [buffalo, boston, detroit]), `Record` (Example values: [5–5–2, 6–5–2, 7–5–2])]\n", + "ori_query": "select `visitor` from `2-14163678-3` where `home` = 'edmonton'", + "amb_query": "SELECT \"visitor\" FROM \"2-14163678-3\" WHERE home IN ('edmonton', 'edmonton metropolitan area')" + }, + { + "db_id": "2-14163678-3", + "question": "Which visitor has a Los Angeles home?", + "evidence": "", + "schema_text_wo_content": "Table 2-14163678-3, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-14163678-3, columns = [`Date` (Example values: [november 1, november 2, november 4]), `Visitor` (Example values: [detroit, dallas, edmonton]), `Score` (Example values: [1 – 2, 6 – 5, 1 – 5]), `Home` (Example values: [buffalo, boston, detroit]), `Record` (Example values: [5–5–2, 6–5–2, 7–5–2])]\n", + "ori_query": "select `visitor` from `2-14163678-3` where `home` = 'los angeles'", + "amb_query": "SELECT \"visitor\" FROM \"2-14163678-3\" WHERE home IN ('los angeles', 'city of los angeles')" + }, + { + "db_id": "2-14786308-4", + "question": "Which shooting event was at the 2008 Beijing games?", + "evidence": "", + "schema_text_wo_content": "Table 2-14786308-4, columns = [Medal, Name, Games, Sport, Event]\n", + "schema_text_with_content": "Table 2-14786308-4, columns = [`Medal` (Example values: [silver, bronze, gold]), `Name` (Example values: [helmut bellingrodt category:articles with hcards, clemente rojas category:articles with hcards, alfonso pérez category:articles with hcards]), `Games` (Example values: [1972 munich, 1984 los angeles, 1988 seoul]), `Sport` (Example values: [shooting sport, boxing, shooting]), `Event` (Example values: [50 metre running target, men's featherweight, men's lightweight])]\n", + "ori_query": "select `event` from `2-14786308-4` where `sport` = 'shooting' and `games` = '2008 beijing'", + "amb_query": "SELECT \"event\" FROM \"2-14786308-4\" WHERE sport IN ('shooting', 'shooting sport') AND \"games\" = '2008 beijing'" + }, + { + "db_id": "2-14786308-4", + "question": "What judo event was participated in during the 2008 Beijing games?", + "evidence": "", + "schema_text_wo_content": "Table 2-14786308-4, columns = [Medal, Name, Games, Sport, Event]\n", + "schema_text_with_content": "Table 2-14786308-4, columns = [`Medal` (Example values: [silver, bronze, gold]), `Name` (Example values: [helmut bellingrodt category:articles with hcards, clemente rojas category:articles with hcards, alfonso pérez category:articles with hcards]), `Games` (Example values: [1972 munich, 1984 los angeles, 1988 seoul]), `Sport` (Example values: [shooting sport, boxing, shooting]), `Event` (Example values: [50 metre running target, men's featherweight, men's lightweight])]\n", + "ori_query": "select `event` from `2-14786308-4` where `games` = '2008 beijing' and `sport` = 'judo'", + "amb_query": "SELECT \"event\" FROM \"2-14786308-4\" WHERE \"games\" = '2008 beijing' AND sport IN ('judo', 'judo competition')" + }, + { + "db_id": "2-14786308-4", + "question": "Which wrestling event was at the 2008 Beijing games?", + "evidence": "", + "schema_text_wo_content": "Table 2-14786308-4, columns = [Medal, Name, Games, Sport, Event]\n", + "schema_text_with_content": "Table 2-14786308-4, columns = [`Medal` (Example values: [silver, bronze, gold]), `Name` (Example values: [helmut bellingrodt category:articles with hcards, clemente rojas category:articles with hcards, alfonso pérez category:articles with hcards]), `Games` (Example values: [1972 munich, 1984 los angeles, 1988 seoul]), `Sport` (Example values: [shooting sport, boxing, shooting]), `Event` (Example values: [50 metre running target, men's featherweight, men's lightweight])]\n", + "ori_query": "select `event` from `2-14786308-4` where `sport` = 'wrestling' and `games` = '2008 beijing'", + "amb_query": "SELECT \"event\" FROM \"2-14786308-4\" WHERE sport IN ('wrestling', 'wrestling competition') AND \"games\" = '2008 beijing'" + }, + { + "db_id": "2-14786308-4", + "question": "What wrestling event was participated in during the 2008 Beijing games?", + "evidence": "", + "schema_text_wo_content": "Table 2-14786308-4, columns = [Medal, Name, Games, Sport, Event]\n", + "schema_text_with_content": "Table 2-14786308-4, columns = [`Medal` (Example values: [silver, bronze, gold]), `Name` (Example values: [helmut bellingrodt category:articles with hcards, clemente rojas category:articles with hcards, alfonso pérez category:articles with hcards]), `Games` (Example values: [1972 munich, 1984 los angeles, 1988 seoul]), `Sport` (Example values: [shooting sport, boxing, shooting]), `Event` (Example values: [50 metre running target, men's featherweight, men's lightweight])]\n", + "ori_query": "select `event` from `2-14786308-4` where `games` = '2008 beijing' and `sport` = 'wrestling'", + "amb_query": "SELECT \"event\" FROM \"2-14786308-4\" WHERE \"games\" = '2008 beijing' AND sport IN ('wrestling', 'wrestling competition')" + }, + { + "db_id": "2-13897690-1", + "question": "What is the largest area in puerto rico with a population of 39 and rank over 19?", + "evidence": "", + "schema_text_wo_content": "Table 2-13897690-1, columns = [Rank, Island's Name, Area (sqmi), Area (km 2 ), Location, Population (2000)]\n", + "schema_text_with_content": "Table 2-13897690-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Island's Name` (Example values: [hawai ʻ i (big island), kodiak island, puerto rico]), `Area (sqmi)` (Example values: [4,028, 3,588, 3,515]), `Area (km 2 )` (Example values: [10,433, 9,293, 9,104]), `Location` (Example values: [hawaii, the last frontier, island of puerto rico]), `Population (2000)` (Example values: [148,677, 13,913, 3,808,610])]\n", + "ori_query": "select max(`area (km 2 )`) from `2-13897690-1` where `location` = 'puerto rico' and `population (2000)` = '39' and `rank` > 19", + "amb_query": "SELECT MAX(\"area (km 2 )\") FROM \"2-13897690-1\" WHERE location IN ('puerto rico', 'island of puerto rico') AND \"population (2000)\" = '39' AND \"rank\" > 19" + }, + { + "db_id": "2-13897690-1", + "question": "What is the largest area in Alaska with a population of 39 and rank over 19?", + "evidence": "", + "schema_text_wo_content": "Table 2-13897690-1, columns = [Rank, Island's Name, Area (sqmi), Area (km 2 ), Location, Population (2000)]\n", + "schema_text_with_content": "Table 2-13897690-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Island's Name` (Example values: [hawai ʻ i (big island), kodiak island, puerto rico]), `Area (sqmi)` (Example values: [4,028, 3,588, 3,515]), `Area (km 2 )` (Example values: [10,433, 9,293, 9,104]), `Location` (Example values: [hawaii, the last frontier, island of puerto rico]), `Population (2000)` (Example values: [148,677, 13,913, 3,808,610])]\n", + "ori_query": "select max(`area (km 2 )`) from `2-13897690-1` where `location` = 'alaska' and `population (2000)` = '39' and `rank` > 19", + "amb_query": "SELECT MAX(\"area (km 2 )\") FROM \"2-13897690-1\" WHERE location IN ('alaska', 'the last frontier', 'ak', 'state of alaska') AND \"population (2000)\" = '39' AND \"rank\" > 19" + }, + { + "db_id": "2-14083524-2", + "question": "what team visited los angeles", + "evidence": "", + "schema_text_wo_content": "Table 2-14083524-2, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-14083524-2, columns = [`Date` (Example values: [october 8, october 10, october 12]), `Visitor` (Example values: [toronto city, los angeles, california, philadelphia]), `Score` (Example values: [3–2, 4–2, 2–3]), `Home` (Example values: [vancouver, california, st. louis]), `Record` (Example values: [0–1–0, 0–2–0, 1–2–0])]\n", + "ori_query": "select `score` from `2-14083524-2` where `visitor` = 'los angeles'", + "amb_query": "SELECT \"score\" FROM \"2-14083524-2\" WHERE visitor IN ('los angeles', 'los angeles, california')" + }, + { + "db_id": "2-14083524-2", + "question": "what day did the team go to boston", + "evidence": "", + "schema_text_wo_content": "Table 2-14083524-2, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-14083524-2, columns = [`Date` (Example values: [october 8, october 10, october 12]), `Visitor` (Example values: [toronto city, los angeles, california, philadelphia]), `Score` (Example values: [3–2, 4–2, 2–3]), `Home` (Example values: [vancouver, california, st. louis]), `Record` (Example values: [0–1–0, 0–2–0, 1–2–0])]\n", + "ori_query": "select `date` from `2-14083524-2` where `visitor` = 'boston'", + "amb_query": "SELECT \"date\" FROM \"2-14083524-2\" WHERE visitor IN ('boston', 'boston metropolitan area')" + }, + { + "db_id": "2-14083524-2", + "question": "what day did the team go to toronto", + "evidence": "", + "schema_text_wo_content": "Table 2-14083524-2, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-14083524-2, columns = [`Date` (Example values: [october 8, october 10, october 12]), `Visitor` (Example values: [toronto city, los angeles, california, philadelphia]), `Score` (Example values: [3–2, 4–2, 2–3]), `Home` (Example values: [vancouver, california, st. louis]), `Record` (Example values: [0–1–0, 0–2–0, 1–2–0])]\n", + "ori_query": "select `date` from `2-14083524-2` where `visitor` = 'toronto'", + "amb_query": "SELECT \"date\" FROM \"2-14083524-2\" WHERE visitor IN ('toronto', 'toronto city')" + }, + { + "db_id": "2-14083524-2", + "question": "what team visited chicago", + "evidence": "", + "schema_text_wo_content": "Table 2-14083524-2, columns = [Date, Visitor, Score, Home, Record]\n", + "schema_text_with_content": "Table 2-14083524-2, columns = [`Date` (Example values: [october 8, october 10, october 12]), `Visitor` (Example values: [toronto city, los angeles, california, philadelphia]), `Score` (Example values: [3–2, 4–2, 2–3]), `Home` (Example values: [vancouver, california, st. louis]), `Record` (Example values: [0–1–0, 0–2–0, 1–2–0])]\n", + "ori_query": "select `score` from `2-14083524-2` where `visitor` = 'chicago'", + "amb_query": "SELECT \"score\" FROM \"2-14083524-2\" WHERE visitor IN ('chicago, illinois', 'chicago')" + }, + { + "db_id": "2-11821711-8", + "question": "What was the decision of the Kings game when los angeles was the visiting team?", + "evidence": "", + "schema_text_wo_content": "Table 2-11821711-8, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11821711-8, columns = [`Date` (Example values: [february 2, february 5, february 7]), `Visitor` (Example values: [los angeles, los angeles metropolitan area, los angeles, california]), `Score` (Example values: [3 – 6, 4 – 2, 5 – 3]), `Home` (Example values: [new jersey, n.y. rangers, detroit]), `Decision` (Example values: [labarbera, cloutier, ersberg]), `Attendance` (Example values: [15,279, 18,200, 18,852]), `Record` (Example values: [21–30–3, 22–30–3, 23–30–3])]\n", + "ori_query": "select `decision` from `2-11821711-8` where `visitor` = 'los angeles'", + "amb_query": "SELECT \"decision\" FROM \"2-11821711-8\" WHERE visitor IN ('los angeles county', 'los angeles', 'los angeles metropolitan area', 'los angeles, california')" + }, + { + "db_id": "2-11821711-8", + "question": "What was the decision of the Kings game when Chicago was the visiting team?", + "evidence": "", + "schema_text_wo_content": "Table 2-11821711-8, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11821711-8, columns = [`Date` (Example values: [february 2, february 5, february 7]), `Visitor` (Example values: [los angeles, los angeles metropolitan area, los angeles, california]), `Score` (Example values: [3 – 6, 4 – 2, 5 – 3]), `Home` (Example values: [new jersey, n.y. rangers, detroit]), `Decision` (Example values: [labarbera, cloutier, ersberg]), `Attendance` (Example values: [15,279, 18,200, 18,852]), `Record` (Example values: [21–30–3, 22–30–3, 23–30–3])]\n", + "ori_query": "select `decision` from `2-11821711-8` where `visitor` = 'chicago'", + "amb_query": "SELECT \"decision\" FROM \"2-11821711-8\" WHERE visitor IN ('chicago, il', 'chicago')" + }, + { + "db_id": "2-13554889-6", + "question": "What is the lowest number of bronze a ice hockey athlete with 0 gold medals has?", + "evidence": "", + "schema_text_wo_content": "Table 2-13554889-6, columns = [Athlete, Sport, Type, Olympics, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-13554889-6, columns = [`Athlete` (Example values: [cindy klassen, clara hughes, marc gagnon]), `Sport` (Example values: [speed skating, cycling, short track competition]), `Type` (Example values: [cold season, summer, winter]), `Olympics` (Example values: [2002 , 2006 , 2010, 1996 , 2000, 1994 , 1998 , 2002]), `Gold` (Example values: [1.0, 0.0, 3.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 1.0]), `Total` (Example values: [6.0, 5.0, 4.0])]\n", + "ori_query": "select min(`bronze`) from `2-13554889-6` where `sport` = 'ice hockey' and `gold` = 0", + "amb_query": "SELECT MIN(\"bronze\") FROM \"2-13554889-6\" WHERE sport IN ('ice hockey competition', 'ice hockey', 'ice hockey sport') AND \"gold\" = 0" + }, + { + "db_id": "2-13554889-6", + "question": "What is the lowest number of bronze a short track athlete with 0 gold medals has?", + "evidence": "", + "schema_text_wo_content": "Table 2-13554889-6, columns = [Athlete, Sport, Type, Olympics, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-13554889-6, columns = [`Athlete` (Example values: [cindy klassen, clara hughes, marc gagnon]), `Sport` (Example values: [speed skating, cycling, short track competition]), `Type` (Example values: [cold season, summer, winter]), `Olympics` (Example values: [2002 , 2006 , 2010, 1996 , 2000, 1994 , 1998 , 2002]), `Gold` (Example values: [1.0, 0.0, 3.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 1.0]), `Total` (Example values: [6.0, 5.0, 4.0])]\n", + "ori_query": "select min(`bronze`) from `2-13554889-6` where `sport` = 'short track' and `gold` = 0", + "amb_query": "SELECT MIN(\"bronze\") FROM \"2-13554889-6\" WHERE sport IN ('short track sport', 'short track', 'short track competition') AND \"gold\" = 0" + }, + { + "db_id": "2-13554889-6", + "question": "What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?", + "evidence": "", + "schema_text_wo_content": "Table 2-13554889-6, columns = [Athlete, Sport, Type, Olympics, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-13554889-6, columns = [`Athlete` (Example values: [cindy klassen, clara hughes, marc gagnon]), `Sport` (Example values: [speed skating, cycling, short track competition]), `Type` (Example values: [cold season, summer, winter]), `Olympics` (Example values: [2002 , 2006 , 2010, 1996 , 2000, 1994 , 1998 , 2002]), `Gold` (Example values: [1.0, 0.0, 3.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 1.0]), `Total` (Example values: [6.0, 5.0, 4.0])]\n", + "ori_query": "select avg(`gold`) from `2-13554889-6` where `bronze` = 1 and `type` = 'winter' and `silver` < 3 and `total` < 4", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-13554889-6\" WHERE \"bronze\" = 1 AND type IN ('winter', 'cold season') AND \"silver\" < 3 AND \"total\" < 4" + }, + { + "db_id": "2-13554889-6", + "question": "What is the highest total medals winter athlete Clara Hughes has?", + "evidence": "", + "schema_text_wo_content": "Table 2-13554889-6, columns = [Athlete, Sport, Type, Olympics, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-13554889-6, columns = [`Athlete` (Example values: [cindy klassen, clara hughes, marc gagnon]), `Sport` (Example values: [speed skating, cycling, short track competition]), `Type` (Example values: [cold season, summer, winter]), `Olympics` (Example values: [2002 , 2006 , 2010, 1996 , 2000, 1994 , 1998 , 2002]), `Gold` (Example values: [1.0, 0.0, 3.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [3.0, 2.0, 1.0]), `Total` (Example values: [6.0, 5.0, 4.0])]\n", + "ori_query": "select max(`total`) from `2-13554889-6` where `type` = 'winter' and `athlete` = 'clara hughes'", + "amb_query": "SELECT MAX(\"total\") FROM \"2-13554889-6\" WHERE type IN ('winter', 'cold season') AND \"athlete\" = 'clara hughes'" + }, + { + "db_id": "2-1448716-1", + "question": "Which Altitude (mslm) is the highest one that has a City of sesto san giovanni, and a Population larger than 59492?", + "evidence": "", + "schema_text_wo_content": "Table 2-1448716-1, columns = [Rank, City, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 2-1448716-1, columns = [`Rank` (Example values: [1st, 2nd, 3rd]), `City` (Example values: [milano, city of sesto san giovanni, cinisello balsamo]), `Population` (Example values: [1336879.0, 81750.0, 74536.0]), `Area (km 2 )` (Example values: [181.76, 11.74, 12.7]), `Density (inhabitants/km 2 )` (Example values: [7355.2, 6963.4, 5869.0]), `Altitude (mslm)` (Example values: [122.0, 140.0, 154.0])]\n", + "ori_query": "select max(`altitude (mslm)`) from `2-1448716-1` where `city` = 'sesto san giovanni' and `population` > 59492", + "amb_query": "SELECT MAX(\"altitude (mslm)\") FROM \"2-1448716-1\" WHERE city IN ('sesto san giovanni', 'city of sesto san giovanni') AND \"population\" > 59492" + }, + { + "db_id": "2-1448716-1", + "question": "Which Altitude (mslm) is the highest one that has a City of legnano, and a Population larger than 59492?", + "evidence": "", + "schema_text_wo_content": "Table 2-1448716-1, columns = [Rank, City, Population, Area (km 2 ), Density (inhabitants/km 2 ), Altitude (mslm)]\n", + "schema_text_with_content": "Table 2-1448716-1, columns = [`Rank` (Example values: [1st, 2nd, 3rd]), `City` (Example values: [milano, city of sesto san giovanni, cinisello balsamo]), `Population` (Example values: [1336879.0, 81750.0, 74536.0]), `Area (km 2 )` (Example values: [181.76, 11.74, 12.7]), `Density (inhabitants/km 2 )` (Example values: [7355.2, 6963.4, 5869.0]), `Altitude (mslm)` (Example values: [122.0, 140.0, 154.0])]\n", + "ori_query": "select max(`altitude (mslm)`) from `2-1448716-1` where `city` = 'legnano' and `population` > 59492", + "amb_query": "SELECT MAX(\"altitude (mslm)\") FROM \"2-1448716-1\" WHERE city IN ('legnano', 'legnano, lombardy') AND \"population\" > 59492" + }, + { + "db_id": "2-14345690-11", + "question": "Which celebrity was famous for being a former mp?", + "evidence": "", + "schema_text_wo_content": "Table 2-14345690-11, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 2-14345690-11, columns = [`Celebrity` (Example values: [stacey solomon, shaun ryder, jenny eclair]), `Famous for` (Example values: [x factor 3rd place finalist, member of the band, happy mondays, comedienne and novelist]), `Entered` (Example values: [day 1, day 4, day 6]), `Exited` (Example values: [day 21, day 20, day 19]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `celebrity` from `2-14345690-11` where `famous for` = 'former mp'", + "amb_query": "SELECT \"celebrity\" FROM \"2-14345690-11\" WHERE famous for IN ('former mp', 'ex-mp')" + }, + { + "db_id": "2-14345690-11", + "question": "Which celebrity was famous for being a olympic athlete?", + "evidence": "", + "schema_text_wo_content": "Table 2-14345690-11, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 2-14345690-11, columns = [`Celebrity` (Example values: [stacey solomon, shaun ryder, jenny eclair]), `Famous for` (Example values: [x factor 3rd place finalist, member of the band, happy mondays, comedienne and novelist]), `Entered` (Example values: [day 1, day 4, day 6]), `Exited` (Example values: [day 21, day 20, day 19]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `celebrity` from `2-14345690-11` where `famous for` = 'olympic athlete'", + "amb_query": "SELECT \"celebrity\" FROM \"2-14345690-11\" WHERE famous for IN ('olympic athlete', 'olympic participant')" + }, + { + "db_id": "2-14345690-11", + "question": "What celebrity is famous for being an actress and former bond girl?", + "evidence": "", + "schema_text_wo_content": "Table 2-14345690-11, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 2-14345690-11, columns = [`Celebrity` (Example values: [stacey solomon, shaun ryder, jenny eclair]), `Famous for` (Example values: [x factor 3rd place finalist, member of the band, happy mondays, comedienne and novelist]), `Entered` (Example values: [day 1, day 4, day 6]), `Exited` (Example values: [day 21, day 20, day 19]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `celebrity` from `2-14345690-11` where `famous for` = 'actress and former bond girl'", + "amb_query": "SELECT \"celebrity\" FROM \"2-14345690-11\" WHERE famous for IN ('actress and former bond girl', 'actress and bond girl')" + }, + { + "db_id": "2-14345690-11", + "question": "Which celebrity was famous for being a rapper?", + "evidence": "", + "schema_text_wo_content": "Table 2-14345690-11, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 2-14345690-11, columns = [`Celebrity` (Example values: [stacey solomon, shaun ryder, jenny eclair]), `Famous for` (Example values: [x factor 3rd place finalist, member of the band, happy mondays, comedienne and novelist]), `Entered` (Example values: [day 1, day 4, day 6]), `Exited` (Example values: [day 21, day 20, day 19]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `celebrity` from `2-14345690-11` where `famous for` = 'rapper'", + "amb_query": "SELECT \"celebrity\" FROM \"2-14345690-11\" WHERE famous for IN ('rapper', 'hip-hop artist')" + }, + { + "db_id": "2-14345690-11", + "question": "What celebrity is famous for being an actor?", + "evidence": "", + "schema_text_wo_content": "Table 2-14345690-11, columns = [Celebrity, Famous for, Entered, Exited, Finished]\n", + "schema_text_with_content": "Table 2-14345690-11, columns = [`Celebrity` (Example values: [stacey solomon, shaun ryder, jenny eclair]), `Famous for` (Example values: [x factor 3rd place finalist, member of the band, happy mondays, comedienne and novelist]), `Entered` (Example values: [day 1, day 4, day 6]), `Exited` (Example values: [day 21, day 20, day 19]), `Finished` (Example values: [1st, 2nd, 3rd])]\n", + "ori_query": "select `celebrity` from `2-14345690-11` where `famous for` = 'actor'", + "amb_query": "SELECT \"celebrity\" FROM \"2-14345690-11\" WHERE famous for IN ('actor', 'movie star')" + }, + { + "db_id": "2-14423756-3", + "question": "Which Bronze is the highest one that has a Rank larger than 1, and a Nation of cuba, and a Total larger than 4?", + "evidence": "", + "schema_text_wo_content": "Table 2-14423756-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14423756-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [cuban republic, colombia, mexico]), `Gold` (Example values: [18.0, 5.0, 2.0]), `Silver` (Example values: [15.0, 5.0, 3.0]), `Bronze` (Example values: [8.0, 5.0, 1.0]), `Total` (Example values: [41.0, 15.0, 9.0])]\n", + "ori_query": "select max(`bronze`) from `2-14423756-3` where `rank` > 1 and `nation` = 'cuba' and `total` > 4", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-14423756-3\" WHERE \"rank\" > 1 AND nation IN ('cuba', 'cuban republic') AND \"total\" > 4" + }, + { + "db_id": "2-14423756-3", + "question": "Which Bronze is the highest one that has a Rank larger than 1, and a Nation of panama, and a Total larger than 4?", + "evidence": "", + "schema_text_wo_content": "Table 2-14423756-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14423756-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [cuban republic, colombia, mexico]), `Gold` (Example values: [18.0, 5.0, 2.0]), `Silver` (Example values: [15.0, 5.0, 3.0]), `Bronze` (Example values: [8.0, 5.0, 1.0]), `Total` (Example values: [41.0, 15.0, 9.0])]\n", + "ori_query": "select max(`bronze`) from `2-14423756-3` where `rank` > 1 and `nation` = 'panama' and `total` > 4", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-14423756-3\" WHERE \"rank\" > 1 AND nation IN ('panama', 'panama republic') AND \"total\" > 4" + }, + { + "db_id": "2-14423756-3", + "question": "Which Silver has a Gold of 2, and a Nation of venezuela, and a Total smaller than 12?", + "evidence": "", + "schema_text_wo_content": "Table 2-14423756-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14423756-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [cuban republic, colombia, mexico]), `Gold` (Example values: [18.0, 5.0, 2.0]), `Silver` (Example values: [15.0, 5.0, 3.0]), `Bronze` (Example values: [8.0, 5.0, 1.0]), `Total` (Example values: [41.0, 15.0, 9.0])]\n", + "ori_query": "select sum(`silver`) from `2-14423756-3` where `gold` = 2 and `nation` = 'venezuela' and `total` < 12", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-14423756-3\" WHERE \"gold\" = 2 AND nation IN ('venezuela, south america', 'venezuela') AND \"total\" < 12" + }, + { + "db_id": "2-14423756-3", + "question": "Which Bronze is the highest one that has a Rank larger than 1, and a Nation of dominican republic, and a Total larger than 4?", + "evidence": "", + "schema_text_wo_content": "Table 2-14423756-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14423756-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [cuban republic, colombia, mexico]), `Gold` (Example values: [18.0, 5.0, 2.0]), `Silver` (Example values: [15.0, 5.0, 3.0]), `Bronze` (Example values: [8.0, 5.0, 1.0]), `Total` (Example values: [41.0, 15.0, 9.0])]\n", + "ori_query": "select max(`bronze`) from `2-14423756-3` where `rank` > 1 and `nation` = 'dominican republic' and `total` > 4", + "amb_query": "SELECT MAX(\"bronze\") FROM \"2-14423756-3\" WHERE \"rank\" > 1 AND nation IN ('dominican republic, caribbean', 'dominican republic') AND \"total\" > 4" + }, + { + "db_id": "2-14423756-3", + "question": "Which Silver has a Gold of 2, and a Nation of puerto rico, and a Total smaller than 12?", + "evidence": "", + "schema_text_wo_content": "Table 2-14423756-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14423756-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [cuban republic, colombia, mexico]), `Gold` (Example values: [18.0, 5.0, 2.0]), `Silver` (Example values: [15.0, 5.0, 3.0]), `Bronze` (Example values: [8.0, 5.0, 1.0]), `Total` (Example values: [41.0, 15.0, 9.0])]\n", + "ori_query": "select sum(`silver`) from `2-14423756-3` where `gold` = 2 and `nation` = 'puerto rico' and `total` < 12", + "amb_query": "SELECT SUM(\"silver\") FROM \"2-14423756-3\" WHERE \"gold\" = 2 AND nation IN ('puerto rico', 'commonwealth of puerto rico') AND \"total\" < 12" + }, + { + "db_id": "2-10563642-2", + "question": "What rank did panama receive with a time of 1:50.12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10563642-2, columns = [Rank, Heat, Lane, Name, Nationality, 150m, Time]\n", + "schema_text_with_content": "Table 2-10563642-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [14.0, 15.0, 13.0]), `Lane` (Example values: [4.0, 5.0, 2.0]), `Name` (Example values: [pieter van den hoogenband, michael phelps, park tae-hwan]), `Nationality` (Example values: [netherlands, usa, south korea]), `150m` (Example values: [1:19.56, 1:20.82, 1:20.73]), `Time` (Example values: [1:47.36, 1:47.52, 1:47.58])]\n", + "ori_query": "select `rank` from `2-10563642-2` where `nationality` = 'panama' and `time` = '1:50.12'", + "amb_query": "SELECT \"rank\" FROM \"2-10563642-2\" WHERE nationality IN ('panama', 'panama, central america') AND \"time\" = '1:50.12'" + }, + { + "db_id": "2-10563642-2", + "question": "What rank did san marino receive with a time of 1:50.12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10563642-2, columns = [Rank, Heat, Lane, Name, Nationality, 150m, Time]\n", + "schema_text_with_content": "Table 2-10563642-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [14.0, 15.0, 13.0]), `Lane` (Example values: [4.0, 5.0, 2.0]), `Name` (Example values: [pieter van den hoogenband, michael phelps, park tae-hwan]), `Nationality` (Example values: [netherlands, usa, south korea]), `150m` (Example values: [1:19.56, 1:20.82, 1:20.73]), `Time` (Example values: [1:47.36, 1:47.52, 1:47.58])]\n", + "ori_query": "select `rank` from `2-10563642-2` where `nationality` = 'san marino' and `time` = '1:50.12'", + "amb_query": "SELECT \"rank\" FROM \"2-10563642-2\" WHERE nationality IN ('san marino', 'san marino city') AND \"time\" = '1:50.12'" + }, + { + "db_id": "2-10563642-2", + "question": "What rank did albania receive with a time of 1:50.12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10563642-2, columns = [Rank, Heat, Lane, Name, Nationality, 150m, Time]\n", + "schema_text_with_content": "Table 2-10563642-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [14.0, 15.0, 13.0]), `Lane` (Example values: [4.0, 5.0, 2.0]), `Name` (Example values: [pieter van den hoogenband, michael phelps, park tae-hwan]), `Nationality` (Example values: [netherlands, usa, south korea]), `150m` (Example values: [1:19.56, 1:20.82, 1:20.73]), `Time` (Example values: [1:47.36, 1:47.52, 1:47.58])]\n", + "ori_query": "select `rank` from `2-10563642-2` where `nationality` = 'albania' and `time` = '1:50.12'", + "amb_query": "SELECT \"rank\" FROM \"2-10563642-2\" WHERE nationality IN ('albanian', 'albania') AND \"time\" = '1:50.12'" + }, + { + "db_id": "2-10563642-2", + "question": "What rank did nicaragua receive with a time of 1:50.12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10563642-2, columns = [Rank, Heat, Lane, Name, Nationality, 150m, Time]\n", + "schema_text_with_content": "Table 2-10563642-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [14.0, 15.0, 13.0]), `Lane` (Example values: [4.0, 5.0, 2.0]), `Name` (Example values: [pieter van den hoogenband, michael phelps, park tae-hwan]), `Nationality` (Example values: [netherlands, usa, south korea]), `150m` (Example values: [1:19.56, 1:20.82, 1:20.73]), `Time` (Example values: [1:47.36, 1:47.52, 1:47.58])]\n", + "ori_query": "select `rank` from `2-10563642-2` where `nationality` = 'nicaragua' and `time` = '1:50.12'", + "amb_query": "SELECT \"rank\" FROM \"2-10563642-2\" WHERE nationality IN ('nicaragua', 'nicaragua nation') AND \"time\" = '1:50.12'" + }, + { + "db_id": "2-10563642-2", + "question": "What rank did Poland receive with a time of 1:50.12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10563642-2, columns = [Rank, Heat, Lane, Name, Nationality, 150m, Time]\n", + "schema_text_with_content": "Table 2-10563642-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [14.0, 15.0, 13.0]), `Lane` (Example values: [4.0, 5.0, 2.0]), `Name` (Example values: [pieter van den hoogenband, michael phelps, park tae-hwan]), `Nationality` (Example values: [netherlands, usa, south korea]), `150m` (Example values: [1:19.56, 1:20.82, 1:20.73]), `Time` (Example values: [1:47.36, 1:47.52, 1:47.58])]\n", + "ori_query": "select `rank` from `2-10563642-2` where `nationality` = 'poland' and `time` = '1:50.12'", + "amb_query": "SELECT \"rank\" FROM \"2-10563642-2\" WHERE nationality IN ('poland', 'poland country') AND \"time\" = '1:50.12'" + }, + { + "db_id": "2-16785053-2", + "question": "What is the highest Population, when State is guam, and when Total Congregations is greater than 41?", + "evidence": "", + "schema_text_wo_content": "Table 2-16785053-2, columns = [State, Membership, Population, % LDS, Total Congregations]\n", + "schema_text_with_content": "Table 2-16785053-2, columns = [`State` (Example values: [american samoa, guam territory, northern mariana islands]), `Membership` (Example values: [15,411, 2,252, 753.0]), `Population` (Example values: [54,947, 185,674, 51,395]), `% LDS` (Example values: [28.1%, 1.41%, 1.47%]), `Total Congregations` (Example values: [36.0, 4.0, 1.0])]\n", + "ori_query": "select max(`population`) from `2-16785053-2` where `state` = 'guam' and `total congregations` > 41", + "amb_query": "SELECT MAX(\"population\") FROM \"2-16785053-2\" WHERE state IN ('guam territory', 'guam') AND \"total congregations\" > 41" + }, + { + "db_id": "2-16785053-2", + "question": "What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?", + "evidence": "", + "schema_text_wo_content": "Table 2-16785053-2, columns = [State, Membership, Population, % LDS, Total Congregations]\n", + "schema_text_with_content": "Table 2-16785053-2, columns = [`State` (Example values: [american samoa, guam territory, northern mariana islands]), `Membership` (Example values: [15,411, 2,252, 753.0]), `Population` (Example values: [54,947, 185,674, 51,395]), `% LDS` (Example values: [28.1%, 1.41%, 1.47%]), `Total Congregations` (Example values: [36.0, 4.0, 1.0])]\n", + "ori_query": "select max(`population`) from `2-16785053-2` where `state` = 'puerto rico' and `total congregations` > 41", + "amb_query": "SELECT MAX(\"population\") FROM \"2-16785053-2\" WHERE state IN ('puerto rico', 'commonwealth of puerto rico') AND \"total congregations\" > 41" + }, + { + "db_id": "2-14177667-3", + "question": "What rank is chinese taipei, who had 0 silver's and Less than 2 golds?", + "evidence": "", + "schema_text_wo_content": "Table 2-14177667-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14177667-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, japan, china]), `Gold` (Example values: [6.0, 5.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 0.0]), `Bronze` (Example values: [1.0, 6.0, 4.0]), `Total` (Example values: [11.0, 15.0, 10.0])]\n", + "ori_query": "select `rank` from `2-14177667-3` where `silver` = 0 and `gold` < 2 and `nation` = 'chinese taipei'", + "amb_query": "SELECT \"rank\" FROM \"2-14177667-3\" WHERE \"silver\" = 0 AND \"gold\" < 2 AND nation IN ('taipei', 'chinese taipei')" + }, + { + "db_id": "2-14177667-3", + "question": "What rank is india, who had 0 silver's and Less than 2 golds?", + "evidence": "", + "schema_text_wo_content": "Table 2-14177667-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14177667-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, japan, china]), `Gold` (Example values: [6.0, 5.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 0.0]), `Bronze` (Example values: [1.0, 6.0, 4.0]), `Total` (Example values: [11.0, 15.0, 10.0])]\n", + "ori_query": "select `rank` from `2-14177667-3` where `silver` = 0 and `gold` < 2 and `nation` = 'india'", + "amb_query": "SELECT \"rank\" FROM \"2-14177667-3\" WHERE \"silver\" = 0 AND \"gold\" < 2 AND nation IN ('india', 'republic of india')" + }, + { + "db_id": "2-14177667-3", + "question": "What rank is Turkmenistan, who had 0 silver's and Less than 2 golds?", + "evidence": "", + "schema_text_wo_content": "Table 2-14177667-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14177667-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [south korea, japan, china]), `Gold` (Example values: [6.0, 5.0, 2.0]), `Silver` (Example values: [4.0, 2.0, 0.0]), `Bronze` (Example values: [1.0, 6.0, 4.0]), `Total` (Example values: [11.0, 15.0, 10.0])]\n", + "ori_query": "select `rank` from `2-14177667-3` where `silver` = 0 and `gold` < 2 and `nation` = 'turkmenistan'", + "amb_query": "SELECT \"rank\" FROM \"2-14177667-3\" WHERE \"silver\" = 0 AND \"gold\" < 2 AND nation IN ('turkmenistan', 'the nation of turkmenistan')" + }, + { + "db_id": "2-14385107-2", + "question": "What is the highest rank for the boys swimming team in gallup?", + "evidence": "", + "schema_text_wo_content": "Table 2-14385107-2, columns = [Rank, # of Titles, School, City, Sport, First, Last]\n", + "schema_text_with_content": "Table 2-14385107-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `# of Titles` (Example values: [27.0, 22.0, 21.0]), `School` (Example values: [artesia, laguna acoma, highland]), `City` (Example values: [artesia, casa blanca, albuquerque city]), `Sport` (Example values: [football, boys cross country, boys track]), `First` (Example values: [1957.0, 1969.0, 1952.0]), `Last` (Example values: [2010.0, 2012.0, 2009.0])]\n", + "ori_query": "select max(`rank`) from `2-14385107-2` where `sport` = 'boys swimming' and `city` = 'gallup'", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-14385107-2\" WHERE \"sport\" = 'boys swimming' AND city IN ('gallup, usa', 'gallup')" + }, + { + "db_id": "2-14385107-2", + "question": "What is the highest rank for the boys swimming team in hobbs?", + "evidence": "", + "schema_text_wo_content": "Table 2-14385107-2, columns = [Rank, # of Titles, School, City, Sport, First, Last]\n", + "schema_text_with_content": "Table 2-14385107-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `# of Titles` (Example values: [27.0, 22.0, 21.0]), `School` (Example values: [artesia, laguna acoma, highland]), `City` (Example values: [artesia, casa blanca, albuquerque city]), `Sport` (Example values: [football, boys cross country, boys track]), `First` (Example values: [1957.0, 1969.0, 1952.0]), `Last` (Example values: [2010.0, 2012.0, 2009.0])]\n", + "ori_query": "select max(`rank`) from `2-14385107-2` where `sport` = 'boys swimming' and `city` = 'hobbs'", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-14385107-2\" WHERE \"sport\" = 'boys swimming' AND city IN ('hobbs', 'hobbs, usa')" + }, + { + "db_id": "2-14385107-2", + "question": "What is the highest rank for the boys swimming team in Albuquerque?", + "evidence": "", + "schema_text_wo_content": "Table 2-14385107-2, columns = [Rank, # of Titles, School, City, Sport, First, Last]\n", + "schema_text_with_content": "Table 2-14385107-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `# of Titles` (Example values: [27.0, 22.0, 21.0]), `School` (Example values: [artesia, laguna acoma, highland]), `City` (Example values: [artesia, casa blanca, albuquerque city]), `Sport` (Example values: [football, boys cross country, boys track]), `First` (Example values: [1957.0, 1969.0, 1952.0]), `Last` (Example values: [2010.0, 2012.0, 2009.0])]\n", + "ori_query": "select max(`rank`) from `2-14385107-2` where `sport` = 'boys swimming' and `city` = 'albuquerque'", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-14385107-2\" WHERE \"sport\" = 'boys swimming' AND city IN ('albuquerque city', 'albuquerque', 'albuquerque, nm')" + }, + { + "db_id": "2-18666541-3", + "question": "What is the lowest rank that great britain got?", + "evidence": "", + "schema_text_wo_content": "Table 2-18666541-3, columns = [Rank, Heat, Cyclist, Nation, Result]\n", + "schema_text_with_content": "Table 2-18666541-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [4.0, 3.0, 1.0]), `Cyclist` (Example values: [bradley wiggins, hayden roulston, steven burke]), `Nation` (Example values: [britain, new zealand, russia]), `Result` (Example values: [4:16.571, 4:19.232, 4:21.558])]\n", + "ori_query": "select min(`rank`) from `2-18666541-3` where `nation` = 'great britain'", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-18666541-3\" WHERE nation IN ('great britain', 'britain')" + }, + { + "db_id": "2-18666541-3", + "question": "What is the lowest rank that spain got?", + "evidence": "", + "schema_text_wo_content": "Table 2-18666541-3, columns = [Rank, Heat, Cyclist, Nation, Result]\n", + "schema_text_with_content": "Table 2-18666541-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [4.0, 3.0, 1.0]), `Cyclist` (Example values: [bradley wiggins, hayden roulston, steven burke]), `Nation` (Example values: [britain, new zealand, russia]), `Result` (Example values: [4:16.571, 4:19.232, 4:21.558])]\n", + "ori_query": "select min(`rank`) from `2-18666541-3` where `nation` = 'spain'", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-18666541-3\" WHERE nation IN ('spain', 'spanish nation')" + }, + { + "db_id": "2-10122032-1", + "question": "How many gold medals on average were earned by great britain when they held the rank of 4?", + "evidence": "", + "schema_text_wo_content": "Table 2-10122032-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10122032-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, germany, australia]), `Gold` (Example values: [4.0, 2.0, 0.0]), `Silver` (Example values: [2.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [8.0, 3.0, 2.0])]\n", + "ori_query": "select avg(`gold`) from `2-10122032-1` where `nation` = 'great britain' and `rank` > 4", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-10122032-1\" WHERE nation IN ('great britain', 'british isles') AND \"rank\" > 4" + }, + { + "db_id": "2-10122032-1", + "question": "How many gold medals on average were earned by Italy when they held the rank of 4?", + "evidence": "", + "schema_text_wo_content": "Table 2-10122032-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-10122032-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [russia, germany, australia]), `Gold` (Example values: [4.0, 2.0, 0.0]), `Silver` (Example values: [2.0, 1.0, 0.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [8.0, 3.0, 2.0])]\n", + "ori_query": "select avg(`gold`) from `2-10122032-1` where `nation` = 'italy' and `rank` > 4", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-10122032-1\" WHERE nation IN ('italy, europe', 'italy') AND \"rank\" > 4" + }, + { + "db_id": "2-15344743-1", + "question": "Which builder completed before 1890 and launched on 20 september 1888?", + "evidence": "", + "schema_text_wo_content": "Table 2-15344743-1, columns = [Name, Builder, Laid down, Launched, Completed]\n", + "schema_text_with_content": "Table 2-15344743-1, columns = [`Name` (Example values: [hmsmarathon, hmsmagicienne, hmsmedea]), `Builder` (Example values: [fairfields, govan, chatham, portsmouth]), `Laid down` (Example values: [10 august 1887, 25 april 1887, 10 october 1887]), `Launched` (Example values: [23 august 1888, 12 may 1888, june 9th, 1888]), `Completed` (Example values: [1889.0, 1890.0])]\n", + "ori_query": "select `builder` from `2-15344743-1` where `completed` < 1890 and `launched` = '20 september 1888'", + "amb_query": "SELECT \"builder\" FROM \"2-15344743-1\" WHERE \"completed\" < 1890 AND launched IN ('20 september 1888', '20/09/1888')" + }, + { + "db_id": "2-15344743-1", + "question": "Which builder completed before 1890 and launched on 9 june 1888?", + "evidence": "", + "schema_text_wo_content": "Table 2-15344743-1, columns = [Name, Builder, Laid down, Launched, Completed]\n", + "schema_text_with_content": "Table 2-15344743-1, columns = [`Name` (Example values: [hmsmarathon, hmsmagicienne, hmsmedea]), `Builder` (Example values: [fairfields, govan, chatham, portsmouth]), `Laid down` (Example values: [10 august 1887, 25 april 1887, 10 october 1887]), `Launched` (Example values: [23 august 1888, 12 may 1888, june 9th, 1888]), `Completed` (Example values: [1889.0, 1890.0])]\n", + "ori_query": "select `builder` from `2-15344743-1` where `completed` < 1890 and `launched` = '9 june 1888'", + "amb_query": "SELECT \"builder\" FROM \"2-15344743-1\" WHERE \"completed\" < 1890 AND launched IN ('9 june 1888', 'june 9th, 1888')" + }, + { + "db_id": "2-1604132-1", + "question": "Who was appointed on february 20, 2008 september 22, 2009 from saskatchewan?", + "evidence": "", + "schema_text_wo_content": "Table 2-1604132-1, columns = [Name, Appointed, Prior position, Province, Nominated by]\n", + "schema_text_with_content": "Table 2-1604132-1, columns = [`Name` (Example values: [pierre blais (chief justice), marc noël, john maxwell evans ( supernumerary )]), `Appointed` (Example values: [september 22, 2009, june 24, 1992, june 26, 1998]), `Prior position` (Example values: [federal court federal court of appeal, lawyer at bennett jones verchere llp, professor at osgoode hall law school]), `Province` (Example values: [sherbrooke, ontario, british columbia]), `Nominated by` (Example values: [harper, mulroney, chrétien])]\n", + "ori_query": "select `name` from `2-1604132-1` where `province` = 'saskatchewan' and `appointed` = 'february 20, 2008 september 22, 2009'", + "amb_query": "SELECT \"name\" FROM \"2-1604132-1\" WHERE province IN ('saskatchewan, the land of the living skies', 'saskatchewan') AND appointed IN ('september 22, 2009', 'february 20, 2008 september 22, 2009')" + }, + { + "db_id": "2-1604132-1", + "question": "Who was appointed on October 21, 2011 from Quebec?", + "evidence": "", + "schema_text_wo_content": "Table 2-1604132-1, columns = [Name, Appointed, Prior position, Province, Nominated by]\n", + "schema_text_with_content": "Table 2-1604132-1, columns = [`Name` (Example values: [pierre blais (chief justice), marc noël, john maxwell evans ( supernumerary )]), `Appointed` (Example values: [september 22, 2009, june 24, 1992, june 26, 1998]), `Prior position` (Example values: [federal court federal court of appeal, lawyer at bennett jones verchere llp, professor at osgoode hall law school]), `Province` (Example values: [sherbrooke, ontario, british columbia]), `Nominated by` (Example values: [harper, mulroney, chrétien])]\n", + "ori_query": "select `name` from `2-1604132-1` where `province` = 'quebec' and `appointed` = 'october 21, 2011'", + "amb_query": "SELECT \"name\" FROM \"2-1604132-1\" WHERE province IN ('quebec', 'trois-rivières', 'sherbrooke') AND appointed IN ('21/10/2011', 'october 21, 2011')" + }, + { + "db_id": "2-15553293-2", + "question": "What is the lowest Bronze with a Nation of south africa (rsa) and with a Gold that is smaller than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select min(`bronze`) from `2-15553293-2` where `nation` = 'egypt (egy)' and `gold` < 2", + "amb_query": "SELECT MIN(\"bronze\") FROM \"2-15553293-2\" WHERE \"nation\" = 'egypt (egy)' AND \"gold\" < 2" + }, + { + "db_id": "2-15553293-2", + "question": "What is the lowest Bronze with a Nation of botswana (bot) and with a Gold that is smaller than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select min(`bronze`) from `2-15553293-2` where `nation` = 'egypt (egy)' and `gold` < 2", + "amb_query": "SELECT MIN(\"bronze\") FROM \"2-15553293-2\" WHERE \"nation\" = 'egypt (egy)' AND \"gold\" < 2" + }, + { + "db_id": "2-15553293-2", + "question": "What is the highest Total with a Rank that is smaller than 4 and a Nation of morocco (mar) with a Gold that is smaller than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select max(`total`) from `2-15553293-2` where `rank` < 4 and `nation` = 'tunisia (tun)' and `gold` < 2", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15553293-2\" WHERE \"rank\" < 4 AND \"nation\" = 'tunisia (tun)' AND \"gold\" < 2" + }, + { + "db_id": "2-15553293-2", + "question": "What is the average Total with a Nation of kenya (ken) and a Rank that is larger than 9?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select avg(`total`) from `2-15553293-2` where `nation` = 'ethiopia (eth)' and `rank` > 9", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15553293-2\" WHERE \"nation\" = 'ethiopia (eth)' AND \"rank\" > 9" + }, + { + "db_id": "2-15553293-2", + "question": "What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select min(`bronze`) from `2-15553293-2` where `nation` = 'egypt (egy)' and `gold` < 2", + "amb_query": "SELECT MIN(\"bronze\") FROM \"2-15553293-2\" WHERE nation IN ('egypt (egy)', 'egypt, north africa') AND \"gold\" < 2" + }, + { + "db_id": "2-15553293-2", + "question": "What is the highest Total with a Rank that is smaller than 4 and a Nation of tunisia (tun) with a Gold that is smaller than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select max(`total`) from `2-15553293-2` where `rank` < 4 and `nation` = 'tunisia (tun)' and `gold` < 2", + "amb_query": "SELECT MAX(\"total\") FROM \"2-15553293-2\" WHERE \"rank\" < 4 AND nation IN ('tunisia (tun)', 'tunisia') AND \"gold\" < 2" + }, + { + "db_id": "2-15553293-2", + "question": "What is the average Total with a Nation of ethiopia (eth) and a Rank that is larger than 9?", + "evidence": "", + "schema_text_wo_content": "Table 2-15553293-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-15553293-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [algeria (alg), morocco country, tunisia]), `Gold` (Example values: [4.0, 2.0, 1.0]), `Silver` (Example values: [2.0, 4.0, 0.0]), `Bronze` (Example values: [2.0, 1.0, 0.0]), `Total` (Example values: [8.0, 7.0, 5.0])]\n", + "ori_query": "select avg(`total`) from `2-15553293-2` where `nation` = 'ethiopia (eth)' and `rank` > 9", + "amb_query": "SELECT AVG(\"total\") FROM \"2-15553293-2\" WHERE nation IN ('ethiopia (eth)', 'ethiopia (eth), africa') AND \"rank\" > 9" + }, + { + "db_id": "2-15715109-52", + "question": "Which Height (cm) has a Birthplace of trenton, new jersey?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-52, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 2007–2008 Team, NHL rights, if any]\n", + "schema_text_with_content": "Table 2-15715109-52, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [34.0, 30.0, 24.0]), `Name` (Example values: [joe palmer, jeremy smith, jonathon blum]), `Height (cm)` (Example values: [185.0, 183.0, 178.0]), `Weight (kg)` (Example values: [93.0, 86.0, 84.0]), `Birthdate` (Example values: [february 19, 1988, april 13, 1989, january 30, 1989]), `Birthplace` (Example values: [yorkville, new york, dearborn, michigan, santa margarita, california]), `2007–2008 Team` (Example values: [ohio state buckeyes, plymouth whalers ( ohl ), vancouver giants ( whl )]), `NHL rights, if any` (Example values: [chicago blackhawks, nashville predators, st. louis blues])]\n", + "ori_query": "select avg(`height (cm)`) from `2-15715109-52` where `birthplace` = 'trenton, new jersey'", + "amb_query": "SELECT AVG(\"height (cm)\") FROM \"2-15715109-52\" WHERE birthplace IN ('trenton, new jersey, usa', 'trenton, new jersey')" + }, + { + "db_id": "2-15715109-52", + "question": "Which Height (cm) has a Birthplace of duluth, minnesota?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-52, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 2007–2008 Team, NHL rights, if any]\n", + "schema_text_with_content": "Table 2-15715109-52, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [34.0, 30.0, 24.0]), `Name` (Example values: [joe palmer, jeremy smith, jonathon blum]), `Height (cm)` (Example values: [185.0, 183.0, 178.0]), `Weight (kg)` (Example values: [93.0, 86.0, 84.0]), `Birthdate` (Example values: [february 19, 1988, april 13, 1989, january 30, 1989]), `Birthplace` (Example values: [yorkville, new york, dearborn, michigan, santa margarita, california]), `2007–2008 Team` (Example values: [ohio state buckeyes, plymouth whalers ( ohl ), vancouver giants ( whl )]), `NHL rights, if any` (Example values: [chicago blackhawks, nashville predators, st. louis blues])]\n", + "ori_query": "select avg(`height (cm)`) from `2-15715109-52` where `birthplace` = 'duluth, minnesota'", + "amb_query": "SELECT AVG(\"height (cm)\") FROM \"2-15715109-52\" WHERE birthplace IN ('duluth, minnesota', 'duluth, minnesota, usa')" + }, + { + "db_id": "2-15715109-52", + "question": "Which Height (cm) has a Birthplace of middletown, new jersey?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-52, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 2007–2008 Team, NHL rights, if any]\n", + "schema_text_with_content": "Table 2-15715109-52, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [34.0, 30.0, 24.0]), `Name` (Example values: [joe palmer, jeremy smith, jonathon blum]), `Height (cm)` (Example values: [185.0, 183.0, 178.0]), `Weight (kg)` (Example values: [93.0, 86.0, 84.0]), `Birthdate` (Example values: [february 19, 1988, april 13, 1989, january 30, 1989]), `Birthplace` (Example values: [yorkville, new york, dearborn, michigan, santa margarita, california]), `2007–2008 Team` (Example values: [ohio state buckeyes, plymouth whalers ( ohl ), vancouver giants ( whl )]), `NHL rights, if any` (Example values: [chicago blackhawks, nashville predators, st. louis blues])]\n", + "ori_query": "select count(`height (cm)`) from `2-15715109-52` where `birthplace` = 'middletown, new jersey'", + "amb_query": "SELECT COUNT(\"height (cm)\") FROM \"2-15715109-52\" WHERE birthplace IN ('middletown, new jersey', 'middletown, new jersey, usa')" + }, + { + "db_id": "2-15715109-52", + "question": "Which Height (cm) has a Birthplace of orange, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-52, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 2007–2008 Team, NHL rights, if any]\n", + "schema_text_with_content": "Table 2-15715109-52, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [34.0, 30.0, 24.0]), `Name` (Example values: [joe palmer, jeremy smith, jonathon blum]), `Height (cm)` (Example values: [185.0, 183.0, 178.0]), `Weight (kg)` (Example values: [93.0, 86.0, 84.0]), `Birthdate` (Example values: [february 19, 1988, april 13, 1989, january 30, 1989]), `Birthplace` (Example values: [yorkville, new york, dearborn, michigan, santa margarita, california]), `2007–2008 Team` (Example values: [ohio state buckeyes, plymouth whalers ( ohl ), vancouver giants ( whl )]), `NHL rights, if any` (Example values: [chicago blackhawks, nashville predators, st. louis blues])]\n", + "ori_query": "select count(`height (cm)`) from `2-15715109-52` where `birthplace` = 'orange, california'", + "amb_query": "SELECT COUNT(\"height (cm)\") FROM \"2-15715109-52\" WHERE birthplace IN ('orange, ca', 'orange, california')" + }, + { + "db_id": "2-15715109-52", + "question": "Which Height (cm) has a Birthplace of bloomfield hills, michigan?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-52, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 2007–2008 Team, NHL rights, if any]\n", + "schema_text_with_content": "Table 2-15715109-52, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [34.0, 30.0, 24.0]), `Name` (Example values: [joe palmer, jeremy smith, jonathon blum]), `Height (cm)` (Example values: [185.0, 183.0, 178.0]), `Weight (kg)` (Example values: [93.0, 86.0, 84.0]), `Birthdate` (Example values: [february 19, 1988, april 13, 1989, january 30, 1989]), `Birthplace` (Example values: [yorkville, new york, dearborn, michigan, santa margarita, california]), `2007–2008 Team` (Example values: [ohio state buckeyes, plymouth whalers ( ohl ), vancouver giants ( whl )]), `NHL rights, if any` (Example values: [chicago blackhawks, nashville predators, st. louis blues])]\n", + "ori_query": "select avg(`height (cm)`) from `2-15715109-52` where `birthplace` = 'bloomfield hills, michigan'", + "amb_query": "SELECT AVG(\"height (cm)\") FROM \"2-15715109-52\" WHERE birthplace IN ('bloomfield hills, michigan', 'bloomfield hills, mi')" + }, + { + "db_id": "2-15715109-52", + "question": "Which Height (cm) has a Birthplace of new canaan, connecticut?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-52, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 2007–2008 Team, NHL rights, if any]\n", + "schema_text_with_content": "Table 2-15715109-52, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [34.0, 30.0, 24.0]), `Name` (Example values: [joe palmer, jeremy smith, jonathon blum]), `Height (cm)` (Example values: [185.0, 183.0, 178.0]), `Weight (kg)` (Example values: [93.0, 86.0, 84.0]), `Birthdate` (Example values: [february 19, 1988, april 13, 1989, january 30, 1989]), `Birthplace` (Example values: [yorkville, new york, dearborn, michigan, santa margarita, california]), `2007–2008 Team` (Example values: [ohio state buckeyes, plymouth whalers ( ohl ), vancouver giants ( whl )]), `NHL rights, if any` (Example values: [chicago blackhawks, nashville predators, st. louis blues])]\n", + "ori_query": "select count(`height (cm)`) from `2-15715109-52` where `birthplace` = 'new canaan, connecticut'", + "amb_query": "SELECT COUNT(\"height (cm)\") FROM \"2-15715109-52\" WHERE birthplace IN ('new canaan, ct', 'new canaan, connecticut')" + }, + { + "db_id": "2-1682026-5", + "question": "Name the highest Profits (billion $) which has a Company of icbc?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select max(`profits (billion $)`) from `2-1682026-5` where `company` = 'icbc'", + "amb_query": "SELECT MAX(\"profits (billion $)\") FROM \"2-1682026-5\" WHERE company IN ('industrial and commercial bank of china', 'icbc')" + }, + { + "db_id": "2-1682026-5", + "question": "Name the highest Profits (billion $) which has a Company of berkshire hathaway?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select max(`profits (billion $)`) from `2-1682026-5` where `company` = 'berkshire hathaway'", + "amb_query": "SELECT MAX(\"profits (billion $)\") FROM \"2-1682026-5\" WHERE company IN ('berkshire hathaway company', 'berkshire hathaway')" + }, + { + "db_id": "2-1682026-5", + "question": "Name the lowest Market Value (billion $) which has Assets (billion $) larger than 276.81, and a Company of bp, and Profits (billion $) larger than 17.21?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select min(`market value (billion $)`) from `2-1682026-5` where `assets (billion $)` > 276.81 and `company` = 'bp' and `profits (billion $)` > 17.21", + "amb_query": "SELECT MIN(\"market value (billion $)\") FROM \"2-1682026-5\" WHERE \"assets (billion $)\" > 276.81 AND company IN ('british petroleum', 'bp') AND \"profits (billion $)\" > 17.21" + }, + { + "db_id": "2-1682026-5", + "question": "Name the lowest Market Value (billion $) which has Assets (billion $) larger than 276.81, and a Company of general electric, and Profits (billion $) larger than 17.21?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select min(`market value (billion $)`) from `2-1682026-5` where `assets (billion $)` > 276.81 and `company` = 'general electric' and `profits (billion $)` > 17.21", + "amb_query": "SELECT MIN(\"market value (billion $)\") FROM \"2-1682026-5\" WHERE \"assets (billion $)\" > 276.81 AND company IN ('general electric co.', 'general electric') AND \"profits (billion $)\" > 17.21" + }, + { + "db_id": "2-1682026-5", + "question": "Name the Sales (billion $) which have a Company of gazprom?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select `sales (billion $)` from `2-1682026-5` where `company` = 'gazprom'", + "amb_query": "SELECT \"sales (billion $)\" FROM \"2-1682026-5\" WHERE company IN ('gazprom group', 'gazprom')" + }, + { + "db_id": "2-1682026-5", + "question": "Name the highest Profits (billion $) which has a Company of walmart?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select max(`profits (billion $)`) from `2-1682026-5` where `company` = 'walmart'", + "amb_query": "SELECT MAX(\"profits (billion $)\") FROM \"2-1682026-5\" WHERE company IN ('walmart', 'walmart company')" + }, + { + "db_id": "2-1682026-5", + "question": "Name the lowest Market Value (billion $) which has Assets (billion $) larger than 276.81, and a Company of toyota, and Profits (billion $) larger than 17.21?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select min(`market value (billion $)`) from `2-1682026-5` where `assets (billion $)` > 276.81 and `company` = 'toyota' and `profits (billion $)` > 17.21", + "amb_query": "SELECT MIN(\"market value (billion $)\") FROM \"2-1682026-5\" WHERE \"assets (billion $)\" > 276.81 AND company IN ('toyota automotive', 'toyota') AND \"profits (billion $)\" > 17.21" + }, + { + "db_id": "2-1682026-5", + "question": "Name the Sales (billion $) which have a Company of exxonmobil?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select `sales (billion $)` from `2-1682026-5` where `company` = 'exxonmobil'", + "amb_query": "SELECT \"sales (billion $)\" FROM \"2-1682026-5\" WHERE company IN ('exxonmobil company', 'exxonmobil')" + }, + { + "db_id": "2-1682026-5", + "question": "How many Assets (billion $) has an Industry of conglomerate, and a Rank of 9, and a Market Value (billion $) larger than 121.7?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select sum(`assets (billion $)`) from `2-1682026-5` where `industry` = 'conglomerate' and `rank` = 9 and `market value (billion $)` > 121.7", + "amb_query": "SELECT SUM(\"assets (billion $)\") FROM \"2-1682026-5\" WHERE industry IN ('conglomerate', 'conglomerate industry') AND \"rank\" = 9 AND \"market value (billion $)\" > 121.7" + }, + { + "db_id": "2-1682026-5", + "question": "How many Assets (billion $) has an Industry of oil and gas, and a Rank of 9, and a Market Value (billion $) larger than 121.7?", + "evidence": "", + "schema_text_wo_content": "Table 2-1682026-5, columns = [Rank, Company, Headquarters, Industry, Sales (billion $), Profits (billion $), Assets (billion $), Market Value (billion $)]\n", + "schema_text_with_content": "Table 2-1682026-5, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Company` (Example values: [general electric co., royal dutch shell, toyota automotive]), `Headquarters` (Example values: [usa, netherlands, japan]), `Industry` (Example values: [conglomerate industry, oil and gas industry, automotive]), `Sales (billion $)` (Example values: [182.52, 458.36, 263.42]), `Profits (billion $)` (Example values: [17.41, 26.28, 17.21]), `Assets (billion $)` (Example values: [797.77, 278.44, 324.98]), `Market Value (billion $)` (Example values: [88.77, 135.1, 102.35])]\n", + "ori_query": "select sum(`assets (billion $)`) from `2-1682026-5` where `industry` = 'oil and gas' and `rank` = 9 and `market value (billion $)` > 121.7", + "amb_query": "SELECT SUM(\"assets (billion $)\") FROM \"2-1682026-5\" WHERE industry IN ('oil and gas', 'oil and gas industry', 'refining and marketing', 'oil sands extraction') AND \"rank\" = 9 AND \"market value (billion $)\" > 121.7" + }, + { + "db_id": "2-17511295-9", + "question": "What was the flyers' record when the visitors were ny rangers?", + "evidence": "", + "schema_text_wo_content": "Table 2-17511295-9, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-17511295-9, columns = [`Date` (Example values: [april 1, april 3, april 4]), `Visitor` (Example values: [philadelphia, toronto, the sunshine state]), `Score` (Example values: [2 – 3, 5 – 8, 3 – 4]), `Home` (Example values: [toronto, philadelphia, ottawa]), `Decision` (Example values: [biron, niittymaki]), `Attendance` (Example values: [19,340, 19,727, 19,557]), `Record` (Example values: [41–25–10, 42–25–10, 42–25–11])]\n", + "ori_query": "select `record` from `2-17511295-9` where `visitor` = 'ny rangers'", + "amb_query": "SELECT \"record\" FROM \"2-17511295-9\" WHERE visitor IN ('ny rangers', 'nyr')" + }, + { + "db_id": "2-17511295-9", + "question": "What was the flyers' record when the visitors were florida?", + "evidence": "", + "schema_text_wo_content": "Table 2-17511295-9, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-17511295-9, columns = [`Date` (Example values: [april 1, april 3, april 4]), `Visitor` (Example values: [philadelphia, toronto, the sunshine state]), `Score` (Example values: [2 – 3, 5 – 8, 3 – 4]), `Home` (Example values: [toronto, philadelphia, ottawa]), `Decision` (Example values: [biron, niittymaki]), `Attendance` (Example values: [19,340, 19,727, 19,557]), `Record` (Example values: [41–25–10, 42–25–10, 42–25–11])]\n", + "ori_query": "select `record` from `2-17511295-9` where `visitor` = 'florida'", + "amb_query": "SELECT \"record\" FROM \"2-17511295-9\" WHERE visitor IN ('the sunshine state', 'florida')" + }, + { + "db_id": "2-1677211-1", + "question": "What is the call sign for 90.9 FM which is in pennsylvania?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `call sign` from `2-1677211-1` where `state` = 'pennsylvania' and `frequency` = '90.9 fm'", + "amb_query": "SELECT \"call sign\" FROM \"2-1677211-1\" WHERE state IN ('pennsylvania', 'pennsylvania, usa') AND \"frequency\" = '90.9 fm'" + }, + { + "db_id": "2-1677211-1", + "question": "What is the call sign for 90.9 FM which is in illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `call sign` from `2-1677211-1` where `state` = 'illinois' and `frequency` = '90.9 fm'", + "amb_query": "SELECT \"call sign\" FROM \"2-1677211-1\" WHERE state IN ('illinois', 'aurora, illinois', 'illinois region', 'rockford, illinois') AND \"frequency\" = '90.9 fm'" + }, + { + "db_id": "2-1677211-1", + "question": "What is the frequency of the radio station in michigan that has a call sign of WGNR?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `frequency` from `2-1677211-1` where `state` = 'michigan' and `call sign` = 'wgnr'", + "amb_query": "SELECT \"frequency\" FROM \"2-1677211-1\" WHERE state IN ('the great lakes state', 'michigan') AND \"call sign\" = 'wgnr'" + }, + { + "db_id": "2-1677211-1", + "question": "What is the call sign for 90.9 FM which is in Florida?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `call sign` from `2-1677211-1` where `state` = 'florida' and `frequency` = '90.9 fm'", + "amb_query": "SELECT \"call sign\" FROM \"2-1677211-1\" WHERE state IN ('the sunshine state', 'florida', 'florida state') AND \"frequency\" = '90.9 fm'" + }, + { + "db_id": "2-1677211-1", + "question": "What is the FCC info for the radio station in West Lafayette, Indiana?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `fcc info` from `2-1677211-1` where `state` = 'indiana' and `city of license` = 'west lafayette'", + "amb_query": "SELECT \"fcc info\" FROM \"2-1677211-1\" WHERE state IN ('indiana, united states', 'indiana region', 'indiana', 'indiana, usa') AND city of license IN ('city of west lafayette', 'west lafayette')" + }, + { + "db_id": "2-1677211-1", + "question": "What is the frequency of the radio station in Indiana that has a call sign of WGNR?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `frequency` from `2-1677211-1` where `state` = 'indiana' and `call sign` = 'wgnr'", + "amb_query": "SELECT \"frequency\" FROM \"2-1677211-1\" WHERE state IN ('indiana, united states', 'indiana region', 'indiana', 'indiana, usa') AND \"call sign\" = 'wgnr'" + }, + { + "db_id": "2-1677211-1", + "question": "What state is the radio station in that has a frequency of 90.1 FM and a city license in lakeland?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `state` from `2-1677211-1` where `frequency` = '90.1 fm' and `city of license` = 'lakeland'", + "amb_query": "SELECT \"state\" FROM \"2-1677211-1\" WHERE \"frequency\" = '90.1 fm' AND city of license IN ('lakeland, usa', 'lakeland')" + }, + { + "db_id": "2-1677211-1", + "question": "What state is the radio station in that has a frequency of 90.1 FM and a city license in zeeland?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `state` from `2-1677211-1` where `frequency` = '90.1 fm' and `city of license` = 'zeeland'", + "amb_query": "SELECT \"state\" FROM \"2-1677211-1\" WHERE \"frequency\" = '90.1 fm' AND city of license IN ('zeeland, usa', 'zeeland')" + }, + { + "db_id": "2-1677211-1", + "question": "What state is the radio station in that has a frequency of 90.1 FM and a city license in tuscaloosa?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `state` from `2-1677211-1` where `frequency` = '90.1 fm' and `city of license` = 'tuscaloosa'", + "amb_query": "SELECT \"state\" FROM \"2-1677211-1\" WHERE \"frequency\" = '90.1 fm' AND city of license IN ('city of tuscaloosa', 'tuscaloosa')" + }, + { + "db_id": "2-1677211-1", + "question": "What state is the radio station in that has a frequency of 90.1 FM and a city license in New Castle?", + "evidence": "", + "schema_text_wo_content": "Table 2-1677211-1, columns = [Call sign, Frequency, City of license, State, FCC info]\n", + "schema_text_with_content": "Table 2-1677211-1, columns = [`Call sign` (Example values: [wmbv, wrnf, wmft]), `Frequency` (Example values: [91.9 fm, 89.5 fm, 88.9 fm]), `City of license` (Example values: [dixons mills, selma, city of tuscaloosa]), `State` (Example values: [alabama, florida state, florida]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `state` from `2-1677211-1` where `frequency` = '90.1 fm' and `city of license` = 'new castle'", + "amb_query": "SELECT \"state\" FROM \"2-1677211-1\" WHERE \"frequency\" = '90.1 fm' AND city of license IN ('new castle', 'new castle, delaware')" + }, + { + "db_id": "1-11622392-1", + "question": "How many tournaments in pennsylvania had a purse higher than 330105.1624276874?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622392-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622392-1, columns = [`Date` (Example values: [jan 7, feb 4, feb 11]), `Tournament` (Example values: [mony senior tournament of champions, royal caribbean classic, gte suncoast classic]), `Location` (Example values: [california, florida, houston, texas]), `Purse( $ )` (Example values: [250000.0, 400000.0, 450000.0]), `Winner` (Example values: [george archer (2), lee trevino (1), mike hill (1)]), `Score` (Example values: [283 (-5), 206 (-7), 207 (-9)]), `1st Prize( $ )` (Example values: [37500.0, 60000.0, 67500.0])]\n", + "ori_query": "select count(`1st prize( $ )`) from `1-11622392-1` where `location` = 'pennsylvania' and `purse( $ )` > 330105.1624276874", + "amb_query": "SELECT COUNT(\"1st prize( $ )\") FROM \"1-11622392-1\" WHERE location IN ('pennsylvania', 'pa') AND \"purse( $ )\" > 330105.1624276874" + }, + { + "db_id": "1-11622392-1", + "question": "When was the tournament in utah held?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622392-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622392-1, columns = [`Date` (Example values: [jan 7, feb 4, feb 11]), `Tournament` (Example values: [mony senior tournament of champions, royal caribbean classic, gte suncoast classic]), `Location` (Example values: [california, florida, houston, texas]), `Purse( $ )` (Example values: [250000.0, 400000.0, 450000.0]), `Winner` (Example values: [george archer (2), lee trevino (1), mike hill (1)]), `Score` (Example values: [283 (-5), 206 (-7), 207 (-9)]), `1st Prize( $ )` (Example values: [37500.0, 60000.0, 67500.0])]\n", + "ori_query": "select `date` from `1-11622392-1` where `location` = 'utah'", + "amb_query": "SELECT \"date\" FROM \"1-11622392-1\" WHERE location IN ('utah state', 'utah')" + }, + { + "db_id": "1-11622392-1", + "question": "How many tournaments in ohio had a purse higher than 330105.1624276874?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622392-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622392-1, columns = [`Date` (Example values: [jan 7, feb 4, feb 11]), `Tournament` (Example values: [mony senior tournament of champions, royal caribbean classic, gte suncoast classic]), `Location` (Example values: [california, florida, houston, texas]), `Purse( $ )` (Example values: [250000.0, 400000.0, 450000.0]), `Winner` (Example values: [george archer (2), lee trevino (1), mike hill (1)]), `Score` (Example values: [283 (-5), 206 (-7), 207 (-9)]), `1st Prize( $ )` (Example values: [37500.0, 60000.0, 67500.0])]\n", + "ori_query": "select count(`1st prize( $ )`) from `1-11622392-1` where `location` = 'ohio' and `purse( $ )` > 330105.1624276874", + "amb_query": "SELECT COUNT(\"1st prize( $ )\") FROM \"1-11622392-1\" WHERE location IN ('state of ohio', 'ohio') AND \"purse( $ )\" > 330105.1624276874" + }, + { + "db_id": "1-11622392-1", + "question": "When was the tournament in massachusetts held?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622392-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622392-1, columns = [`Date` (Example values: [jan 7, feb 4, feb 11]), `Tournament` (Example values: [mony senior tournament of champions, royal caribbean classic, gte suncoast classic]), `Location` (Example values: [california, florida, houston, texas]), `Purse( $ )` (Example values: [250000.0, 400000.0, 450000.0]), `Winner` (Example values: [george archer (2), lee trevino (1), mike hill (1)]), `Score` (Example values: [283 (-5), 206 (-7), 207 (-9)]), `1st Prize( $ )` (Example values: [37500.0, 60000.0, 67500.0])]\n", + "ori_query": "select `date` from `1-11622392-1` where `location` = 'massachusetts'", + "amb_query": "SELECT \"date\" FROM \"1-11622392-1\" WHERE location IN ('massachusetts', 'massachusetts, new england')" + }, + { + "db_id": "1-11622392-1", + "question": "When was the tournament in Washington held?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622392-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622392-1, columns = [`Date` (Example values: [jan 7, feb 4, feb 11]), `Tournament` (Example values: [mony senior tournament of champions, royal caribbean classic, gte suncoast classic]), `Location` (Example values: [california, florida, houston, texas]), `Purse( $ )` (Example values: [250000.0, 400000.0, 450000.0]), `Winner` (Example values: [george archer (2), lee trevino (1), mike hill (1)]), `Score` (Example values: [283 (-5), 206 (-7), 207 (-9)]), `1st Prize( $ )` (Example values: [37500.0, 60000.0, 67500.0])]\n", + "ori_query": "select `date` from `1-11622392-1` where `location` = 'washington'", + "amb_query": "SELECT \"date\" FROM \"1-11622392-1\" WHERE location IN ('washington, usa', 'washington')" + }, + { + "db_id": "1-11622392-1", + "question": "How many tournaments in Texas had a purse higher than 330105.1624276874?", + "evidence": "", + "schema_text_wo_content": "Table 1-11622392-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11622392-1, columns = [`Date` (Example values: [jan 7, feb 4, feb 11]), `Tournament` (Example values: [mony senior tournament of champions, royal caribbean classic, gte suncoast classic]), `Location` (Example values: [california, florida, houston, texas]), `Purse( $ )` (Example values: [250000.0, 400000.0, 450000.0]), `Winner` (Example values: [george archer (2), lee trevino (1), mike hill (1)]), `Score` (Example values: [283 (-5), 206 (-7), 207 (-9)]), `1st Prize( $ )` (Example values: [37500.0, 60000.0, 67500.0])]\n", + "ori_query": "select count(`1st prize( $ )`) from `1-11622392-1` where `location` = 'texas' and `purse( $ )` > 330105.1624276874", + "amb_query": "SELECT COUNT(\"1st prize( $ )\") FROM \"1-11622392-1\" WHERE location IN ('texas', 'houston, texas') AND \"purse( $ )\" > 330105.1624276874" + }, + { + "db_id": "2-17444611-1", + "question": "Who was appointed on october 2012?", + "evidence": "", + "schema_text_wo_content": "Table 2-17444611-1, columns = [Name, Background, Title, Appointment, Presentation of Credentials]\n", + "schema_text_with_content": "Table 2-17444611-1, columns = [`Name` (Example values: [william h. christensen, robert g. miner, william a. costello]), `Background` (Example values: [non-career appointee, foreign service officer]), `Title` (Example values: [chargé d'affaires ad interim, ambassador extraordinary and plenipotentiary]), `Appointment` (Example values: [august 31, 1962, october 23, 1962, september 13, 1967]), `Presentation of Credentials` (Example values: [august 31, 1962, december 1, 1962, october 26, 1967])]\n", + "ori_query": "select `name` from `2-17444611-1` where `appointment` = 'october 2012'", + "amb_query": "SELECT \"name\" FROM \"2-17444611-1\" WHERE appointment IN ('october 2012', '10/2012')" + }, + { + "db_id": "2-17444611-1", + "question": "Who was appointed on december 1, 1981?", + "evidence": "", + "schema_text_wo_content": "Table 2-17444611-1, columns = [Name, Background, Title, Appointment, Presentation of Credentials]\n", + "schema_text_with_content": "Table 2-17444611-1, columns = [`Name` (Example values: [william h. christensen, robert g. miner, william a. costello]), `Background` (Example values: [non-career appointee, foreign service officer]), `Title` (Example values: [chargé d'affaires ad interim, ambassador extraordinary and plenipotentiary]), `Appointment` (Example values: [august 31, 1962, october 23, 1962, september 13, 1967]), `Presentation of Credentials` (Example values: [august 31, 1962, december 1, 1962, october 26, 1967])]\n", + "ori_query": "select `name` from `2-17444611-1` where `appointment` = 'december 1, 1981'", + "amb_query": "SELECT \"name\" FROM \"2-17444611-1\" WHERE appointment IN ('december 1, 1981', '12/1/1981')" + }, + { + "db_id": "2-17444611-1", + "question": "Who was appointed on October 24, 1997?", + "evidence": "", + "schema_text_wo_content": "Table 2-17444611-1, columns = [Name, Background, Title, Appointment, Presentation of Credentials]\n", + "schema_text_with_content": "Table 2-17444611-1, columns = [`Name` (Example values: [william h. christensen, robert g. miner, william a. costello]), `Background` (Example values: [non-career appointee, foreign service officer]), `Title` (Example values: [chargé d'affaires ad interim, ambassador extraordinary and plenipotentiary]), `Appointment` (Example values: [august 31, 1962, october 23, 1962, september 13, 1967]), `Presentation of Credentials` (Example values: [august 31, 1962, december 1, 1962, october 26, 1967])]\n", + "ori_query": "select `name` from `2-17444611-1` where `appointment` = 'october 24, 1997'", + "amb_query": "SELECT \"name\" FROM \"2-17444611-1\" WHERE appointment IN ('october 24, 1997', '10-24-1997')" + }, + { + "db_id": "2-18569011-6", + "question": "What's kazakhstan's lane when they were ranked before 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18569011-6, columns = [Rank, Lane, Athlete, Nationality, Time, React]\n", + "schema_text_with_content": "Table 2-18569011-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [5.0, 3.0, 9.0]), `Athlete` (Example values: [roman smirnov, walter dix, rolando palacios]), `Nationality` (Example values: [russia, located in eastern europe and northern asia, united states, honduras nation]), `Time` (Example values: [20.76, 20.77, 20.81]), `React` (Example values: [0.166, 0.185, 0.202])]\n", + "ori_query": "select max(`lane`) from `2-18569011-6` where `nationality` = 'kazakhstan' and `rank` < 1", + "amb_query": "SELECT MAX(\"lane\") FROM \"2-18569011-6\" WHERE nationality IN ('kazakhstan republic', 'kazakhstan') AND \"rank\" < 1" + }, + { + "db_id": "2-18569011-6", + "question": "What's honduras's lane with a time more than 21.55?", + "evidence": "", + "schema_text_wo_content": "Table 2-18569011-6, columns = [Rank, Lane, Athlete, Nationality, Time, React]\n", + "schema_text_with_content": "Table 2-18569011-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [5.0, 3.0, 9.0]), `Athlete` (Example values: [roman smirnov, walter dix, rolando palacios]), `Nationality` (Example values: [russia, located in eastern europe and northern asia, united states, honduras nation]), `Time` (Example values: [20.76, 20.77, 20.81]), `React` (Example values: [0.166, 0.185, 0.202])]\n", + "ori_query": "select sum(`lane`) from `2-18569011-6` where `nationality` = 'honduras' and `time` > 21.55", + "amb_query": "SELECT SUM(\"lane\") FROM \"2-18569011-6\" WHERE nationality IN ('honduras nation', 'honduras') AND \"time\" > 21.55" + }, + { + "db_id": "2-18569011-6", + "question": "What's Russia's lane when they were ranked before 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18569011-6, columns = [Rank, Lane, Athlete, Nationality, Time, React]\n", + "schema_text_with_content": "Table 2-18569011-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [5.0, 3.0, 9.0]), `Athlete` (Example values: [roman smirnov, walter dix, rolando palacios]), `Nationality` (Example values: [russia, located in eastern europe and northern asia, united states, honduras nation]), `Time` (Example values: [20.76, 20.77, 20.81]), `React` (Example values: [0.166, 0.185, 0.202])]\n", + "ori_query": "select max(`lane`) from `2-18569011-6` where `nationality` = 'russia' and `rank` < 1", + "amb_query": "SELECT MAX(\"lane\") FROM \"2-18569011-6\" WHERE nationality IN ('russia', 'russia, located in eastern europe and northern asia') AND \"rank\" < 1" + }, + { + "db_id": "2-18569011-6", + "question": "What's Bulgaria's lane with a time more than 21.55?", + "evidence": "", + "schema_text_wo_content": "Table 2-18569011-6, columns = [Rank, Lane, Athlete, Nationality, Time, React]\n", + "schema_text_with_content": "Table 2-18569011-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [5.0, 3.0, 9.0]), `Athlete` (Example values: [roman smirnov, walter dix, rolando palacios]), `Nationality` (Example values: [russia, located in eastern europe and northern asia, united states, honduras nation]), `Time` (Example values: [20.76, 20.77, 20.81]), `React` (Example values: [0.166, 0.185, 0.202])]\n", + "ori_query": "select sum(`lane`) from `2-18569011-6` where `nationality` = 'bulgaria' and `time` > 21.55", + "amb_query": "SELECT SUM(\"lane\") FROM \"2-18569011-6\" WHERE nationality IN ('bulgaria', 'bulgarian') AND \"time\" > 21.55" + }, + { + "db_id": "2-18569011-6", + "question": "What's Brazil's lane with a time less than 21.15?", + "evidence": "", + "schema_text_wo_content": "Table 2-18569011-6, columns = [Rank, Lane, Athlete, Nationality, Time, React]\n", + "schema_text_with_content": "Table 2-18569011-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Lane` (Example values: [5.0, 3.0, 9.0]), `Athlete` (Example values: [roman smirnov, walter dix, rolando palacios]), `Nationality` (Example values: [russia, located in eastern europe and northern asia, united states, honduras nation]), `Time` (Example values: [20.76, 20.77, 20.81]), `React` (Example values: [0.166, 0.185, 0.202])]\n", + "ori_query": "select min(`lane`) from `2-18569011-6` where `nationality` = 'brazil' and `time` < 21.15", + "amb_query": "SELECT MIN(\"lane\") FROM \"2-18569011-6\" WHERE nationality IN ('brazil', 'brazil, officially the federative republic of brazil') AND \"time\" < 21.15" + }, + { + "db_id": "2-1453730-1", + "question": "Which Total is the highest one that has a Bronze of 0, and a Nation of denmark, and a Gold smaller than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1453730-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1453730-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, eastern germany, switzerland, europe]), `Gold` (Example values: [3.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 2.0, 0.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [6.0, 4.0, 1.0])]\n", + "ori_query": "select max(`total`) from `2-1453730-1` where `bronze` = 0 and `nation` = 'denmark' and `gold` < 0", + "amb_query": "SELECT MAX(\"total\") FROM \"2-1453730-1\" WHERE \"bronze\" = 0 AND nation IN ('denmark country', 'denmark') AND \"gold\" < 0" + }, + { + "db_id": "2-1453730-1", + "question": "Which Rank is the lowest one that has a Nation of east germany, and a Bronze smaller than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1453730-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1453730-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, eastern germany, switzerland, europe]), `Gold` (Example values: [3.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 2.0, 0.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [6.0, 4.0, 1.0])]\n", + "ori_query": "select min(`rank`) from `2-1453730-1` where `nation` = 'east germany' and `bronze` < 0", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-1453730-1\" WHERE nation IN ('east germany', 'eastern germany') AND \"bronze\" < 0" + }, + { + "db_id": "2-1453730-1", + "question": "Which Rank is the lowest one that has a Nation of switzerland, and a Bronze smaller than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1453730-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1453730-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, eastern germany, switzerland, europe]), `Gold` (Example values: [3.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 2.0, 0.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [6.0, 4.0, 1.0])]\n", + "ori_query": "select min(`rank`) from `2-1453730-1` where `nation` = 'switzerland' and `bronze` < 0", + "amb_query": "SELECT MIN(\"rank\") FROM \"2-1453730-1\" WHERE nation IN ('switzerland', 'switzerland, europe') AND \"bronze\" < 0" + }, + { + "db_id": "2-1453730-1", + "question": "Which Total is the highest one that has a Bronze of 0, and a Nation of poland, and a Gold smaller than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-1453730-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-1453730-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [soviet union, eastern germany, switzerland, europe]), `Gold` (Example values: [3.0, 2.0, 1.0]), `Silver` (Example values: [1.0, 2.0, 0.0]), `Bronze` (Example values: [2.0, 0.0, 1.0]), `Total` (Example values: [6.0, 4.0, 1.0])]\n", + "ori_query": "select max(`total`) from `2-1453730-1` where `bronze` = 0 and `nation` = 'poland' and `gold` < 0", + "amb_query": "SELECT MAX(\"total\") FROM \"2-1453730-1\" WHERE \"bronze\" = 0 AND nation IN ('poland', 'poland country') AND \"gold\" < 0" + }, + { + "db_id": "2-1720632-2", + "question": "What is the total number of area listed for kwa langa with a population less than 409?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select count(`area (km 2 )`) from `2-1720632-2` where `population` < 409 and `place` = 'kwa langa'", + "amb_query": "SELECT COUNT(\"area (km 2 )\") FROM \"2-1720632-2\" WHERE \"population\" < 409 AND place IN ('kwa langa, south africa', 'kwa langa')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the total number of area listed for gqebera with a population less than 409?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select count(`area (km 2 )`) from `2-1720632-2` where `population` < 409 and `place` = 'gqebera'", + "amb_query": "SELECT COUNT(\"area (km 2 )\") FROM \"2-1720632-2\" WHERE \"population\" < 409 AND place IN ('gqebera area', 'gqebera')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the lowest area for young park that speaks afrikaans?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select min(`area (km 2 )`) from `2-1720632-2` where `most spoken language` = 'afrikaans' and `place` = 'young park'", + "amb_query": "SELECT MIN(\"area (km 2 )\") FROM \"2-1720632-2\" WHERE \"most spoken language\" = 'afrikaans' AND place IN ('young park neighborhood', 'young park')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the lowest area for kabah that speaks afrikaans?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select min(`area (km 2 )`) from `2-1720632-2` where `most spoken language` = 'afrikaans' and `place` = 'kabah'", + "amb_query": "SELECT MIN(\"area (km 2 )\") FROM \"2-1720632-2\" WHERE \"most spoken language\" = 'afrikaans' AND place IN ('kabah', 'kabah, south africa')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the lowest code number for the motherwell that has an area bigger than 15.34 squared kilometers, a population greater than 762 and a language of xhosa spoken?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select min(`code`) from `2-1720632-2` where `population` > 762 and `most spoken language` = 'xhosa' and `area (km 2 )` > 15.34 and `place` = 'motherwell'", + "amb_query": "SELECT MIN(\"code\") FROM \"2-1720632-2\" WHERE \"population\" > 762 AND \"most spoken language\" = 'xhosa' AND \"area (km 2 )\" > 15.34 AND place IN ('motherwell area', 'motherwell')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the lowest code number for the woodridge that has an area bigger than 15.34 squared kilometers, a population greater than 762 and a language of xhosa spoken?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select min(`code`) from `2-1720632-2` where `population` > 762 and `most spoken language` = 'xhosa' and `area (km 2 )` > 15.34 and `place` = 'woodridge'", + "amb_query": "SELECT MIN(\"code\") FROM \"2-1720632-2\" WHERE \"population\" > 762 AND \"most spoken language\" = 'xhosa' AND \"area (km 2 )\" > 15.34 AND place IN ('woodridge township', 'woodridge')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the total number of area listed for cannonvale with a population less than 409?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select count(`area (km 2 )`) from `2-1720632-2` where `population` < 409 and `place` = 'cannonvale'", + "amb_query": "SELECT COUNT(\"area (km 2 )\") FROM \"2-1720632-2\" WHERE \"population\" < 409 AND place IN ('cannonvale, south africa', 'cannonvale')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the lowest area for cannonvale that speaks afrikaans?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select min(`area (km 2 )`) from `2-1720632-2` where `most spoken language` = 'afrikaans' and `place` = 'cannonvale'", + "amb_query": "SELECT MIN(\"area (km 2 )\") FROM \"2-1720632-2\" WHERE \"most spoken language\" = 'afrikaans' AND place IN ('cannonvale, south africa', 'cannonvale')" + }, + { + "db_id": "2-1720632-2", + "question": "What is the lowest code number for the remainder of the municipality that has an area bigger than 15.34 squared kilometers, a population greater than 762 and a language of xhosa spoken?", + "evidence": "", + "schema_text_wo_content": "Table 2-1720632-2, columns = [Place, Code, Area (km 2 ), Population, Most spoken language]\n", + "schema_text_with_content": "Table 2-1720632-2, columns = [`Place` (Example values: [beachview, bethelsdorp, blue horizon bay]), `Code` (Example values: [27501.0, 27502.0, 27503.0]), `Area (km 2 )` (Example values: [0.78, 77.64, 2.74]), `Population` (Example values: [500.0, 134,617, 409.0]), `Most spoken language` (Example values: [afrikaans, xhosa, english])]\n", + "ori_query": "select min(`code`) from `2-1720632-2` where `population` > 762 and `most spoken language` = 'xhosa' and `area (km 2 )` > 15.34 and `place` = 'remainder of the municipality'", + "amb_query": "SELECT MIN(\"code\") FROM \"2-1720632-2\" WHERE \"population\" > 762 AND \"most spoken language\" = 'xhosa' AND \"area (km 2 )\" > 15.34 AND place IN ('remainder of the municipality', 'the leftover part of the municipality')" + }, + { + "db_id": "2-16772687-18", + "question": "What nationality is the player from notre dame?", + "evidence": "", + "schema_text_wo_content": "Table 2-16772687-18, columns = [Player, Nationality, Jersey Number(s), Position, Years, From]\n", + "schema_text_with_content": "Table 2-16772687-18, columns = [`Player` (Example values: [steve scheffler category:articles with hcards, russ schoene category:articles with hcards, detlef schrempf category:articles with hcards]), `Nationality` (Example values: [united states, germany, senegal]), `Jersey Number(s)` (Example values: [55, 40, 11]), `Position` (Example values: [c / pf, pf, sf / pf]), `Years` (Example values: [1992 – 1997, 1986 – 1989, 1993 – 1999]), `From` (Example values: [purdue, utc, washington])]\n", + "ori_query": "select `nationality` from `2-16772687-18` where `from` = 'notre dame'", + "amb_query": "SELECT \"nationality\" FROM \"2-16772687-18\" WHERE from IN ('notre dame', 'notre dame, indiana')" + }, + { + "db_id": "2-16772687-18", + "question": "What nationality is the player from creighton?", + "evidence": "", + "schema_text_wo_content": "Table 2-16772687-18, columns = [Player, Nationality, Jersey Number(s), Position, Years, From]\n", + "schema_text_with_content": "Table 2-16772687-18, columns = [`Player` (Example values: [steve scheffler category:articles with hcards, russ schoene category:articles with hcards, detlef schrempf category:articles with hcards]), `Nationality` (Example values: [united states, germany, senegal]), `Jersey Number(s)` (Example values: [55, 40, 11]), `Position` (Example values: [c / pf, pf, sf / pf]), `Years` (Example values: [1992 – 1997, 1986 – 1989, 1993 – 1999]), `From` (Example values: [purdue, utc, washington])]\n", + "ori_query": "select `nationality` from `2-16772687-18` where `from` = 'creighton'", + "amb_query": "SELECT \"nationality\" FROM \"2-16772687-18\" WHERE from IN ('creighton', 'creighton university')" + }, + { + "db_id": "2-16772687-18", + "question": "What nationality is the player from temple?", + "evidence": "", + "schema_text_wo_content": "Table 2-16772687-18, columns = [Player, Nationality, Jersey Number(s), Position, Years, From]\n", + "schema_text_with_content": "Table 2-16772687-18, columns = [`Player` (Example values: [steve scheffler category:articles with hcards, russ schoene category:articles with hcards, detlef schrempf category:articles with hcards]), `Nationality` (Example values: [united states, germany, senegal]), `Jersey Number(s)` (Example values: [55, 40, 11]), `Position` (Example values: [c / pf, pf, sf / pf]), `Years` (Example values: [1992 – 1997, 1986 – 1989, 1993 – 1999]), `From` (Example values: [purdue, utc, washington])]\n", + "ori_query": "select `nationality` from `2-16772687-18` where `from` = 'temple'", + "amb_query": "SELECT \"nationality\" FROM \"2-16772687-18\" WHERE from IN ('temple', 'temple, pa')" + }, + { + "db_id": "2-16772687-18", + "question": "What nationality is the player from Oregon State?", + "evidence": "", + "schema_text_wo_content": "Table 2-16772687-18, columns = [Player, Nationality, Jersey Number(s), Position, Years, From]\n", + "schema_text_with_content": "Table 2-16772687-18, columns = [`Player` (Example values: [steve scheffler category:articles with hcards, russ schoene category:articles with hcards, detlef schrempf category:articles with hcards]), `Nationality` (Example values: [united states, germany, senegal]), `Jersey Number(s)` (Example values: [55, 40, 11]), `Position` (Example values: [c / pf, pf, sf / pf]), `Years` (Example values: [1992 – 1997, 1986 – 1989, 1993 – 1999]), `From` (Example values: [purdue, utc, washington])]\n", + "ori_query": "select `nationality` from `2-16772687-18` where `from` = 'oregon state'", + "amb_query": "SELECT \"nationality\" FROM \"2-16772687-18\" WHERE from IN ('oregon state', 'osu')" + }, + { + "db_id": "2-17591791-1", + "question": "What is the highest capacity for the venue, ticha stadium, located in pernik?", + "evidence": "", + "schema_text_wo_content": "Table 2-17591791-1, columns = [Club, Location, Manager, Venue, Capacity]\n", + "schema_text_with_content": "Table 2-17591791-1, columns = [`Club` (Example values: [belasitsa, botev, cherno more]), `Location` (Example values: [petrich, plovdiv, varna]), `Manager` (Example values: [miroslav mitev category:articles with hcards, kostadin angelov category:articles with hcards, nikola spasov category:articles with hcards]), `Venue` (Example values: [tsar samuil stadium, hristo botev stadium, plovdiv, ticha stadium]), `Capacity` (Example values: [15,000, 22,000, 12,500])]\n", + "ori_query": "select max(`capacity`) from `2-17591791-1` where `location` = 'pernik' and `venue` = 'ticha stadium'", + "amb_query": "SELECT MAX(\"capacity\") FROM \"2-17591791-1\" WHERE location IN ('pernik', 'pernik region, bulgaria') AND \"venue\" = 'ticha stadium'" + }, + { + "db_id": "2-17591791-1", + "question": "What is the highest capacity for the venue, ticha stadium, located in sliven?", + "evidence": "", + "schema_text_wo_content": "Table 2-17591791-1, columns = [Club, Location, Manager, Venue, Capacity]\n", + "schema_text_with_content": "Table 2-17591791-1, columns = [`Club` (Example values: [belasitsa, botev, cherno more]), `Location` (Example values: [petrich, plovdiv, varna]), `Manager` (Example values: [miroslav mitev category:articles with hcards, kostadin angelov category:articles with hcards, nikola spasov category:articles with hcards]), `Venue` (Example values: [tsar samuil stadium, hristo botev stadium, plovdiv, ticha stadium]), `Capacity` (Example values: [15,000, 22,000, 12,500])]\n", + "ori_query": "select max(`capacity`) from `2-17591791-1` where `location` = 'sliven' and `venue` = 'ticha stadium'", + "amb_query": "SELECT MAX(\"capacity\") FROM \"2-17591791-1\" WHERE location IN ('sliven municipality', 'sliven') AND \"venue\" = 'ticha stadium'" + }, + { + "db_id": "2-17591791-1", + "question": "What is the highest capacity for the venue, ticha stadium, located in varna?", + "evidence": "", + "schema_text_wo_content": "Table 2-17591791-1, columns = [Club, Location, Manager, Venue, Capacity]\n", + "schema_text_with_content": "Table 2-17591791-1, columns = [`Club` (Example values: [belasitsa, botev, cherno more]), `Location` (Example values: [petrich, plovdiv, varna]), `Manager` (Example values: [miroslav mitev category:articles with hcards, kostadin angelov category:articles with hcards, nikola spasov category:articles with hcards]), `Venue` (Example values: [tsar samuil stadium, hristo botev stadium, plovdiv, ticha stadium]), `Capacity` (Example values: [15,000, 22,000, 12,500])]\n", + "ori_query": "select max(`capacity`) from `2-17591791-1` where `location` = 'varna' and `venue` = 'ticha stadium'", + "amb_query": "SELECT MAX(\"capacity\") FROM \"2-17591791-1\" WHERE \"location\" = 'varna' AND \"venue\" = 'ticha stadium'" + }, + { + "db_id": "2-17271235-3", + "question": "What was the nadal in Miami in the semi-final round?", + "evidence": "", + "schema_text_wo_content": "Table 2-17271235-3, columns = [Year, Tournament, Surface, Round, Winner, Score, Length (H:MM), Sets, Federer, Nadal]\n", + "schema_text_with_content": "Table 2-17271235-3, columns = [`Year` (Example values: [2004.0, 2005.0, 2006.0]), `Tournament` (Example values: [miami, roland garros, dubai]), `Surface` (Example values: [hard, clay, grass]), `Round` (Example values: [r32, finals, semi final]), `Winner` (Example values: [nadal, federer]), `Score` (Example values: [6–3, 6–3, 2–6, 6–7 (4–7) , 7–6 (7–5) , 6–3, 6–1, 6–3, 4–6, 6–4, 6–3]), `Length (H:MM)` (Example values: [1:10, 3:43, 2:47]), `Sets` (Example values: [2/3, 5/5, 4/5]), `Federer` (Example values: [0.0, 1.0, 2.0]), `Nadal` (Example values: [1.0, 2.0, 3.0])]\n", + "ori_query": "select max(`nadal`) from `2-17271235-3` where `round` = 'semi-final' and `tournament` = 'miami'", + "amb_query": "SELECT MAX(\"nadal\") FROM \"2-17271235-3\" WHERE round IN ('semifinal', 'semi-final round', 'semi final', 'sf round', 'semi-final') AND \"tournament\" = 'miami'" + }, + { + "db_id": "2-17271235-3", + "question": "What was the nadal in Miami in the final round?", + "evidence": "", + "schema_text_wo_content": "Table 2-17271235-3, columns = [Year, Tournament, Surface, Round, Winner, Score, Length (H:MM), Sets, Federer, Nadal]\n", + "schema_text_with_content": "Table 2-17271235-3, columns = [`Year` (Example values: [2004.0, 2005.0, 2006.0]), `Tournament` (Example values: [miami, roland garros, dubai]), `Surface` (Example values: [hard, clay, grass]), `Round` (Example values: [r32, finals, semi final]), `Winner` (Example values: [nadal, federer]), `Score` (Example values: [6–3, 6–3, 2–6, 6–7 (4–7) , 7–6 (7–5) , 6–3, 6–1, 6–3, 4–6, 6–4, 6–3]), `Length (H:MM)` (Example values: [1:10, 3:43, 2:47]), `Sets` (Example values: [2/3, 5/5, 4/5]), `Federer` (Example values: [0.0, 1.0, 2.0]), `Nadal` (Example values: [1.0, 2.0, 3.0])]\n", + "ori_query": "select max(`nadal`) from `2-17271235-3` where `round` = 'final' and `tournament` = 'miami'", + "amb_query": "SELECT MAX(\"nadal\") FROM \"2-17271235-3\" WHERE round IN ('championship round', 'final', 'last round', 'finals') AND \"tournament\" = 'miami'" + }, + { + "db_id": "2-17271235-3", + "question": "What tournament did Nadal win and had a nadal of 16?", + "evidence": "", + "schema_text_wo_content": "Table 2-17271235-3, columns = [Year, Tournament, Surface, Round, Winner, Score, Length (H:MM), Sets, Federer, Nadal]\n", + "schema_text_with_content": "Table 2-17271235-3, columns = [`Year` (Example values: [2004.0, 2005.0, 2006.0]), `Tournament` (Example values: [miami, roland garros, dubai]), `Surface` (Example values: [hard, clay, grass]), `Round` (Example values: [r32, finals, semi final]), `Winner` (Example values: [nadal, federer]), `Score` (Example values: [6–3, 6–3, 2–6, 6–7 (4–7) , 7–6 (7–5) , 6–3, 6–1, 6–3, 4–6, 6–4, 6–3]), `Length (H:MM)` (Example values: [1:10, 3:43, 2:47]), `Sets` (Example values: [2/3, 5/5, 4/5]), `Federer` (Example values: [0.0, 1.0, 2.0]), `Nadal` (Example values: [1.0, 2.0, 3.0])]\n", + "ori_query": "select `tournament` from `2-17271235-3` where `winner` = 'nadal' and `nadal` = 16", + "amb_query": "SELECT \"tournament\" FROM \"2-17271235-3\" WHERE \"winner\" = 'nadal' AND \"nadal\" = 16" + }, + { + "db_id": "2-12446535-3", + "question": "Who was the 4 lane person from moldova?", + "evidence": "", + "schema_text_wo_content": "Table 2-12446535-3, columns = [Rank, Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-12446535-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [4.0, 6.0, 5.0]), `Lane` (Example values: [3.0, 4.0, 6.0]), `Name` (Example values: [alessio boggiatto, tom dolan, curtis myden]), `Nationality` (Example values: [italy, united states, canada]), `Time` (Example values: [4:14.26, 4:15.52, 4:16.35])]\n", + "ori_query": "select min(`heat`) from `2-12446535-3` where `lane` = 4 and `nationality` = 'moldova'", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-12446535-3\" WHERE \"lane\" = 4 AND nationality IN ('republic of moldova', 'moldova')" + }, + { + "db_id": "2-12446535-3", + "question": "Who was the 4 lane person from israel?", + "evidence": "", + "schema_text_wo_content": "Table 2-12446535-3, columns = [Rank, Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-12446535-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [4.0, 6.0, 5.0]), `Lane` (Example values: [3.0, 4.0, 6.0]), `Name` (Example values: [alessio boggiatto, tom dolan, curtis myden]), `Nationality` (Example values: [italy, united states, canada]), `Time` (Example values: [4:14.26, 4:15.52, 4:16.35])]\n", + "ori_query": "select min(`heat`) from `2-12446535-3` where `lane` = 4 and `nationality` = 'israel'", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-12446535-3\" WHERE \"lane\" = 4 AND nationality IN ('israel', 'israeli')" + }, + { + "db_id": "2-12446535-3", + "question": "Who was the 4 lane person from croatia?", + "evidence": "", + "schema_text_wo_content": "Table 2-12446535-3, columns = [Rank, Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-12446535-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [4.0, 6.0, 5.0]), `Lane` (Example values: [3.0, 4.0, 6.0]), `Name` (Example values: [alessio boggiatto, tom dolan, curtis myden]), `Nationality` (Example values: [italy, united states, canada]), `Time` (Example values: [4:14.26, 4:15.52, 4:16.35])]\n", + "ori_query": "select min(`heat`) from `2-12446535-3` where `lane` = 4 and `nationality` = 'croatia'", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-12446535-3\" WHERE \"lane\" = 4 AND nationality IN ('croatia, the balkans', 'croatia')" + }, + { + "db_id": "2-12446535-3", + "question": "Who was the 4 lane person from Canada?", + "evidence": "", + "schema_text_wo_content": "Table 2-12446535-3, columns = [Rank, Heat, Lane, Name, Nationality, Time]\n", + "schema_text_with_content": "Table 2-12446535-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Heat` (Example values: [4.0, 6.0, 5.0]), `Lane` (Example values: [3.0, 4.0, 6.0]), `Name` (Example values: [alessio boggiatto, tom dolan, curtis myden]), `Nationality` (Example values: [italy, united states, canada]), `Time` (Example values: [4:14.26, 4:15.52, 4:16.35])]\n", + "ori_query": "select min(`heat`) from `2-12446535-3` where `lane` = 4 and `nationality` = 'canada'", + "amb_query": "SELECT MIN(\"heat\") FROM \"2-12446535-3\" WHERE \"lane\" = 4 AND \"nationality\" = 'canada'" + }, + { + "db_id": "2-17524651-3", + "question": "what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?", + "evidence": "", + "schema_text_wo_content": "Table 2-17524651-3, columns = [Draw, Language, Artist, Song, English translation, Place, Points]\n", + "schema_text_with_content": "Table 2-17524651-3, columns = [`Draw` (Example values: [1.0, 2.0, 3.0]), `Language` (Example values: [croatian, english speech, russian]), `Artist` (Example values: [igor cukrov feat. andrea, sinéad mulvey and black daisy, intars busulis]), `Song` (Example values: [\" lijepa tena \", \" et cetera \", \" probka \" (пробка)]), `English translation` (Example values: [beautiful tena, —, traffic jam]), `Place` (Example values: [13.0, 11.0, 19.0]), `Points` (Example values: [33.0, 52.0, 7.0])]\n", + "ori_query": "select `english translation` from `2-17524651-3` where `language` = 'english' and `draw` < 16 and `artist` = 'aysel and arash'", + "amb_query": "SELECT \"english translation\" FROM \"2-17524651-3\" WHERE language IN ('english speech', 'english language', 'english') AND \"draw\" < 16 AND \"artist\" = 'aysel and arash'" + }, + { + "db_id": "2-14509824-5", + "question": "What is the round of Jimmy Drolet from finland?", + "evidence": "", + "schema_text_wo_content": "Table 2-14509824-5, columns = [Round, Player, Position, Nationality, College/Junior/Club Team]\n", + "schema_text_with_content": "Table 2-14509824-5, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [brad brown, jose theodore, chris murray]), `Position` (Example values: [defenceman, goalie, right wing]), `Nationality` (Example values: [canadian, the nation of finland, finland]), `College/Junior/Club Team` (Example values: [north bay centennials (ohl), st-jean lynx (qmjhl), kamloops blazers (whl)])]\n", + "ori_query": "select `round` from `2-14509824-5` where `nationality` = 'finland' and `player` = 'jimmy drolet'", + "amb_query": "SELECT \"round\" FROM \"2-14509824-5\" WHERE nationality IN ('the nation of finland', 'finland') AND \"player\" = 'jimmy drolet'" + }, + { + "db_id": "2-14509824-5", + "question": "What is the round of Jimmy Drolet from Canada?", + "evidence": "", + "schema_text_wo_content": "Table 2-14509824-5, columns = [Round, Player, Position, Nationality, College/Junior/Club Team]\n", + "schema_text_with_content": "Table 2-14509824-5, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [brad brown, jose theodore, chris murray]), `Position` (Example values: [defenceman, goalie, right wing]), `Nationality` (Example values: [canadian, the nation of finland, finland]), `College/Junior/Club Team` (Example values: [north bay centennials (ohl), st-jean lynx (qmjhl), kamloops blazers (whl)])]\n", + "ori_query": "select `round` from `2-14509824-5` where `nationality` = 'canada' and `player` = 'jimmy drolet'", + "amb_query": "SELECT \"round\" FROM \"2-14509824-5\" WHERE nationality IN ('canadian', 'canada') AND \"player\" = 'jimmy drolet'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Range has a Region of new mexico, and a Location of 18.3601°n 71.9764°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain range` from `2-16215078-1` where `region` = 'new mexico' and `location` = '18.3601°n 71.9764°w'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16215078-1\" WHERE region IN ('new mexico', 'new mexico state', 'sacramento mountains') AND \"location\" = '18.3601°n 71.9764°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Range has a Region of utah, and a Location of 18.3601°n 71.9764°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain range` from `2-16215078-1` where `region` = 'utah' and `location` = '18.3601°n 71.9764°w'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16215078-1\" WHERE region IN ('utah', 'oquirrh mountains', 'state of utah') AND \"location\" = '18.3601°n 71.9764°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Range has a Region of maine, and a Location of 18.3601°n 71.9764°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain range` from `2-16215078-1` where `region` = 'maine' and `location` = '18.3601°n 71.9764°w'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16215078-1\" WHERE region IN ('me, united states', 'maine') AND \"location\" = '18.3601°n 71.9764°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Range has a Region of west virginia, and a Location of 18.3601°n 71.9764°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain range` from `2-16215078-1` where `region` = 'west virginia' and `location` = '18.3601°n 71.9764°w'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16215078-1\" WHERE region IN ('west virginia', 'state of west virginia') AND \"location\" = '18.3601°n 71.9764°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Peak has a Region of idaho, and a Location of 28.1301°n 115.2206°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain peak` from `2-16215078-1` where `region` = 'idaho' and `location` = '28.1301°n 115.2206°w'", + "amb_query": "SELECT \"mountain peak\" FROM \"2-16215078-1\" WHERE region IN ('idaho', 'idaho territory') AND \"location\" = '28.1301°n 115.2206°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Peak has a Region of guerrero, and a Location of 28.1301°n 115.2206°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain peak` from `2-16215078-1` where `region` = 'guerrero' and `location` = '28.1301°n 115.2206°w'", + "amb_query": "SELECT \"mountain peak\" FROM \"2-16215078-1\" WHERE region IN ('guerrero', 'guerrero, mexico') AND \"location\" = '28.1301°n 115.2206°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Peak has a Region of british virgin islands, and a Location of 28.1301°n 115.2206°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain peak` from `2-16215078-1` where `region` = 'british virgin islands' and `location` = '28.1301°n 115.2206°w'", + "amb_query": "SELECT \"mountain peak\" FROM \"2-16215078-1\" WHERE region IN ('british virgin islands', 'british virgin islands, uk') AND \"location\" = '28.1301°n 115.2206°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain range` from `2-16215078-1` where `region` = 'haiti' and `location` = '18.3601°n 71.9764°w'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16215078-1\" WHERE region IN ('haitian territory', 'haiti') AND \"location\" = '18.3601°n 71.9764°w'" + }, + { + "db_id": "2-16215078-1", + "question": "Which Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16215078-1, columns = [Rank, Mountain Peak, Region, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16215078-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), gunnbjørn fjeld, volcán citlaltépetl ( pico de orizaba )]), `Region` (Example values: [alaska, greenland, puebla veracruz]), `Mountain Range` (Example values: [alaska range, island of greenland, cordillera neovolcanica]), `Location` (Example values: [63.0690°n 151.0063°w, 68.9186°n 29.8986°w, 19.0305°n 97.2698°w])]\n", + "ori_query": "select `mountain peak` from `2-16215078-1` where `region` = 'baja california' and `location` = '28.1301°n 115.2206°w'", + "amb_query": "SELECT \"mountain peak\" FROM \"2-16215078-1\" WHERE region IN ('baja california', 'mexicali', 'tijuana', 'san felipe') AND \"location\" = '28.1301°n 115.2206°w'" + }, + { + "db_id": "2-17034845-3", + "question": "What is the time/retired of the gilera manufacturer with a grid less than 26, 18 laps, and joan olivé as the rider?", + "evidence": "", + "schema_text_wo_content": "Table 2-17034845-3, columns = [Rider, Manufacturer, Laps, Time/Retired, Grid]\n", + "schema_text_with_content": "Table 2-17034845-3, columns = [`Rider` (Example values: [arnaud vincent, mirko giansanti, manuel poggiali]), `Manufacturer` (Example values: [aprilia manufacturer, honda motor co., gilera brand]), `Laps` (Example values: [18.0, 15.0, 14.0]), `Time/Retired` (Example values: [+46:22.971, +1.164, +2.558]), `Grid` (Example values: [2.0, 15.0, 5.0])]\n", + "ori_query": "select `time/retired` from `2-17034845-3` where `manufacturer` = 'gilera' and `grid` < 26 and `laps` = 18 and `rider` = 'joan olivé'", + "amb_query": "SELECT \"time/retired\" FROM \"2-17034845-3\" WHERE manufacturer IN ('gilera', 'gilera brand', 'gilera manufacturer') AND \"grid\" < 26 AND \"laps\" = 18 AND \"rider\" = 'joan olivé'" + }, + { + "db_id": "2-17034845-3", + "question": "What is the time/retired of the honda manufacturer with a grid less than 26, 18 laps, and joan olivé as the rider?", + "evidence": "", + "schema_text_wo_content": "Table 2-17034845-3, columns = [Rider, Manufacturer, Laps, Time/Retired, Grid]\n", + "schema_text_with_content": "Table 2-17034845-3, columns = [`Rider` (Example values: [arnaud vincent, mirko giansanti, manuel poggiali]), `Manufacturer` (Example values: [aprilia manufacturer, honda motor co., gilera brand]), `Laps` (Example values: [18.0, 15.0, 14.0]), `Time/Retired` (Example values: [+46:22.971, +1.164, +2.558]), `Grid` (Example values: [2.0, 15.0, 5.0])]\n", + "ori_query": "select `time/retired` from `2-17034845-3` where `manufacturer` = 'honda' and `grid` < 26 and `laps` = 18 and `rider` = 'joan olivé'", + "amb_query": "SELECT \"time/retired\" FROM \"2-17034845-3\" WHERE manufacturer IN ('honda motor co.', 'honda brand', 'honda manufacturer', 'honda') AND \"grid\" < 26 AND \"laps\" = 18 AND \"rider\" = 'joan olivé'" + }, + { + "db_id": "2-17034845-3", + "question": "What is the average number of laps with an accident time/retired, aprilia manufacturer and a grid of 27?", + "evidence": "", + "schema_text_wo_content": "Table 2-17034845-3, columns = [Rider, Manufacturer, Laps, Time/Retired, Grid]\n", + "schema_text_with_content": "Table 2-17034845-3, columns = [`Rider` (Example values: [arnaud vincent, mirko giansanti, manuel poggiali]), `Manufacturer` (Example values: [aprilia manufacturer, honda motor co., gilera brand]), `Laps` (Example values: [18.0, 15.0, 14.0]), `Time/Retired` (Example values: [+46:22.971, +1.164, +2.558]), `Grid` (Example values: [2.0, 15.0, 5.0])]\n", + "ori_query": "select avg(`laps`) from `2-17034845-3` where `time/retired` = 'accident' and `manufacturer` = 'aprilia' and `grid` = 27", + "amb_query": "SELECT AVG(\"laps\") FROM \"2-17034845-3\" WHERE \"time/retired\" = 'accident' AND manufacturer IN ('aprilia brand', 'aprilia manufacturer', 'aprilia') AND \"grid\" = 27" + }, + { + "db_id": "2-16846-6", + "question": "What was the 2010 population of richmond which has a rank smaller than 14?", + "evidence": "", + "schema_text_wo_content": "Table 2-16846-6, columns = [Rank, City, 2010 Pop, 2000 Pop, Δ Current Pop]\n", + "schema_text_with_content": "Table 2-16846-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City` (Example values: [louisville, lexington, bowling green]), `2010 Pop` (Example values: [765,515, 295,803, 60,600]), `2000 Pop` (Example values: [551,299, 260,512, 49,296]), `Δ Current Pop` (Example values: [214,216, 35,291, 11,304])]\n", + "ori_query": "select avg(`2010 pop`) from `2-16846-6` where `city` = 'richmond' and `rank` < 14", + "amb_query": "SELECT AVG(\"2010 pop\") FROM \"2-16846-6\" WHERE city IN ('richmond', 'richmond city') AND \"rank\" < 14" + }, + { + "db_id": "2-16846-6", + "question": "What was the 2010 population of hopkinsville which has a rank smaller than 14?", + "evidence": "", + "schema_text_wo_content": "Table 2-16846-6, columns = [Rank, City, 2010 Pop, 2000 Pop, Δ Current Pop]\n", + "schema_text_with_content": "Table 2-16846-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City` (Example values: [louisville, lexington, bowling green]), `2010 Pop` (Example values: [765,515, 295,803, 60,600]), `2000 Pop` (Example values: [551,299, 260,512, 49,296]), `Δ Current Pop` (Example values: [214,216, 35,291, 11,304])]\n", + "ori_query": "select avg(`2010 pop`) from `2-16846-6` where `city` = 'hopkinsville' and `rank` < 14", + "amb_query": "SELECT AVG(\"2010 pop\") FROM \"2-16846-6\" WHERE city IN ('city of hopkinsville', 'hopkinsville') AND \"rank\" < 14" + }, + { + "db_id": "2-16846-6", + "question": "What was the 2010 population of frankfort which has a rank smaller than 14?", + "evidence": "", + "schema_text_wo_content": "Table 2-16846-6, columns = [Rank, City, 2010 Pop, 2000 Pop, Δ Current Pop]\n", + "schema_text_with_content": "Table 2-16846-6, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `City` (Example values: [louisville, lexington, bowling green]), `2010 Pop` (Example values: [765,515, 295,803, 60,600]), `2000 Pop` (Example values: [551,299, 260,512, 49,296]), `Δ Current Pop` (Example values: [214,216, 35,291, 11,304])]\n", + "ori_query": "select avg(`2010 pop`) from `2-16846-6` where `city` = 'frankfort' and `rank` < 14", + "amb_query": "SELECT AVG(\"2010 pop\") FROM \"2-16846-6\" WHERE city IN ('frankfort, kentucky', 'frankfort') AND \"rank\" < 14" + }, + { + "db_id": "2-16404058-1", + "question": "Who has a birth of 13 april 1519?", + "evidence": "", + "schema_text_wo_content": "Table 2-16404058-1, columns = [Name, Birth, Marriage, Became Dauphine, Ceased to be Dauphine, Death, Husband]\n", + "schema_text_with_content": "Table 2-16404058-1, columns = [`Name` (Example values: [joan of bourbon, margaret of burgundy, jacqueline, countess of hainaut]), `Birth` (Example values: [february 3, 1338, 1393, 16th august 1401]), `Marriage` (Example values: [8 april 1350, 31 august 1412, 6 august 1415]), `Became Dauphine` (Example values: [22 august 1350 husband became the dauphin, 31 august 1412, 18 december 1415 husband became the dauphin]), `Ceased to be Dauphine` (Example values: [8 april 1364 became queen, 18 december 1415 husband's death, 4 april 1417 husband's death]), `Death` (Example values: [6 february 1378, 2 february 1441, 8 october 1436]), `Husband` (Example values: [charles, 1st dauphin, louis, 6th dauphin, john, 7th dauphin])]\n", + "ori_query": "select `name` from `2-16404058-1` where `birth` = '13 april 1519'", + "amb_query": "SELECT \"name\" FROM \"2-16404058-1\" WHERE birth IN ('13 april 1519', 'april 13th, 1519')" + }, + { + "db_id": "2-16404058-1", + "question": "when was the death when the birth was 3 february 1338?", + "evidence": "", + "schema_text_wo_content": "Table 2-16404058-1, columns = [Name, Birth, Marriage, Became Dauphine, Ceased to be Dauphine, Death, Husband]\n", + "schema_text_with_content": "Table 2-16404058-1, columns = [`Name` (Example values: [joan of bourbon, margaret of burgundy, jacqueline, countess of hainaut]), `Birth` (Example values: [february 3, 1338, 1393, 16th august 1401]), `Marriage` (Example values: [8 april 1350, 31 august 1412, 6 august 1415]), `Became Dauphine` (Example values: [22 august 1350 husband became the dauphin, 31 august 1412, 18 december 1415 husband became the dauphin]), `Ceased to be Dauphine` (Example values: [8 april 1364 became queen, 18 december 1415 husband's death, 4 april 1417 husband's death]), `Death` (Example values: [6 february 1378, 2 february 1441, 8 october 1436]), `Husband` (Example values: [charles, 1st dauphin, louis, 6th dauphin, john, 7th dauphin])]\n", + "ori_query": "select `death` from `2-16404058-1` where `birth` = '3 february 1338'", + "amb_query": "SELECT \"death\" FROM \"2-16404058-1\" WHERE birth IN ('3 february 1338', 'february 3, 1338')" + }, + { + "db_id": "2-16404058-1", + "question": "Who has a birth of 16 august 1401?", + "evidence": "", + "schema_text_wo_content": "Table 2-16404058-1, columns = [Name, Birth, Marriage, Became Dauphine, Ceased to be Dauphine, Death, Husband]\n", + "schema_text_with_content": "Table 2-16404058-1, columns = [`Name` (Example values: [joan of bourbon, margaret of burgundy, jacqueline, countess of hainaut]), `Birth` (Example values: [february 3, 1338, 1393, 16th august 1401]), `Marriage` (Example values: [8 april 1350, 31 august 1412, 6 august 1415]), `Became Dauphine` (Example values: [22 august 1350 husband became the dauphin, 31 august 1412, 18 december 1415 husband became the dauphin]), `Ceased to be Dauphine` (Example values: [8 april 1364 became queen, 18 december 1415 husband's death, 4 april 1417 husband's death]), `Death` (Example values: [6 february 1378, 2 february 1441, 8 october 1436]), `Husband` (Example values: [charles, 1st dauphin, louis, 6th dauphin, john, 7th dauphin])]\n", + "ori_query": "select `name` from `2-16404058-1` where `birth` = '16 august 1401'", + "amb_query": "SELECT \"name\" FROM \"2-16404058-1\" WHERE birth IN ('16th august 1401', '16 august 1401')" + }, + { + "db_id": "2-16404058-1", + "question": "when was the death when the birth was 8 december 1542?", + "evidence": "", + "schema_text_wo_content": "Table 2-16404058-1, columns = [Name, Birth, Marriage, Became Dauphine, Ceased to be Dauphine, Death, Husband]\n", + "schema_text_with_content": "Table 2-16404058-1, columns = [`Name` (Example values: [joan of bourbon, margaret of burgundy, jacqueline, countess of hainaut]), `Birth` (Example values: [february 3, 1338, 1393, 16th august 1401]), `Marriage` (Example values: [8 april 1350, 31 august 1412, 6 august 1415]), `Became Dauphine` (Example values: [22 august 1350 husband became the dauphin, 31 august 1412, 18 december 1415 husband became the dauphin]), `Ceased to be Dauphine` (Example values: [8 april 1364 became queen, 18 december 1415 husband's death, 4 april 1417 husband's death]), `Death` (Example values: [6 february 1378, 2 february 1441, 8 october 1436]), `Husband` (Example values: [charles, 1st dauphin, louis, 6th dauphin, john, 7th dauphin])]\n", + "ori_query": "select `death` from `2-16404058-1` where `birth` = '8 december 1542'", + "amb_query": "SELECT \"death\" FROM \"2-16404058-1\" WHERE birth IN ('8 december 1542', '08/12/1542')" + }, + { + "db_id": "2-16234974-1", + "question": "what is the mountain range when the state is california, rank is higher than 90 and mountain peak is whetstone mountain?", + "evidence": "", + "schema_text_wo_content": "Table 2-16234974-1, columns = [Rank, Mountain Peak, State, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16234974-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), mount saint elias, mount foraker]), `State` (Example values: [alaska state, alaska yukon, alaska]), `Mountain Range` (Example values: [alaska range, saint elias mountains, wrangell mountains]), `Location` (Example values: [63.0690°n 151.0063°w, 60.2931°n 140.9264°w, 62.9604°n 151.3998°w])]\n", + "ori_query": "select `mountain range` from `2-16234974-1` where `state` = 'california' and `rank` > 90 and `mountain peak` = 'whetstone mountain'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16234974-1\" WHERE state IN ('california', 'ca', 'state of california', 'california, usa', 'california state') AND \"rank\" > 90 AND \"mountain peak\" = 'whetstone mountain'" + }, + { + "db_id": "2-16234974-1", + "question": "what is the mountain range when the state is nevada, rank is higher than 90 and mountain peak is whetstone mountain?", + "evidence": "", + "schema_text_wo_content": "Table 2-16234974-1, columns = [Rank, Mountain Peak, State, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16234974-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), mount saint elias, mount foraker]), `State` (Example values: [alaska state, alaska yukon, alaska]), `Mountain Range` (Example values: [alaska range, saint elias mountains, wrangell mountains]), `Location` (Example values: [63.0690°n 151.0063°w, 60.2931°n 140.9264°w, 62.9604°n 151.3998°w])]\n", + "ori_query": "select `mountain range` from `2-16234974-1` where `state` = 'nevada' and `rank` > 90 and `mountain peak` = 'whetstone mountain'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16234974-1\" WHERE state IN ('nv, usa', 'nevada') AND \"rank\" > 90 AND \"mountain peak\" = 'whetstone mountain'" + }, + { + "db_id": "2-16234974-1", + "question": "what is the rank when the state is alaska and the location is 37.7859°n 107.7039°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16234974-1, columns = [Rank, Mountain Peak, State, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16234974-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), mount saint elias, mount foraker]), `State` (Example values: [alaska state, alaska yukon, alaska]), `Mountain Range` (Example values: [alaska range, saint elias mountains, wrangell mountains]), `Location` (Example values: [63.0690°n 151.0063°w, 60.2931°n 140.9264°w, 62.9604°n 151.3998°w])]\n", + "ori_query": "select sum(`rank`) from `2-16234974-1` where `state` = 'alaska' and `location` = '37.7859°n 107.7039°w'", + "amb_query": "SELECT SUM(\"rank\") FROM \"2-16234974-1\" WHERE state IN ('alaska', 'alaska state', 'state of alaska', 'ak, usa') AND \"location\" = '37.7859��n 107.7039°w'" + }, + { + "db_id": "2-16234974-1", + "question": "what is the mountain range when the state is colorado, rank is higher than 90 and mountain peak is whetstone mountain?", + "evidence": "", + "schema_text_wo_content": "Table 2-16234974-1, columns = [Rank, Mountain Peak, State, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16234974-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), mount saint elias, mount foraker]), `State` (Example values: [alaska state, alaska yukon, alaska]), `Mountain Range` (Example values: [alaska range, saint elias mountains, wrangell mountains]), `Location` (Example values: [63.0690°n 151.0063°w, 60.2931°n 140.9264°w, 62.9604°n 151.3998°w])]\n", + "ori_query": "select `mountain range` from `2-16234974-1` where `state` = 'colorado' and `rank` > 90 and `mountain peak` = 'whetstone mountain'", + "amb_query": "SELECT \"mountain range\" FROM \"2-16234974-1\" WHERE state IN ('colorado', 'state of colorado', 'colorado, united states', 'co, usa', 'colorado state') AND \"rank\" > 90 AND \"mountain peak\" = 'whetstone mountain'" + }, + { + "db_id": "2-16234974-1", + "question": "what is the rank when the state is colorado and the location is 37.7859°n 107.7039°w?", + "evidence": "", + "schema_text_wo_content": "Table 2-16234974-1, columns = [Rank, Mountain Peak, State, Mountain Range, Location]\n", + "schema_text_with_content": "Table 2-16234974-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Mountain Peak` (Example values: [mount mckinley ( denali ), mount saint elias, mount foraker]), `State` (Example values: [alaska state, alaska yukon, alaska]), `Mountain Range` (Example values: [alaska range, saint elias mountains, wrangell mountains]), `Location` (Example values: [63.0690°n 151.0063°w, 60.2931°n 140.9264°w, 62.9604°n 151.3998°w])]\n", + "ori_query": "select sum(`rank`) from `2-16234974-1` where `state` = 'colorado' and `location` = '37.7859°n 107.7039°w'", + "amb_query": "SELECT SUM(\"rank\") FROM \"2-16234974-1\" WHERE state IN ('colorado', 'state of colorado', 'colorado, united states', 'co, usa', 'colorado state') AND \"location\" = '37.7859°n 107.7039°w'" + }, + { + "db_id": "2-12601267-1", + "question": "What is the lifespan of Joseph Vance, a democratic-republican from california?", + "evidence": "", + "schema_text_wo_content": "Table 2-12601267-1, columns = [Representative, Years, State, Party, Lifespan]\n", + "schema_text_with_content": "Table 2-12601267-1, columns = [`Representative` (Example values: [george vail, henry vail, richard b. vail]), `Years` (Example values: [1853–1857, 1837–1839, 1947–1949 1951–1953]), `State` (Example values: [new jersey, new york, illinois]), `Party` (Example values: [democratic, republican, american]), `Lifespan` (Example values: [1809–1875, 1782–1853, 1895–1955])]\n", + "ori_query": "select `lifespan` from `2-12601267-1` where `state` = 'california' and `representative` = 'joseph vance' and `party` = 'democratic-republican'", + "amb_query": "SELECT \"lifespan\" FROM \"2-12601267-1\" WHERE state IN ('california, the united states', 'california', 'california region') AND \"representative\" = 'joseph vance' AND \"party\" = 'democratic-republican'" + }, + { + "db_id": "2-12601267-1", + "question": "What is the lifespan of Joseph Vance, a democratic-republican from colorado?", + "evidence": "", + "schema_text_wo_content": "Table 2-12601267-1, columns = [Representative, Years, State, Party, Lifespan]\n", + "schema_text_with_content": "Table 2-12601267-1, columns = [`Representative` (Example values: [george vail, henry vail, richard b. vail]), `Years` (Example values: [1853–1857, 1837–1839, 1947–1949 1951–1953]), `State` (Example values: [new jersey, new york, illinois]), `Party` (Example values: [democratic, republican, american]), `Lifespan` (Example values: [1809–1875, 1782–1853, 1895–1955])]\n", + "ori_query": "select `lifespan` from `2-12601267-1` where `state` = 'colorado' and `representative` = 'joseph vance' and `party` = 'democratic-republican'", + "amb_query": "SELECT \"lifespan\" FROM \"2-12601267-1\" WHERE state IN ('colorado', 'colorado state') AND \"representative\" = 'joseph vance' AND \"party\" = 'democratic-republican'" + }, + { + "db_id": "2-12601267-1", + "question": "What is the lifespan of Joseph Vance, a democratic-republican from iowa?", + "evidence": "", + "schema_text_wo_content": "Table 2-12601267-1, columns = [Representative, Years, State, Party, Lifespan]\n", + "schema_text_with_content": "Table 2-12601267-1, columns = [`Representative` (Example values: [george vail, henry vail, richard b. vail]), `Years` (Example values: [1853–1857, 1837–1839, 1947–1949 1951–1953]), `State` (Example values: [new jersey, new york, illinois]), `Party` (Example values: [democratic, republican, american]), `Lifespan` (Example values: [1809–1875, 1782–1853, 1895–1955])]\n", + "ori_query": "select `lifespan` from `2-12601267-1` where `state` = 'iowa' and `representative` = 'joseph vance' and `party` = 'democratic-republican'", + "amb_query": "SELECT \"lifespan\" FROM \"2-12601267-1\" WHERE state IN ('iowa', 'iowa, usa', 'state of iowa', 'iowa region') AND \"representative\" = 'joseph vance' AND \"party\" = 'democratic-republican'" + }, + { + "db_id": "2-12601267-1", + "question": "What is the lifespan of Joseph Vance, a democratic-republican from Ohio?", + "evidence": "", + "schema_text_wo_content": "Table 2-12601267-1, columns = [Representative, Years, State, Party, Lifespan]\n", + "schema_text_with_content": "Table 2-12601267-1, columns = [`Representative` (Example values: [george vail, henry vail, richard b. vail]), `Years` (Example values: [1853–1857, 1837–1839, 1947–1949 1951–1953]), `State` (Example values: [new jersey, new york, illinois]), `Party` (Example values: [democratic, republican, american]), `Lifespan` (Example values: [1809–1875, 1782–1853, 1895–1955])]\n", + "ori_query": "select `lifespan` from `2-12601267-1` where `state` = 'ohio' and `representative` = 'joseph vance' and `party` = 'democratic-republican'", + "amb_query": "SELECT \"lifespan\" FROM \"2-12601267-1\" WHERE state IN ('ohio', 'ohio state', 'ohio, usa') AND \"representative\" = 'joseph vance' AND \"party\" = 'democratic-republican'" + }, + { + "db_id": "2-11821711-9", + "question": "What is the Decision listed when the Home was anaheim?", + "evidence": "", + "schema_text_wo_content": "Table 2-11821711-9, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11821711-9, columns = [`Date` (Example values: [march 1, march 2, march 4]), `Visitor` (Example values: [los angeles, ottawa, montreal]), `Score` (Example values: [2 – 5, 1 – 2, 2 – 3]), `Home` (Example values: [colorado, united states, minnesota, st. louis]), `Decision` (Example values: [cloutier, ersberg]), `Attendance` (Example values: [18,007, 18,568, 14,973]), `Record` (Example values: [26–36–4, 26–36–5, 26–37–5])]\n", + "ori_query": "select `decision` from `2-11821711-9` where `home` = 'anaheim'", + "amb_query": "SELECT \"decision\" FROM \"2-11821711-9\" WHERE home IN ('anaheim, usa', 'anaheim')" + }, + { + "db_id": "2-11821711-9", + "question": "What is the Decision listed when the Home was Colorado?", + "evidence": "", + "schema_text_wo_content": "Table 2-11821711-9, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11821711-9, columns = [`Date` (Example values: [march 1, march 2, march 4]), `Visitor` (Example values: [los angeles, ottawa, montreal]), `Score` (Example values: [2 – 5, 1 – 2, 2 – 3]), `Home` (Example values: [colorado, united states, minnesota, st. louis]), `Decision` (Example values: [cloutier, ersberg]), `Attendance` (Example values: [18,007, 18,568, 14,973]), `Record` (Example values: [26–36–4, 26–36–5, 26–37–5])]\n", + "ori_query": "select `decision` from `2-11821711-9` where `home` = 'colorado'", + "amb_query": "SELECT \"decision\" FROM \"2-11821711-9\" WHERE home IN ('colorado', 'colorado, united states')" + }, + { + "db_id": "2-16832887-1", + "question": "What is the Cargo Ship located at san diego, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-16832887-1, columns = [Country, Builder, Location, Ship, Class / type]\n", + "schema_text_with_content": "Table 2-16832887-1, columns = [`Country` (Example values: [united states, united kingdom, australia]), `Builder` (Example values: [bath iron works, fore river shipyard, cammell laird]), `Location` (Example values: [bath, maine, city of quincy, massachusetts, birkenhead, merseyside]), `Ship` (Example values: [mitscher, willis a. lee, manchester pioneer]), `Class / type` (Example values: [mitscher-class destroyer, cargo ship, daring-class destroyer])]\n", + "ori_query": "select `ship` from `2-16832887-1` where `class / type` = 'cargo ship' and `location` = 'san diego, california'", + "amb_query": "SELECT \"ship\" FROM \"2-16832887-1\" WHERE \"class / type\" = 'cargo ship' AND location IN ('san diego county, california', 'san diego, california')" + }, + { + "db_id": "2-16832887-1", + "question": "What is the Cargo Ship located at quincy, massachusetts?", + "evidence": "", + "schema_text_wo_content": "Table 2-16832887-1, columns = [Country, Builder, Location, Ship, Class / type]\n", + "schema_text_with_content": "Table 2-16832887-1, columns = [`Country` (Example values: [united states, united kingdom, australia]), `Builder` (Example values: [bath iron works, fore river shipyard, cammell laird]), `Location` (Example values: [bath, maine, city of quincy, massachusetts, birkenhead, merseyside]), `Ship` (Example values: [mitscher, willis a. lee, manchester pioneer]), `Class / type` (Example values: [mitscher-class destroyer, cargo ship, daring-class destroyer])]\n", + "ori_query": "select `ship` from `2-16832887-1` where `class / type` = 'cargo ship' and `location` = 'quincy, massachusetts'", + "amb_query": "SELECT \"ship\" FROM \"2-16832887-1\" WHERE \"class / type\" = 'cargo ship' AND location IN ('city of quincy, massachusetts', 'quincy, massachusetts')" + }, + { + "db_id": "2-16832887-1", + "question": "What is the Cargo Ship located at Birkenhead?", + "evidence": "", + "schema_text_wo_content": "Table 2-16832887-1, columns = [Country, Builder, Location, Ship, Class / type]\n", + "schema_text_with_content": "Table 2-16832887-1, columns = [`Country` (Example values: [united states, united kingdom, australia]), `Builder` (Example values: [bath iron works, fore river shipyard, cammell laird]), `Location` (Example values: [bath, maine, city of quincy, massachusetts, birkenhead, merseyside]), `Ship` (Example values: [mitscher, willis a. lee, manchester pioneer]), `Class / type` (Example values: [mitscher-class destroyer, cargo ship, daring-class destroyer])]\n", + "ori_query": "select `ship` from `2-16832887-1` where `class / type` = 'cargo ship' and `location` = 'birkenhead'", + "amb_query": "SELECT \"ship\" FROM \"2-16832887-1\" WHERE \"class / type\" = 'cargo ship' AND location IN ('birkenhead, merseyside', 'birkenhead, uk', 'birkenhead')" + }, + { + "db_id": "2-11771022-3", + "question": "Which team won when the visitor was tampa bay?", + "evidence": "", + "schema_text_wo_content": "Table 2-11771022-3, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11771022-3, columns = [`Date` (Example values: [october 4, october 6, october 10]), `Visitor` (Example values: [florida, new jersey, tampa bay, florida]), `Score` (Example values: [2 – 5, 4 – 1, 1 – 2]), `Home` (Example values: [ny rangers, florida, tampa bay]), `Decision` (Example values: [vokoun, anderson]), `Attendance` (Example values: [18,200, 19,250, 18,540]), `Record` (Example values: [0–1–0, 0–2–0, 0–3–0])]\n", + "ori_query": "select `decision` from `2-11771022-3` where `visitor` = 'tampa bay'", + "amb_query": "SELECT \"decision\" FROM \"2-11771022-3\" WHERE visitor IN ('tampa bay, florida', 'tampa bay')" + }, + { + "db_id": "2-11771022-3", + "question": "Which team won when the visitor was Carolina?", + "evidence": "", + "schema_text_wo_content": "Table 2-11771022-3, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11771022-3, columns = [`Date` (Example values: [october 4, october 6, october 10]), `Visitor` (Example values: [florida, new jersey, tampa bay, florida]), `Score` (Example values: [2 – 5, 4 – 1, 1 – 2]), `Home` (Example values: [ny rangers, florida, tampa bay]), `Decision` (Example values: [vokoun, anderson]), `Attendance` (Example values: [18,200, 19,250, 18,540]), `Record` (Example values: [0–1–0, 0–2–0, 0–3–0])]\n", + "ori_query": "select `decision` from `2-11771022-3` where `visitor` = 'carolina'", + "amb_query": "SELECT \"decision\" FROM \"2-11771022-3\" WHERE visitor IN ('carolina state', 'carolina')" + }, + { + "db_id": "2-11772511-8", + "question": "What is the Record when tampa bay is at Home?", + "evidence": "", + "schema_text_wo_content": "Table 2-11772511-8, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11772511-8, columns = [`Date` (Example values: [march 1, march 5, march 6]), `Visitor` (Example values: [tampa bay, carolina, minnesota]), `Score` (Example values: [1 – 5, 6 – 3, 2 – 3]), `Home` (Example values: [carolina, atlanta, chicago]), `Decision` (Example values: [ward]), `Attendance` (Example values: [16,831, 13,032, 16,297]), `Record` (Example values: [34–29–5, 35–29–5, 36–29–5])]\n", + "ori_query": "select `record` from `2-11772511-8` where `home` = 'tampa bay'", + "amb_query": "SELECT \"record\" FROM \"2-11772511-8\" WHERE home IN ('tampa bay region', 'tampa bay')" + }, + { + "db_id": "2-11772511-8", + "question": "What is the Record when Buffalo is at Home?", + "evidence": "", + "schema_text_wo_content": "Table 2-11772511-8, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11772511-8, columns = [`Date` (Example values: [march 1, march 5, march 6]), `Visitor` (Example values: [tampa bay, carolina, minnesota]), `Score` (Example values: [1 – 5, 6 – 3, 2 – 3]), `Home` (Example values: [carolina, atlanta, chicago]), `Decision` (Example values: [ward]), `Attendance` (Example values: [16,831, 13,032, 16,297]), `Record` (Example values: [34–29–5, 35–29–5, 36–29–5])]\n", + "ori_query": "select `record` from `2-11772511-8` where `home` = 'buffalo'", + "amb_query": "SELECT \"record\" FROM \"2-11772511-8\" WHERE home IN ('buffalo', 'city of buffalo')" + }, + { + "db_id": "2-1083851-1", + "question": "What team had a capacity of over 26,542, a home city of pescara, and finished the 2011-2012 season 6th in serie a?", + "evidence": "", + "schema_text_wo_content": "Table 2-1083851-1, columns = [Team, Home city, Stadium, Capacity, 2011–12 season]\n", + "schema_text_with_content": "Table 2-1083851-1, columns = [`Team` (Example values: [atalanta, bologna, cagliari]), `Home city` (Example values: [bergamo, bologna, cagliari (playing in quartu sant'elena )]), `Stadium` (Example values: [atleti azzurri d'italia, renato dall'ara, is arenas]), `Capacity` (Example values: [26,542, 39,444, 16,214]), `2011–12 season` (Example values: [12th in serie a, 9th in serie a, 15th in serie a])]\n", + "ori_query": "select `team` from `2-1083851-1` where `capacity` > 26,542 and `home city` = 'pescara' and `2011–12 season` = '6th in serie a'", + "amb_query": "SELECT \"record\" FROM \"2-11772511-8\" WHERE home IN ('buffalo', 'city of buffalo')" + }, + { + "db_id": "2-1083851-1", + "question": "What team had a capacity of over 26,542, a home city of genoa, and finished the 2011-2012 season 6th in serie a?", + "evidence": "", + "schema_text_wo_content": "Table 2-1083851-1, columns = [Team, Home city, Stadium, Capacity, 2011–12 season]\n", + "schema_text_with_content": "Table 2-1083851-1, columns = [`Team` (Example values: [atalanta, bologna, cagliari]), `Home city` (Example values: [bergamo, bologna, cagliari (playing in quartu sant'elena )]), `Stadium` (Example values: [atleti azzurri d'italia, renato dall'ara, is arenas]), `Capacity` (Example values: [26,542, 39,444, 16,214]), `2011–12 season` (Example values: [12th in serie a, 9th in serie a, 15th in serie a])]\n", + "ori_query": "select `team` from `2-1083851-1` where `capacity` > 26,542 and `home city` = 'genoa' and `2011–12 season` = '6th in serie a'", + "amb_query": "SELECT \"record\" FROM \"2-11772511-8\" WHERE home IN ('buffalo', 'city of buffalo')" + }, + { + "db_id": "2-1083851-1", + "question": "What team had a capacity of over 26,542, a home city of milan, and finished the 2011-2012 season 6th in serie a?", + "evidence": "", + "schema_text_wo_content": "Table 2-1083851-1, columns = [Team, Home city, Stadium, Capacity, 2011–12 season]\n", + "schema_text_with_content": "Table 2-1083851-1, columns = [`Team` (Example values: [atalanta, bologna, cagliari]), `Home city` (Example values: [bergamo, bologna, cagliari (playing in quartu sant'elena )]), `Stadium` (Example values: [atleti azzurri d'italia, renato dall'ara, is arenas]), `Capacity` (Example values: [26,542, 39,444, 16,214]), `2011–12 season` (Example values: [12th in serie a, 9th in serie a, 15th in serie a])]\n", + "ori_query": "select `team` from `2-1083851-1` where `capacity` > 26,542 and `home city` = 'milan' and `2011–12 season` = '6th in serie a'", + "amb_query": "SELECT \"record\" FROM \"2-11772511-8\" WHERE home IN ('buffalo', 'city of buffalo')" + }, + { + "db_id": "2-1126723-3", + "question": "What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in sangre grande?", + "evidence": "", + "schema_text_wo_content": "Table 2-1126723-3, columns = [Club, Founded, Joined, Location, Stadium, Capacity, 2012–13 Position, Top Division Titles]\n", + "schema_text_with_content": "Table 2-1126723-3, columns = [`Club` (Example values: [caledonia aia, central fc, defence force]), `Founded` (Example values: [1979.0, 2012.0, 1972.0]), `Joined` (Example values: [2000.0, 2012.0, 1999.0]), `Location` (Example values: [malabar, california, chaguaramas area]), `Stadium` (Example values: [larry gomes stadium, ato boldon stadium, hasely crawford stadium]), `Capacity` (Example values: [10,000, 27,000, 7,000]), `2012–13 Position` (Example values: [2nd, 5th, 1st]), `Top Division Titles` (Example values: [0.0, 22.0, 1.0])]\n", + "ori_query": "select sum(`top division titles`) from `2-1126723-3` where `founded` < 1975 and `location` = 'sangre grande'", + "amb_query": "SELECT SUM(\"top division titles\") FROM \"2-1126723-3\" WHERE \"founded\" < 1975 AND location IN ('sangre grande', 'sangre grande region')" + }, + { + "db_id": "2-1126723-3", + "question": "What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?", + "evidence": "", + "schema_text_wo_content": "Table 2-1126723-3, columns = [Club, Founded, Joined, Location, Stadium, Capacity, 2012–13 Position, Top Division Titles]\n", + "schema_text_with_content": "Table 2-1126723-3, columns = [`Club` (Example values: [caledonia aia, central fc, defence force]), `Founded` (Example values: [1979.0, 2012.0, 1972.0]), `Joined` (Example values: [2000.0, 2012.0, 1999.0]), `Location` (Example values: [malabar, california, chaguaramas area]), `Stadium` (Example values: [larry gomes stadium, ato boldon stadium, hasely crawford stadium]), `Capacity` (Example values: [10,000, 27,000, 7,000]), `2012–13 Position` (Example values: [2nd, 5th, 1st]), `Top Division Titles` (Example values: [0.0, 22.0, 1.0])]\n", + "ori_query": "select sum(`top division titles`) from `2-1126723-3` where `founded` < 1975 and `location` = 'chaguaramas'", + "amb_query": "SELECT SUM(\"top division titles\") FROM \"2-1126723-3\" WHERE \"founded\" < 1975 AND location IN ('chaguaramas', 'chaguaramas area')" + }, + { + "db_id": "2-1137707-2", + "question": "What is the date that Ayrton Senna was the drive in hermanos rodríguez?", + "evidence": "", + "schema_text_wo_content": "Table 2-1137707-2, columns = [Round, Grand Prix, Date, Location, Pole Position, Fastest Lap, Winning Driver, Winning Constructor, Report]\n", + "schema_text_with_content": "Table 2-1137707-2, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Grand Prix` (Example values: [united states grand prix, brazilian grand prix, san marino grand prix]), `Date` (Example values: [11 march, 25 march, 13 may]), `Location` (Example values: [phoenix, interlagos, imola]), `Pole Position` (Example values: [gerhard berger, ayrton senna, nigel mansell]), `Fastest Lap` (Example values: [gerhard berger, alessandro nannini, ayrton senna]), `Winning Driver` (Example values: [ayrton senna, alain prost, riccardo patrese]), `Winning Constructor` (Example values: [mclaren - honda, ferrari, williams - renault]), `Report` (Example values: [report])]\n", + "ori_query": "select `date` from `2-1137707-2` where `winning driver` = 'ayrton senna' and `location` = 'hermanos rodríguez'", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('hermanos rodríguez', 'hermanos rodríguez racetrack')" + }, + { + "db_id": "2-1137707-2", + "question": "What is the date that Ayrton Senna was the drive in paul ricard?", + "evidence": "", + "schema_text_wo_content": "Table 2-1137707-2, columns = [Round, Grand Prix, Date, Location, Pole Position, Fastest Lap, Winning Driver, Winning Constructor, Report]\n", + "schema_text_with_content": "Table 2-1137707-2, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Grand Prix` (Example values: [united states grand prix, brazilian grand prix, san marino grand prix]), `Date` (Example values: [11 march, 25 march, 13 may]), `Location` (Example values: [phoenix, interlagos, imola]), `Pole Position` (Example values: [gerhard berger, ayrton senna, nigel mansell]), `Fastest Lap` (Example values: [gerhard berger, alessandro nannini, ayrton senna]), `Winning Driver` (Example values: [ayrton senna, alain prost, riccardo patrese]), `Winning Constructor` (Example values: [mclaren - honda, ferrari, williams - renault]), `Report` (Example values: [report])]\n", + "ori_query": "select `date` from `2-1137707-2` where `winning driver` = 'ayrton senna' and `location` = 'paul ricard'", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('paul ricard', 'paul ricard track')" + }, + { + "db_id": "2-1137707-2", + "question": "What is the date that Ayrton Senna was the drive in Monza?", + "evidence": "", + "schema_text_wo_content": "Table 2-1137707-2, columns = [Round, Grand Prix, Date, Location, Pole Position, Fastest Lap, Winning Driver, Winning Constructor, Report]\n", + "schema_text_with_content": "Table 2-1137707-2, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Grand Prix` (Example values: [united states grand prix, brazilian grand prix, san marino grand prix]), `Date` (Example values: [11 march, 25 march, 13 may]), `Location` (Example values: [phoenix, interlagos, imola]), `Pole Position` (Example values: [gerhard berger, ayrton senna, nigel mansell]), `Fastest Lap` (Example values: [gerhard berger, alessandro nannini, ayrton senna]), `Winning Driver` (Example values: [ayrton senna, alain prost, riccardo patrese]), `Winning Constructor` (Example values: [mclaren - honda, ferrari, williams - renault]), `Report` (Example values: [report])]\n", + "ori_query": "select `date` from `2-1137707-2` where `winning driver` = 'ayrton senna' and `location` = 'monza'", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('autodromo nazionale monza', 'monza')" + }, + { + "db_id": "2-10806592-5", + "question": "Which Away team has a Crowd larger than 14,000, and a Home team of geelong?", + "evidence": "", + "schema_text_wo_content": "Table 2-10806592-5, columns = [Home team, Home team score, Away team, Away team score, Venue, Crowd, Date]\n", + "schema_text_with_content": "Table 2-10806592-5, columns = [`Home team` (Example values: [hawthorn, essendon, st kilda]), `Home team score` (Example values: [13.9 (87), 15.15 (105), 11.16 (82)]), `Away team` (Example values: [richmond, south melbourne, north melbourne]), `Away team score` (Example values: [12.12 (84), 11.19 (85), 10.12 (72)]), `Venue` (Example values: [glenferrie oval, windy hill, junction oval]), `Crowd` (Example values: [18,000, 14,000, 14,979]), `Date` (Example values: [21 may 1938])]\n", + "ori_query": "select `away team` from `2-10806592-5` where `crowd` > 14,000 and `home team` = 'geelong'", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('autodromo nazionale monza', 'monza')" + }, + { + "db_id": "2-10806592-5", + "question": "Which Away team has a Crowd larger than 14,000, and a Home team of melbourne?", + "evidence": "", + "schema_text_wo_content": "Table 2-10806592-5, columns = [Home team, Home team score, Away team, Away team score, Venue, Crowd, Date]\n", + "schema_text_with_content": "Table 2-10806592-5, columns = [`Home team` (Example values: [hawthorn, essendon, st kilda]), `Home team score` (Example values: [13.9 (87), 15.15 (105), 11.16 (82)]), `Away team` (Example values: [richmond, south melbourne, north melbourne]), `Away team score` (Example values: [12.12 (84), 11.19 (85), 10.12 (72)]), `Venue` (Example values: [glenferrie oval, windy hill, junction oval]), `Crowd` (Example values: [18,000, 14,000, 14,979]), `Date` (Example values: [21 may 1938])]\n", + "ori_query": "select `away team` from `2-10806592-5` where `crowd` > 14,000 and `home team` = 'melbourne'", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('autodromo nazionale monza', 'monza')" + }, + { + "db_id": "2-11786147-5", + "question": "Who was the Home Team while vancouver was visiting while having an Attendance above 15,655?", + "evidence": "", + "schema_text_wo_content": "Table 2-11786147-5, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11786147-5, columns = [`Date` (Example values: [november 1, november 3, november 5]), `Visitor` (Example values: [pittsburgh, vancouver metropolitan area, calgary, alberta]), `Score` (Example values: [2 – 3, 4 – 3, 1 – 4]), `Home` (Example values: [colorado, vancouver, dallas]), `Decision` (Example values: [theodore, budaj]), `Attendance` (Example values: [18,007, 15,655, 15,877]), `Record` (Example values: [8–4–0, 8–5–0, 9–5–0])]\n", + "ori_query": "select `home` from `2-11786147-5` where `visitor` = 'vancouver' and `attendance` > 15,655", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('autodromo nazionale monza', 'monza')" + }, + { + "db_id": "2-11786147-5", + "question": "Who was the Home Team while Calgary was visiting while having an Attendance above 15,655?", + "evidence": "", + "schema_text_wo_content": "Table 2-11786147-5, columns = [Date, Visitor, Score, Home, Decision, Attendance, Record]\n", + "schema_text_with_content": "Table 2-11786147-5, columns = [`Date` (Example values: [november 1, november 3, november 5]), `Visitor` (Example values: [pittsburgh, vancouver metropolitan area, calgary, alberta]), `Score` (Example values: [2 – 3, 4 – 3, 1 – 4]), `Home` (Example values: [colorado, vancouver, dallas]), `Decision` (Example values: [theodore, budaj]), `Attendance` (Example values: [18,007, 15,655, 15,877]), `Record` (Example values: [8–4–0, 8–5–0, 9–5–0])]\n", + "ori_query": "select `home` from `2-11786147-5` where `visitor` = 'calgary' and `attendance` > 15,655", + "amb_query": "SELECT \"date\" FROM \"2-1137707-2\" WHERE \"winning driver\" = 'ayrton senna' AND location IN ('autodromo nazionale monza', 'monza')" + }, + { + "db_id": "2-11677760-25", + "question": "Which school is in oklahoma city, ok?", + "evidence": "", + "schema_text_wo_content": "Table 2-11677760-25, columns = [Player, Height, School, Hometown, College, NBA Draft]\n", + "schema_text_with_content": "Table 2-11677760-25, columns = [`Player` (Example values: [peyton siva, brandon knight ‡, kawhi leonard]), `Height` (Example values: [6-0, 6-3, 6-7]), `School` (Example values: [franklin high school, pine crest school, king high school]), `Hometown` (Example values: [seattle, wa, fort lauderdale, fl, riverside, california]), `College` (Example values: [louisville, kentucky, san diego state]), `NBA Draft` (Example values: [2nd round - 56th pick of 2013 draft ( pistons ), 1st round - 8th pick of 2011 draft ( pistons ), 1st round - 15th pick of 2011 draft ( pacers )])]\n", + "ori_query": "select `school` from `2-11677760-25` where `hometown` = 'oklahoma city, ok'", + "amb_query": "SELECT \"school\" FROM \"2-11677760-25\" WHERE hometown IN ('oklahoma city, ok, usa', 'oklahoma city, ok')" + }, + { + "db_id": "2-11677760-25", + "question": "Which school is in Raleigh, NC?", + "evidence": "", + "schema_text_wo_content": "Table 2-11677760-25, columns = [Player, Height, School, Hometown, College, NBA Draft]\n", + "schema_text_with_content": "Table 2-11677760-25, columns = [`Player` (Example values: [peyton siva, brandon knight ‡, kawhi leonard]), `Height` (Example values: [6-0, 6-3, 6-7]), `School` (Example values: [franklin high school, pine crest school, king high school]), `Hometown` (Example values: [seattle, wa, fort lauderdale, fl, riverside, california]), `College` (Example values: [louisville, kentucky, san diego state]), `NBA Draft` (Example values: [2nd round - 56th pick of 2013 draft ( pistons ), 1st round - 8th pick of 2011 draft ( pistons ), 1st round - 15th pick of 2011 draft ( pacers )])]\n", + "ori_query": "select `school` from `2-11677760-25` where `hometown` = 'raleigh, nc'", + "amb_query": "SELECT \"school\" FROM \"2-11677760-25\" WHERE hometown IN ('raleigh, north carolina, usa', 'raleigh, nc')" + }, + { + "db_id": "2-11677760-25", + "question": "Which school is in Riverside, CA?", + "evidence": "", + "schema_text_wo_content": "Table 2-11677760-25, columns = [Player, Height, School, Hometown, College, NBA Draft]\n", + "schema_text_with_content": "Table 2-11677760-25, columns = [`Player` (Example values: [peyton siva, brandon knight ‡, kawhi leonard]), `Height` (Example values: [6-0, 6-3, 6-7]), `School` (Example values: [franklin high school, pine crest school, king high school]), `Hometown` (Example values: [seattle, wa, fort lauderdale, fl, riverside, california]), `College` (Example values: [louisville, kentucky, san diego state]), `NBA Draft` (Example values: [2nd round - 56th pick of 2013 draft ( pistons ), 1st round - 8th pick of 2011 draft ( pistons ), 1st round - 15th pick of 2011 draft ( pacers )])]\n", + "ori_query": "select `school` from `2-11677760-25` where `hometown` = 'riverside, ca'", + "amb_query": "SELECT \"school\" FROM \"2-11677760-25\" WHERE hometown IN ('riverside, california', 'riverside, ca')" + }, + { + "db_id": "2-11565999-3", + "question": "Tell me the release date record on 7/23/73 and a time on 2:50", + "evidence": "", + "schema_text_wo_content": "Table 2-11565999-3, columns = [Track, Recorded, Catalogue, Release Date, Song Title, Time]\n", + "schema_text_with_content": "Table 2-11565999-3, columns = [`Track` (Example values: [1.0, 2.0, 3.0]), `Recorded` (Example values: [3/29/72, 3/28/72, 1/4/73]), `Catalogue` (Example values: [74-0815b, 74-0910b, 74-0910]), `Release Date` (Example values: [10/31/72, 3/4/73, 9/22/73]), `Song Title` (Example values: [always on my mind, fool, steamroller blues]), `Time` (Example values: [3:37, 3:30, 3:04])]\n", + "ori_query": "select `release date` from `2-11565999-3` where `time` = '2:50' and `recorded` = '7/23/73'", + "amb_query": "SELECT \"release date\" FROM \"2-11565999-3\" WHERE \"time\" = '2:50' AND recorded IN ('7/23/73', 'july 23, 1973', '23/07/73')" + }, + { + "db_id": "2-11565999-3", + "question": "Tell me the release date record on 7/21/73 and a time on 2:50", + "evidence": "", + "schema_text_wo_content": "Table 2-11565999-3, columns = [Track, Recorded, Catalogue, Release Date, Song Title, Time]\n", + "schema_text_with_content": "Table 2-11565999-3, columns = [`Track` (Example values: [1.0, 2.0, 3.0]), `Recorded` (Example values: [3/29/72, 3/28/72, 1/4/73]), `Catalogue` (Example values: [74-0815b, 74-0910b, 74-0910]), `Release Date` (Example values: [10/31/72, 3/4/73, 9/22/73]), `Song Title` (Example values: [always on my mind, fool, steamroller blues]), `Time` (Example values: [3:37, 3:30, 3:04])]\n", + "ori_query": "select `release date` from `2-11565999-3` where `time` = '2:50' and `recorded` = '7/21/73'", + "amb_query": "SELECT \"release date\" FROM \"2-11565999-3\" WHERE \"time\" = '2:50' AND recorded IN ('7/21/73', '07-21-73')" + }, + { + "db_id": "2-11565999-3", + "question": "Tell me the release date record on 10/29/76 and a time on 2:50", + "evidence": "", + "schema_text_wo_content": "Table 2-11565999-3, columns = [Track, Recorded, Catalogue, Release Date, Song Title, Time]\n", + "schema_text_with_content": "Table 2-11565999-3, columns = [`Track` (Example values: [1.0, 2.0, 3.0]), `Recorded` (Example values: [3/29/72, 3/28/72, 1/4/73]), `Catalogue` (Example values: [74-0815b, 74-0910b, 74-0910]), `Release Date` (Example values: [10/31/72, 3/4/73, 9/22/73]), `Song Title` (Example values: [always on my mind, fool, steamroller blues]), `Time` (Example values: [3:37, 3:30, 3:04])]\n", + "ori_query": "select `release date` from `2-11565999-3` where `time` = '2:50' and `recorded` = '10/29/76'", + "amb_query": "SELECT \"release date\" FROM \"2-11565999-3\" WHERE \"time\" = '2:50' AND recorded IN ('10/29/1976', '10/29/76', '10-29-76')" + }, + { + "db_id": "2-11677691-2", + "question": "Which player is from sacramento, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-11677691-2, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 2-11677691-2, columns = [`Player` (Example values: [jadeveon clowney, tim jernigan, anthony johnson]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [south pointe high school, columbia high school, o. perry walker high school]), `Hometown` (Example values: [rock hill, south carolina, lake city, florida, new orleans, louisiana]), `College` (Example values: [south carolina, florida state, lsu])]\n", + "ori_query": "select `player` from `2-11677691-2` where `hometown` = 'sacramento, california'", + "amb_query": "SELECT \"player\" FROM \"2-11677691-2\" WHERE hometown IN ('sacramento, ca', 'sacramento, california')" + }, + { + "db_id": "2-11677691-2", + "question": "Which player is from orlando, florida?", + "evidence": "", + "schema_text_wo_content": "Table 2-11677691-2, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 2-11677691-2, columns = [`Player` (Example values: [jadeveon clowney, tim jernigan, anthony johnson]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [south pointe high school, columbia high school, o. perry walker high school]), `Hometown` (Example values: [rock hill, south carolina, lake city, florida, new orleans, louisiana]), `College` (Example values: [south carolina, florida state, lsu])]\n", + "ori_query": "select `player` from `2-11677691-2` where `hometown` = 'orlando, florida'", + "amb_query": "SELECT \"player\" FROM \"2-11677691-2\" WHERE hometown IN ('orlando, florida, usa', 'orlando, florida')" + }, + { + "db_id": "2-11677691-2", + "question": "Which player is from Tampa, Florida?", + "evidence": "", + "schema_text_wo_content": "Table 2-11677691-2, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 2-11677691-2, columns = [`Player` (Example values: [jadeveon clowney, tim jernigan, anthony johnson]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [south pointe high school, columbia high school, o. perry walker high school]), `Hometown` (Example values: [rock hill, south carolina, lake city, florida, new orleans, louisiana]), `College` (Example values: [south carolina, florida state, lsu])]\n", + "ori_query": "select `player` from `2-11677691-2` where `hometown` = 'tampa, florida'", + "amb_query": "SELECT \"player\" FROM \"2-11677691-2\" WHERE hometown IN ('tampa, florida, usa', 'tampa, florida')" + }, + { + "db_id": "1-20996923-20", + "question": "What is the date when the city is orlando, florida?", + "evidence": "", + "schema_text_wo_content": "Table 1-20996923-20, columns = [Bowl Game, Date, Stadium, City, Television, Matchups/Result, Payout ( US$ )]\n", + "schema_text_with_content": "Table 1-20996923-20, columns = [`Bowl Game` (Example values: [champs sports bowl, insight bowl, outback bowl]), `Date` (Example values: [december 29, 2009 8:00 pm et, december 31, 2009 6:00 pm et, january 1, 2010 11:00 am et]), `Stadium` (Example values: [citrus bowl, sun devil stadium, raymond james stadium]), `City` (Example values: [orlando, florida, usa, tempe, arizona, tampa, florida]), `Television` (Example values: [espn, nfl network, abc]), `Matchups/Result` (Example values: [wisconsin 20, miami 14, iowa state 14, minnesota 13, auburn 38, northwestern 35 (ot)]), `Payout ( US$ )` (Example values: [$2,130,000, $1,200,000, $3,100,000])]\n", + "ori_query": "select `date` from `1-20996923-20` where `city` = 'orlando, florida'", + "amb_query": "SELECT \"date\" FROM \"1-20996923-20\" WHERE city IN ('orlando, florida, usa', 'orlando, florida')" + }, + { + "db_id": "1-20996923-20", + "question": "What is the date when the city is San Antonio, Texas?", + "evidence": "", + "schema_text_wo_content": "Table 1-20996923-20, columns = [Bowl Game, Date, Stadium, City, Television, Matchups/Result, Payout ( US$ )]\n", + "schema_text_with_content": "Table 1-20996923-20, columns = [`Bowl Game` (Example values: [champs sports bowl, insight bowl, outback bowl]), `Date` (Example values: [december 29, 2009 8:00 pm et, december 31, 2009 6:00 pm et, january 1, 2010 11:00 am et]), `Stadium` (Example values: [citrus bowl, sun devil stadium, raymond james stadium]), `City` (Example values: [orlando, florida, usa, tempe, arizona, tampa, florida]), `Television` (Example values: [espn, nfl network, abc]), `Matchups/Result` (Example values: [wisconsin 20, miami 14, iowa state 14, minnesota 13, auburn 38, northwestern 35 (ot)]), `Payout ( US$ )` (Example values: [$2,130,000, $1,200,000, $3,100,000])]\n", + "ori_query": "select `date` from `1-20996923-20` where `city` = 'san antonio, texas'", + "amb_query": "SELECT \"date\" FROM \"1-20996923-20\" WHERE city IN ('san antonio, bexar county, texas', 'san antonio, texas')" + }, + { + "db_id": "2-1198472-1", + "question": "What competition is located in blida?", + "evidence": "", + "schema_text_wo_content": "Table 2-1198472-1, columns = [Date, Location, Opponent, Score, Competition]\n", + "schema_text_with_content": "Table 2-1198472-1, columns = [`Date` (Example values: [3 june 2012, 10 june 2012, 17 june 2012]), `Location` (Example values: [cotonou, kigali, benin]), `Opponent` (Example values: [mali, rwanda, ethiopia]), `Score` (Example values: [1-0, 1-1, 1-3]), `Competition` (Example values: [2014 world cup qualification, 2013 acn qualification])]\n", + "ori_query": "select `competition` from `2-1198472-1` where `location` = 'blida'", + "amb_query": "SELECT \"competition\" FROM \"2-1198472-1\" WHERE location IN ('blida', 'blida, algeria')" + }, + { + "db_id": "2-1198472-1", + "question": "What competition is located in bamako?", + "evidence": "", + "schema_text_wo_content": "Table 2-1198472-1, columns = [Date, Location, Opponent, Score, Competition]\n", + "schema_text_with_content": "Table 2-1198472-1, columns = [`Date` (Example values: [3 june 2012, 10 june 2012, 17 june 2012]), `Location` (Example values: [cotonou, kigali, benin]), `Opponent` (Example values: [mali, rwanda, ethiopia]), `Score` (Example values: [1-0, 1-1, 1-3]), `Competition` (Example values: [2014 world cup qualification, 2013 acn qualification])]\n", + "ori_query": "select `competition` from `2-1198472-1` where `location` = 'bamako'", + "amb_query": "SELECT \"competition\" FROM \"2-1198472-1\" WHERE location IN ('bamako', 'bamako, mali')" + }, + { + "db_id": "2-1198472-1", + "question": "What is the score from the game where Algeria is the opponent at Porto-Novo?", + "evidence": "", + "schema_text_wo_content": "Table 2-1198472-1, columns = [Date, Location, Opponent, Score, Competition]\n", + "schema_text_with_content": "Table 2-1198472-1, columns = [`Date` (Example values: [3 june 2012, 10 june 2012, 17 june 2012]), `Location` (Example values: [cotonou, kigali, benin]), `Opponent` (Example values: [mali, rwanda, ethiopia]), `Score` (Example values: [1-0, 1-1, 1-3]), `Competition` (Example values: [2014 world cup qualification, 2013 acn qualification])]\n", + "ori_query": "select `score` from `2-1198472-1` where `opponent` = 'algeria' and `location` = 'porto-novo'", + "amb_query": "SELECT \"score\" FROM \"2-1198472-1\" WHERE \"opponent\" = 'algeria' AND location IN ('porto-novo', 'porto-novo, west africa')" + }, + { + "db_id": "2-11736225-1", + "question": "Where does monaco rank with under 19 silvers?", + "evidence": "", + "schema_text_wo_content": "Table 2-11736225-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11736225-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [republic of iceland, luxembourg, cyprus, mediterranean]), `Gold` (Example values: [27.0, 23.0, 22.0]), `Silver` (Example values: [19.0, 22.0, 16.0]), `Bronze` (Example values: [18.0, 15.0, 23.0]), `Total` (Example values: [64.0, 60.0, 61.0])]\n", + "ori_query": "select max(`rank`) from `2-11736225-1` where `nation` = 'monaco' and `silver` < 19", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-11736225-1\" WHERE nation IN ('monaco', 'monaco, western europe') AND \"silver\" < 19" + }, + { + "db_id": "2-11736225-1", + "question": "How many bronzes for cyprus with over 2 silvers?", + "evidence": "", + "schema_text_wo_content": "Table 2-11736225-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11736225-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [republic of iceland, luxembourg, cyprus, mediterranean]), `Gold` (Example values: [27.0, 23.0, 22.0]), `Silver` (Example values: [19.0, 22.0, 16.0]), `Bronze` (Example values: [18.0, 15.0, 23.0]), `Total` (Example values: [64.0, 60.0, 61.0])]\n", + "ori_query": "select avg(`bronze`) from `2-11736225-1` where `silver` > 2 and `nation` = 'cyprus'", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-11736225-1\" WHERE \"silver\" > 2 AND nation IN ('cyprus, mediterranean', 'cyprus')" + }, + { + "db_id": "2-11736225-1", + "question": "Where does Iceland rank with under 19 silvers?", + "evidence": "", + "schema_text_wo_content": "Table 2-11736225-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11736225-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [republic of iceland, luxembourg, cyprus, mediterranean]), `Gold` (Example values: [27.0, 23.0, 22.0]), `Silver` (Example values: [19.0, 22.0, 16.0]), `Bronze` (Example values: [18.0, 15.0, 23.0]), `Total` (Example values: [64.0, 60.0, 61.0])]\n", + "ori_query": "select max(`rank`) from `2-11736225-1` where `nation` = 'iceland' and `silver` < 19", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-11736225-1\" WHERE nation IN ('iceland', 'republic of iceland') AND \"silver\" < 19" + }, + { + "db_id": "2-11736225-1", + "question": "How many bronzes for Iceland with over 2 silvers?", + "evidence": "", + "schema_text_wo_content": "Table 2-11736225-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-11736225-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [republic of iceland, luxembourg, cyprus, mediterranean]), `Gold` (Example values: [27.0, 23.0, 22.0]), `Silver` (Example values: [19.0, 22.0, 16.0]), `Bronze` (Example values: [18.0, 15.0, 23.0]), `Total` (Example values: [64.0, 60.0, 61.0])]\n", + "ori_query": "select avg(`bronze`) from `2-11736225-1` where `silver` > 2 and `nation` = 'iceland'", + "amb_query": "SELECT AVG(\"bronze\") FROM \"2-11736225-1\" WHERE \"silver\" > 2 AND nation IN ('iceland', 'republic of iceland')" + }, + { + "db_id": "2-10801190-1", + "question": "What is the Absorbtion (in nanometers) of the color near-ir?", + "evidence": "", + "schema_text_wo_content": "Table 2-10801190-1, columns = [Color, mass (g/mol), Absorb (nm), Emit (nm), ε (M -1 cm -1 )]\n", + "schema_text_with_content": "Table 2-10801190-1, columns = [`Color` (Example values: [violet shade, green color, yellow]), `mass (g/mol)` (Example values: [874, 793, 1011]), `Absorb (nm)` (Example values: [353, 400, 493]), `Emit (nm)` (Example values: [432, 420, 518]), `ε (M -1 cm -1 )` (Example values: [15,000, 30,000, 70,000])]\n", + "ori_query": "select `absorb (nm)` from `2-10801190-1` where `color` = 'near-ir'", + "amb_query": "SELECT \"absorb (nm)\" FROM \"2-10801190-1\" WHERE color IN ('near-ir', 'near-infrared color')" + }, + { + "db_id": "2-10801190-1", + "question": "What is the Absorbtion (in nanometers) of the color green with an emission of 432 nm?", + "evidence": "", + "schema_text_wo_content": "Table 2-10801190-1, columns = [Color, mass (g/mol), Absorb (nm), Emit (nm), ε (M -1 cm -1 )]\n", + "schema_text_with_content": "Table 2-10801190-1, columns = [`Color` (Example values: [violet shade, green color, yellow]), `mass (g/mol)` (Example values: [874, 793, 1011]), `Absorb (nm)` (Example values: [353, 400, 493]), `Emit (nm)` (Example values: [432, 420, 518]), `ε (M -1 cm -1 )` (Example values: [15,000, 30,000, 70,000])]\n", + "ori_query": "select `absorb (nm)` from `2-10801190-1` where `color` = 'green' and `emit (nm)` = '432'", + "amb_query": "SELECT \"absorb (nm)\" FROM \"2-10801190-1\" WHERE color IN ('green', 'green color') AND \"emit (nm)\" = '432'" + }, + { + "db_id": "2-10801190-1", + "question": "What is the Absorbtion (in nanometers) of the color Orange?", + "evidence": "", + "schema_text_wo_content": "Table 2-10801190-1, columns = [Color, mass (g/mol), Absorb (nm), Emit (nm), ε (M -1 cm -1 )]\n", + "schema_text_with_content": "Table 2-10801190-1, columns = [`Color` (Example values: [violet shade, green color, yellow]), `mass (g/mol)` (Example values: [874, 793, 1011]), `Absorb (nm)` (Example values: [353, 400, 493]), `Emit (nm)` (Example values: [432, 420, 518]), `ε (M -1 cm -1 )` (Example values: [15,000, 30,000, 70,000])]\n", + "ori_query": "select `absorb (nm)` from `2-10801190-1` where `color` = 'orange'", + "amb_query": "SELECT \"absorb (nm)\" FROM \"2-10801190-1\" WHERE color IN ('orange color', 'orange')" + }, + { + "db_id": "2-10801190-1", + "question": "What is the Absorbtion (in nanometers) of the color Violet with an emission of 432 nm?", + "evidence": "", + "schema_text_wo_content": "Table 2-10801190-1, columns = [Color, mass (g/mol), Absorb (nm), Emit (nm), ε (M -1 cm -1 )]\n", + "schema_text_with_content": "Table 2-10801190-1, columns = [`Color` (Example values: [violet shade, green color, yellow]), `mass (g/mol)` (Example values: [874, 793, 1011]), `Absorb (nm)` (Example values: [353, 400, 493]), `Emit (nm)` (Example values: [432, 420, 518]), `ε (M -1 cm -1 )` (Example values: [15,000, 30,000, 70,000])]\n", + "ori_query": "select `absorb (nm)` from `2-10801190-1` where `color` = 'violet' and `emit (nm)` = '432'", + "amb_query": "SELECT \"absorb (nm)\" FROM \"2-10801190-1\" WHERE color IN ('violet shade', 'violet') AND \"emit (nm)\" = '432'" + }, + { + "db_id": "2-1780045-1", + "question": "What is Competition, when Date is \"January 11, 1996\", when Venue is \"lausanne , switzerland\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `competition` from `2-1780045-1` where `date` = 'january 11, 1996' and `venue` = 'lausanne , switzerland'", + "amb_query": "SELECT \"competition\" FROM \"2-1780045-1\" WHERE \"date\" = 'january 11, 1996' AND venue IN ('lausanne, vaud, switzerland', 'lausanne , switzerland')" + }, + { + "db_id": "2-1780045-1", + "question": "What is Competition, when Date is \"January 11, 1996\", when Venue is \"maldonado, uruguay\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `competition` from `2-1780045-1` where `date` = 'january 11, 1996' and `venue` = 'maldonado, uruguay'", + "amb_query": "SELECT \"competition\" FROM \"2-1780045-1\" WHERE \"date\" = 'january 11, 1996' AND venue IN ('maldonado, uruguay', 'maldonado, uy')" + }, + { + "db_id": "2-1780045-1", + "question": "What is Score, when Venue is san diego, united states, and when Result is \"Win\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `score` from `2-1780045-1` where `venue` = 'san diego, united states' and `result` = 'win'", + "amb_query": "SELECT \"score\" FROM \"2-1780045-1\" WHERE venue IN ('san diego, california', 'san diego, united states') AND \"result\" = 'win'" + }, + { + "db_id": "2-1780045-1", + "question": "What is Score, when Venue is los angeles, united states, and when Result is \"Win\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `score` from `2-1780045-1` where `venue` = 'los angeles, united states' and `result` = 'win'", + "amb_query": "SELECT \"score\" FROM \"2-1780045-1\" WHERE venue IN ('los angeles, united states', 'city of los angeles, usa') AND \"result\" = 'win'" + }, + { + "db_id": "2-1780045-1", + "question": "What is Result, when Date is \"June 11, 1994\", and when Venue is \"león , mexico\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `result` from `2-1780045-1` where `date` = 'june 11, 1994' and `venue` = 'león , mexico'", + "amb_query": "SELECT \"result\" FROM \"2-1780045-1\" WHERE \"date\" = 'june 11, 1994' AND venue IN ('león , mexico', 'león, mexico')" + }, + { + "db_id": "2-1780045-1", + "question": "What is Result, when Date is \"June 11, 1994\", and when Venue is \"dallas , united states\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `result` from `2-1780045-1` where `date` = 'june 11, 1994' and `venue` = 'dallas , united states'", + "amb_query": "SELECT \"result\" FROM \"2-1780045-1\" WHERE \"date\" = 'june 11, 1994' AND venue IN ('dallas , united states', 'dallas city, united states')" + }, + { + "db_id": "2-1780045-1", + "question": "What is Competition, when Date is \"January 11, 1996\", when Venue is \"San Diego , United States\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `competition` from `2-1780045-1` where `date` = 'january 11, 1996' and `venue` = 'san diego , united states'", + "amb_query": "SELECT \"competition\" FROM \"2-1780045-1\" WHERE \"date\" = 'january 11, 1996' AND venue IN ('san diego , united states', 'san diego, ca')" + }, + { + "db_id": "2-1780045-1", + "question": "What is Score, when Venue is Riyadh, Saudi Arabia, and when Result is \"Win\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `score` from `2-1780045-1` where `venue` = 'riyadh, saudi arabia' and `result` = 'win'", + "amb_query": "SELECT \"score\" FROM \"2-1780045-1\" WHERE venue IN ('riyadh, saudi arabia', 'riyadh, saudi arabia city') AND \"result\" = 'win'" + }, + { + "db_id": "2-1780045-1", + "question": "What is Result, when Date is \"June 11, 1994\", and when Venue is \"Miami, United States\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-1780045-1, columns = [Date, Venue, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-1780045-1, columns = [`Date` (Example values: [december 4, 1991, march 11, 1992, november 22, 1992]), `Venue` (Example values: [león, mexico, tampico , mexico, mexico city, mexico]), `Score` (Example values: [3–0, 1–1, 4–0]), `Result` (Example values: [win, draw, loss]), `Competition` (Example values: [friendly, 1994 fifa world cup qualification, 1994 fifa world cup])]\n", + "ori_query": "select `result` from `2-1780045-1` where `date` = 'june 11, 1994' and `venue` = 'miami, united states'", + "amb_query": "SELECT \"result\" FROM \"2-1780045-1\" WHERE \"date\" = 'june 11, 1994' AND venue IN ('city of miami, united states', 'miami, united states')" + }, + { + "db_id": "2-18139722-2", + "question": "What District has a Location of kanchipuram?", + "evidence": "", + "schema_text_wo_content": "Table 2-18139722-2, columns = [College or Campus Name, Location, District, Affiliation, Weblink]\n", + "schema_text_with_content": "Table 2-18139722-2, columns = [`College or Campus Name` (Example values: [anna university - tharamani campus, anna university college of engineering villupuram, anna university college of engineering tindivanam]), `Location` (Example values: [tharamani locality, villupuram district, tindivanam]), `District` (Example values: [chennai district, villupuram, tiruvannamalai]), `Affiliation` (Example values: [anna university]), `Weblink` (Example values: [http://www.annauniv.edu, http://www.aucev.edu.in/, http://www.gcesalem.edu.in])]\n", + "ori_query": "select `district` from `2-18139722-2` where `location` = 'kanchipuram'", + "amb_query": "SELECT \"district\" FROM \"2-18139722-2\" WHERE location IN ('kanchipuram', 'kanchipuram, tamil nadu')" + }, + { + "db_id": "2-18139722-2", + "question": "What District has a Location of tharamani?", + "evidence": "", + "schema_text_wo_content": "Table 2-18139722-2, columns = [College or Campus Name, Location, District, Affiliation, Weblink]\n", + "schema_text_with_content": "Table 2-18139722-2, columns = [`College or Campus Name` (Example values: [anna university - tharamani campus, anna university college of engineering villupuram, anna university college of engineering tindivanam]), `Location` (Example values: [tharamani locality, villupuram district, tindivanam]), `District` (Example values: [chennai district, villupuram, tiruvannamalai]), `Affiliation` (Example values: [anna university]), `Weblink` (Example values: [http://www.annauniv.edu, http://www.aucev.edu.in/, http://www.gcesalem.edu.in])]\n", + "ori_query": "select `district` from `2-18139722-2` where `location` = 'tharamani'", + "amb_query": "SELECT \"district\" FROM \"2-18139722-2\" WHERE location IN ('tharamani', 'tharamani locality')" + }, + { + "db_id": "2-18139722-2", + "question": "What District has a Location of villupuram?", + "evidence": "", + "schema_text_wo_content": "Table 2-18139722-2, columns = [College or Campus Name, Location, District, Affiliation, Weblink]\n", + "schema_text_with_content": "Table 2-18139722-2, columns = [`College or Campus Name` (Example values: [anna university - tharamani campus, anna university college of engineering villupuram, anna university college of engineering tindivanam]), `Location` (Example values: [tharamani locality, villupuram district, tindivanam]), `District` (Example values: [chennai district, villupuram, tiruvannamalai]), `Affiliation` (Example values: [anna university]), `Weblink` (Example values: [http://www.annauniv.edu, http://www.aucev.edu.in/, http://www.gcesalem.edu.in])]\n", + "ori_query": "select `district` from `2-18139722-2` where `location` = 'villupuram'", + "amb_query": "SELECT \"district\" FROM \"2-18139722-2\" WHERE location IN ('villupuram district', 'villupuram')" + }, + { + "db_id": "2-18073616-2", + "question": "What Elector was Elevated on december 22, 1144?", + "evidence": "", + "schema_text_wo_content": "Table 2-18073616-2, columns = [Elector, Place of birth, Cardinalatial title, Elevated, Elevator]\n", + "schema_text_with_content": "Table 2-18073616-2, columns = [`Elector` (Example values: [paolo scolari, pietro de bono , c.r.s.m.r., ruggiero di san severino]), `Place of birth` (Example values: [rome, san severino, france]), `Cardinalatial title` (Example values: [bishop of palestrina, priest of s. susanna, priest of s. eusebio and archbishop of benevento]), `Elevated` (Example values: [21st september 1179, march 18, 1166, ca. 1178/80]), `Elevator` (Example values: [alexander iii, lucius ii, lucius iii])]\n", + "ori_query": "select `elector` from `2-18073616-2` where `elevated` = 'december 22, 1144'", + "amb_query": "SELECT \"elector\" FROM \"2-18073616-2\" WHERE elevated IN ('12/22/1144', 'december 22, 1144')" + }, + { + "db_id": "2-18073616-2", + "question": "What Elector was Elevated on December 18, 1182?", + "evidence": "", + "schema_text_wo_content": "Table 2-18073616-2, columns = [Elector, Place of birth, Cardinalatial title, Elevated, Elevator]\n", + "schema_text_with_content": "Table 2-18073616-2, columns = [`Elector` (Example values: [paolo scolari, pietro de bono , c.r.s.m.r., ruggiero di san severino]), `Place of birth` (Example values: [rome, san severino, france]), `Cardinalatial title` (Example values: [bishop of palestrina, priest of s. susanna, priest of s. eusebio and archbishop of benevento]), `Elevated` (Example values: [21st september 1179, march 18, 1166, ca. 1178/80]), `Elevator` (Example values: [alexander iii, lucius ii, lucius iii])]\n", + "ori_query": "select `elector` from `2-18073616-2` where `elevated` = 'december 18, 1182'", + "amb_query": "SELECT \"elector\" FROM \"2-18073616-2\" WHERE elevated IN ('18th december 1182', '12/18/1182', 'december 18, 1182')" + }, + { + "db_id": "2-18073616-2", + "question": "What is the Elevator of the Elected Elevated on September 21, 1179?", + "evidence": "", + "schema_text_wo_content": "Table 2-18073616-2, columns = [Elector, Place of birth, Cardinalatial title, Elevated, Elevator]\n", + "schema_text_with_content": "Table 2-18073616-2, columns = [`Elector` (Example values: [paolo scolari, pietro de bono , c.r.s.m.r., ruggiero di san severino]), `Place of birth` (Example values: [rome, san severino, france]), `Cardinalatial title` (Example values: [bishop of palestrina, priest of s. susanna, priest of s. eusebio and archbishop of benevento]), `Elevated` (Example values: [21st september 1179, march 18, 1166, ca. 1178/80]), `Elevator` (Example values: [alexander iii, lucius ii, lucius iii])]\n", + "ori_query": "select `elevator` from `2-18073616-2` where `elevated` = 'september 21, 1179'", + "amb_query": "SELECT \"elevator\" FROM \"2-18073616-2\" WHERE elevated IN ('21st september 1179', 'september 21, 1179')" + }, + { + "db_id": "1-18461635-1", + "question": "Who is the captain of the team in worcester? ", + "evidence": "", + "schema_text_wo_content": "Table 1-18461635-1, columns = [Team, Location, County, Division, Home ground, Coach, Captain]\n", + "schema_text_with_content": "Table 1-18461635-1, columns = [`Team` (Example values: [derbyshire falcons, durham dynamos, essex eagles]), `Location` (Example values: [derby, chester-le-street, chelmsford, uk]), `County` (Example values: [derbyshire, county durham, essex]), `Division` (Example values: [north, south, midlands/wales/west]), `Home ground` (Example values: [county ground, riverside ground, nevil road]), `Coach` (Example values: [karl krikken, geoff cook, paul grayson]), `Captain` (Example values: [wayne madsen, phil mustard, james foster])]\n", + "ori_query": "select `captain` from `1-18461635-1` where `location` = 'worcester'", + "amb_query": "SELECT \"captain\" FROM \"1-18461635-1\" WHERE location IN ('worcester', 'worcester city')" + }, + { + "db_id": "1-18461635-1", + "question": "Who is the coach of the team in chelmsford? ", + "evidence": "", + "schema_text_wo_content": "Table 1-18461635-1, columns = [Team, Location, County, Division, Home ground, Coach, Captain]\n", + "schema_text_with_content": "Table 1-18461635-1, columns = [`Team` (Example values: [derbyshire falcons, durham dynamos, essex eagles]), `Location` (Example values: [derby, chester-le-street, chelmsford, uk]), `County` (Example values: [derbyshire, county durham, essex]), `Division` (Example values: [north, south, midlands/wales/west]), `Home ground` (Example values: [county ground, riverside ground, nevil road]), `Coach` (Example values: [karl krikken, geoff cook, paul grayson]), `Captain` (Example values: [wayne madsen, phil mustard, james foster])]\n", + "ori_query": "select `coach` from `1-18461635-1` where `location` = 'chelmsford'", + "amb_query": "SELECT \"coach\" FROM \"1-18461635-1\" WHERE location IN ('chelmsford', 'chelmsford, uk')" + }, + { + "db_id": "1-18461635-1", + "question": "Who is the coach of the team in canterbury? ", + "evidence": "", + "schema_text_wo_content": "Table 1-18461635-1, columns = [Team, Location, County, Division, Home ground, Coach, Captain]\n", + "schema_text_with_content": "Table 1-18461635-1, columns = [`Team` (Example values: [derbyshire falcons, durham dynamos, essex eagles]), `Location` (Example values: [derby, chester-le-street, chelmsford, uk]), `County` (Example values: [derbyshire, county durham, essex]), `Division` (Example values: [north, south, midlands/wales/west]), `Home ground` (Example values: [county ground, riverside ground, nevil road]), `Coach` (Example values: [karl krikken, geoff cook, paul grayson]), `Captain` (Example values: [wayne madsen, phil mustard, james foster])]\n", + "ori_query": "select `coach` from `1-18461635-1` where `location` = 'canterbury'", + "amb_query": "SELECT \"coach\" FROM \"1-18461635-1\" WHERE location IN ('canterbury', 'canterbury, england')" + }, + { + "db_id": "1-18461635-1", + "question": "Who is the captain of the team in birmingham? ", + "evidence": "", + "schema_text_wo_content": "Table 1-18461635-1, columns = [Team, Location, County, Division, Home ground, Coach, Captain]\n", + "schema_text_with_content": "Table 1-18461635-1, columns = [`Team` (Example values: [derbyshire falcons, durham dynamos, essex eagles]), `Location` (Example values: [derby, chester-le-street, chelmsford, uk]), `County` (Example values: [derbyshire, county durham, essex]), `Division` (Example values: [north, south, midlands/wales/west]), `Home ground` (Example values: [county ground, riverside ground, nevil road]), `Coach` (Example values: [karl krikken, geoff cook, paul grayson]), `Captain` (Example values: [wayne madsen, phil mustard, james foster])]\n", + "ori_query": "select `captain` from `1-18461635-1` where `location` = 'birmingham'", + "amb_query": "SELECT \"captain\" FROM \"1-18461635-1\" WHERE location IN ('birmingham', 'birmingham, england')" + }, + { + "db_id": "1-18461635-1", + "question": "Who is the coach of the team in Leicester? ", + "evidence": "", + "schema_text_wo_content": "Table 1-18461635-1, columns = [Team, Location, County, Division, Home ground, Coach, Captain]\n", + "schema_text_with_content": "Table 1-18461635-1, columns = [`Team` (Example values: [derbyshire falcons, durham dynamos, essex eagles]), `Location` (Example values: [derby, chester-le-street, chelmsford, uk]), `County` (Example values: [derbyshire, county durham, essex]), `Division` (Example values: [north, south, midlands/wales/west]), `Home ground` (Example values: [county ground, riverside ground, nevil road]), `Coach` (Example values: [karl krikken, geoff cook, paul grayson]), `Captain` (Example values: [wayne madsen, phil mustard, james foster])]\n", + "ori_query": "select `coach` from `1-18461635-1` where `location` = 'leicester'", + "amb_query": "SELECT \"coach\" FROM \"1-18461635-1\" WHERE location IN ('leicester', 'leicester, east midlands')" + }, + { + "db_id": "1-18461635-1", + "question": "Who is the captain of the team in Southampton? ", + "evidence": "", + "schema_text_wo_content": "Table 1-18461635-1, columns = [Team, Location, County, Division, Home ground, Coach, Captain]\n", + "schema_text_with_content": "Table 1-18461635-1, columns = [`Team` (Example values: [derbyshire falcons, durham dynamos, essex eagles]), `Location` (Example values: [derby, chester-le-street, chelmsford, uk]), `County` (Example values: [derbyshire, county durham, essex]), `Division` (Example values: [north, south, midlands/wales/west]), `Home ground` (Example values: [county ground, riverside ground, nevil road]), `Coach` (Example values: [karl krikken, geoff cook, paul grayson]), `Captain` (Example values: [wayne madsen, phil mustard, james foster])]\n", + "ori_query": "select `captain` from `1-18461635-1` where `location` = 'southampton'", + "amb_query": "SELECT \"captain\" FROM \"1-18461635-1\" WHERE location IN ('southampton, england', 'southampton')" + }, + { + "db_id": "2-18942405-10", + "question": "What's the IHSAA Football Class in fort wayne with an AAA IHSAA class?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942405-10, columns = [School, Location, Mascot, Enrollment, IHSAA Class, IHSAA Football Class, # / County]\n", + "schema_text_with_content": "Table 2-18942405-10, columns = [`School` (Example values: [bellmont, columbia city, dekalb]), `Location` (Example values: [decatur, in, columbia city, waterloo]), `Mascot` (Example values: [braves, eagles, barons]), `Enrollment` (Example values: [801.0, 1,149, 1,275]), `IHSAA Class` (Example values: [aaa, aaaa]), `IHSAA Football Class` (Example values: [aaa, aaaa, aaaaa]), `# / County` (Example values: [01 adams, 92 whitley, 17 dekalb])]\n", + "ori_query": "select `ihsaa football class` from `2-18942405-10` where `ihsaa class` = 'aaa' and `location` = 'fort wayne'", + "amb_query": "SELECT \"ihsaa football class\" FROM \"2-18942405-10\" WHERE \"ihsaa class\" = 'aaa' AND location IN ('fort wayne', 'fort wayne, in')" + }, + { + "db_id": "2-18942405-10", + "question": "What's the enrollment for new haven?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942405-10, columns = [School, Location, Mascot, Enrollment, IHSAA Class, IHSAA Football Class, # / County]\n", + "schema_text_with_content": "Table 2-18942405-10, columns = [`School` (Example values: [bellmont, columbia city, dekalb]), `Location` (Example values: [decatur, in, columbia city, waterloo]), `Mascot` (Example values: [braves, eagles, barons]), `Enrollment` (Example values: [801.0, 1,149, 1,275]), `IHSAA Class` (Example values: [aaa, aaaa]), `IHSAA Football Class` (Example values: [aaa, aaaa, aaaaa]), `# / County` (Example values: [01 adams, 92 whitley, 17 dekalb])]\n", + "ori_query": "select max(`enrollment`) from `2-18942405-10` where `location` = 'new haven'", + "amb_query": "SELECT MAX(\"enrollment\") FROM \"2-18942405-10\" WHERE location IN ('new haven', 'city of new haven')" + }, + { + "db_id": "2-18942405-10", + "question": "What's the IHSAA Football Class in Decatur with an AAA IHSAA class?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942405-10, columns = [School, Location, Mascot, Enrollment, IHSAA Class, IHSAA Football Class, # / County]\n", + "schema_text_with_content": "Table 2-18942405-10, columns = [`School` (Example values: [bellmont, columbia city, dekalb]), `Location` (Example values: [decatur, in, columbia city, waterloo]), `Mascot` (Example values: [braves, eagles, barons]), `Enrollment` (Example values: [801.0, 1,149, 1,275]), `IHSAA Class` (Example values: [aaa, aaaa]), `IHSAA Football Class` (Example values: [aaa, aaaa, aaaaa]), `# / County` (Example values: [01 adams, 92 whitley, 17 dekalb])]\n", + "ori_query": "select `ihsaa football class` from `2-18942405-10` where `ihsaa class` = 'aaa' and `location` = 'decatur'", + "amb_query": "SELECT \"ihsaa football class\" FROM \"2-18942405-10\" WHERE \"ihsaa class\" = 'aaa' AND location IN ('decatur', 'decatur, in')" + }, + { + "db_id": "2-18942405-10", + "question": "What's the enrollment for Kendallville?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942405-10, columns = [School, Location, Mascot, Enrollment, IHSAA Class, IHSAA Football Class, # / County]\n", + "schema_text_with_content": "Table 2-18942405-10, columns = [`School` (Example values: [bellmont, columbia city, dekalb]), `Location` (Example values: [decatur, in, columbia city, waterloo]), `Mascot` (Example values: [braves, eagles, barons]), `Enrollment` (Example values: [801.0, 1,149, 1,275]), `IHSAA Class` (Example values: [aaa, aaaa]), `IHSAA Football Class` (Example values: [aaa, aaaa, aaaaa]), `# / County` (Example values: [01 adams, 92 whitley, 17 dekalb])]\n", + "ori_query": "select max(`enrollment`) from `2-18942405-10` where `location` = 'kendallville'", + "amb_query": "SELECT MAX(\"enrollment\") FROM \"2-18942405-10\" WHERE location IN ('kendallville', 'city of kendallville')" + }, + { + "db_id": "2-18782055-2", + "question": "What is the number of gold medals for canada (can), when the total is more than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18782055-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18782055-2, columns = [`Rank` (Example values: [1.0, 3.0, 5.0]), `Nation` (Example values: [denmark (den), canada (can) nation, spain (esp)]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [0.0, 1.0]), `Bronze` (Example values: [0.0, 2.0]), `Total` (Example values: [1.0, 2.0])]\n", + "ori_query": "select max(`gold`) from `2-18782055-2` where `nation` = 'lithuania (ltu)' and `total` > 1", + "amb_query": "SELECT MAX(\"gold\") FROM \"2-18782055-2\" WHERE \"nation\" = 'lithuania (ltu)' AND \"total\" > 1" + }, + { + "db_id": "2-18782055-2", + "question": "What is the number of gold medals for Lithuania (ltu), when the total is more than 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-18782055-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18782055-2, columns = [`Rank` (Example values: [1.0, 3.0, 5.0]), `Nation` (Example values: [denmark (den), canada (can) nation, spain (esp)]), `Gold` (Example values: [1.0, 0.0]), `Silver` (Example values: [0.0, 1.0]), `Bronze` (Example values: [0.0, 2.0]), `Total` (Example values: [1.0, 2.0])]\n", + "ori_query": "select max(`gold`) from `2-18782055-2` where `nation` = 'lithuania (ltu)' and `total` > 1", + "amb_query": "SELECT MAX(\"gold\") FROM \"2-18782055-2\" WHERE nation IN ('lithuania (ltu)', 'lithuania, eastern europe') AND \"total\" > 1" + }, + { + "db_id": "2-18951015-2", + "question": "What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of aruba, and has a Total that is larger than 50?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select sum(`gold`) from `2-18951015-2` where `bronze` > 15 and `silver` < 197 and `nation` = 'aruba' and `total` > 50", + "amb_query": "SELECT SUM(\"gold\") FROM \"2-18951015-2\" WHERE \"bronze\" > 15 AND \"silver\" < 197 AND nation IN ('aruba, caribbean', 'aruba') AND \"total\" > 50" + }, + { + "db_id": "2-18951015-2", + "question": "What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of barbados, and has a Total that is larger than 50?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select sum(`gold`) from `2-18951015-2` where `bronze` > 15 and `silver` < 197 and `nation` = 'barbados' and `total` > 50", + "amb_query": "SELECT SUM(\"gold\") FROM \"2-18951015-2\" WHERE \"bronze\" > 15 AND \"silver\" < 197 AND nation IN ('barbados', 'barbados, west indies') AND \"total\" > 50" + }, + { + "db_id": "2-18951015-2", + "question": "What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of haiti, and has a Total that is larger than 50?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select sum(`gold`) from `2-18951015-2` where `bronze` > 15 and `silver` < 197 and `nation` = 'haiti' and `total` > 50", + "amb_query": "SELECT SUM(\"gold\") FROM \"2-18951015-2\" WHERE \"bronze\" > 15 AND \"silver\" < 197 AND nation IN ('haiti', 'republic of haiti') AND \"total\" > 50" + }, + { + "db_id": "2-18951015-2", + "question": "What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of curaçao?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select count(`silver`) from `2-18951015-2` where `gold` > 0 and `bronze` < 23 and `total` > 22 and `nation` = 'curaçao'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-18951015-2\" WHERE \"gold\" > 0 AND \"bronze\" < 23 AND \"total\" > 22 AND nation IN ('curaçao', 'curaçao nation')" + }, + { + "db_id": "2-18951015-2", + "question": "What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of guadeloupe?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select count(`silver`) from `2-18951015-2` where `gold` > 0 and `bronze` < 23 and `total` > 22 and `nation` = 'guadeloupe'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-18951015-2\" WHERE \"gold\" > 0 AND \"bronze\" < 23 AND \"total\" > 22 AND nation IN ('guadeloupe, french west indies', 'guadeloupe')" + }, + { + "db_id": "2-18951015-2", + "question": "What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of Saint Lucia, and has a Total that is larger than 50?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select sum(`gold`) from `2-18951015-2` where `bronze` > 15 and `silver` < 197 and `nation` = 'saint lucia' and `total` > 50", + "amb_query": "SELECT SUM(\"gold\") FROM \"2-18951015-2\" WHERE \"bronze\" > 15 AND \"silver\" < 197 AND nation IN ('saint lucia', 'saint lucia nation') AND \"total\" > 50" + }, + { + "db_id": "2-18951015-2", + "question": "What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis?", + "evidence": "", + "schema_text_wo_content": "Table 2-18951015-2, columns = [Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18951015-2, columns = [`Nation` (Example values: [jamaica, trinidad and tobago, bahamas]), `Gold` (Example values: [726.0, 157.0, 129.0]), `Silver` (Example values: [506.0, 197.0, 208.0]), `Bronze` (Example values: [327.0, 206.0, 238.0]), `Total` (Example values: [1,559, 560.0, 575.0])]\n", + "ori_query": "select count(`silver`) from `2-18951015-2` where `gold` > 0 and `bronze` < 23 and `total` > 22 and `nation` = 'saint kitts and nevis'", + "amb_query": "SELECT COUNT(\"silver\") FROM \"2-18951015-2\" WHERE \"gold\" > 0 AND \"bronze\" < 23 AND \"total\" > 22 AND nation IN ('saint kitts and nevis', 'saint kitts and nevis islands')" + }, + { + "db_id": "2-18814912-4", + "question": "which Score has a Location of can vancouver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18814912-4, columns = [Date, Location, Lineup, Assist/pass, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-18814912-4, columns = [`Date` (Example values: [2010-10-28, 2011-06-28, 2012-01-20]), `Location` (Example values: [cancun, mexico, ger dresden, vancouver area]), `Lineup` (Example values: [start, start; ( c ), on 52' ( off rampone )]), `Assist/pass` (Example values: [carli lloyd, abby wambach, lauren cheney]), `Score` (Example values: [1-0, 2-0, 3-0]), `Result` (Example values: [5-0, 2-0, 14-0]), `Competition` (Example values: [2010 concacaf world cup qualifying – group stage, 2011 fifa women’s world cup – group stage, 2012 concacaf olympic qualifying – group stage])]\n", + "ori_query": "select `score` from `2-18814912-4` where `location` = 'can vancouver'", + "amb_query": "SELECT \"score\" FROM \"2-18814912-4\" WHERE location IN ('vancouver area', 'can vancouver')" + }, + { + "db_id": "2-18814912-4", + "question": "which Score has a Location of mex cancun?", + "evidence": "", + "schema_text_wo_content": "Table 2-18814912-4, columns = [Date, Location, Lineup, Assist/pass, Score, Result, Competition]\n", + "schema_text_with_content": "Table 2-18814912-4, columns = [`Date` (Example values: [2010-10-28, 2011-06-28, 2012-01-20]), `Location` (Example values: [cancun, mexico, ger dresden, vancouver area]), `Lineup` (Example values: [start, start; ( c ), on 52' ( off rampone )]), `Assist/pass` (Example values: [carli lloyd, abby wambach, lauren cheney]), `Score` (Example values: [1-0, 2-0, 3-0]), `Result` (Example values: [5-0, 2-0, 14-0]), `Competition` (Example values: [2010 concacaf world cup qualifying – group stage, 2011 fifa women’s world cup – group stage, 2012 concacaf olympic qualifying – group stage])]\n", + "ori_query": "select `score` from `2-18814912-4` where `location` = 'mex cancun'", + "amb_query": "SELECT \"score\" FROM \"2-18814912-4\" WHERE location IN ('mex cancun', 'cancun, mexico')" + }, + { + "db_id": "2-14639905-3", + "question": "What is the smallest silver from indonesia?", + "evidence": "", + "schema_text_wo_content": "Table 2-14639905-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14639905-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [singapore, philippines, malaysia, asia]), `Gold` (Example values: [11.0, 8.0, 7.0]), `Silver` (Example values: [9.0, 3.0, 8.0]), `Bronze` (Example values: [6.0, 7.0, 8.0]), `Total` (Example values: [26.0, 18.0, 23.0])]\n", + "ori_query": "select min(`silver`) from `2-14639905-3` where `nation` = 'indonesia'", + "amb_query": "SELECT MIN(\"silver\") FROM \"2-14639905-3\" WHERE nation IN ('indonesia', 'indonesian archipelago')" + }, + { + "db_id": "2-14639905-3", + "question": "What is the smallest silver from Vietnam?", + "evidence": "", + "schema_text_wo_content": "Table 2-14639905-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14639905-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [singapore, philippines, malaysia, asia]), `Gold` (Example values: [11.0, 8.0, 7.0]), `Silver` (Example values: [9.0, 3.0, 8.0]), `Bronze` (Example values: [6.0, 7.0, 8.0]), `Total` (Example values: [26.0, 18.0, 23.0])]\n", + "ori_query": "select min(`silver`) from `2-14639905-3` where `nation` = 'vietnam'", + "amb_query": "SELECT MIN(\"silver\") FROM \"2-14639905-3\" WHERE nation IN ('socialist republic of vietnam', 'vietnam')" + }, + { + "db_id": "2-14639905-3", + "question": "What is the largest silver from Malaysia with a Total smaller than 23?", + "evidence": "", + "schema_text_wo_content": "Table 2-14639905-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14639905-3, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [singapore, philippines, malaysia, asia]), `Gold` (Example values: [11.0, 8.0, 7.0]), `Silver` (Example values: [9.0, 3.0, 8.0]), `Bronze` (Example values: [6.0, 7.0, 8.0]), `Total` (Example values: [26.0, 18.0, 23.0])]\n", + "ori_query": "select max(`silver`) from `2-14639905-3` where `nation` = 'malaysia' and `total` < 23", + "amb_query": "SELECT MAX(\"silver\") FROM \"2-14639905-3\" WHERE nation IN ('malaysia', 'malaysia, asia') AND \"total\" < 23" + }, + { + "db_id": "2-18395166-2", + "question": "What is the total when the nation is norway (nor) and bronze is more than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18395166-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18395166-2, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [gbr nation, germany (ger), south africa (rsa)]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [5.0, 1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0, 1.0]), `Total` (Example values: [10.0, 6.0, 2.0])]\n", + "ori_query": "select sum(`total`) from `2-18395166-2` where `nation` = 'brazil (bra)' and `bronze` > 2", + "amb_query": "SELECT SUM(\"total\") FROM \"2-18395166-2\" WHERE \"nation\" = 'brazil (bra)' AND \"bronze\" > 2" + }, + { + "db_id": "2-18395166-2", + "question": "what is the least total when the nation is great britain (gbr) and bronze is less than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-18395166-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18395166-2, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [gbr nation, germany (ger), south africa (rsa)]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [5.0, 1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0, 1.0]), `Total` (Example values: [10.0, 6.0, 2.0])]\n", + "ori_query": "select min(`total`) from `2-18395166-2` where `nation` = 'canada (can)' and `bronze` < 0", + "amb_query": "SELECT MIN(\"total\") FROM \"2-18395166-2\" WHERE \"nation\" = 'canada (can)' AND \"bronze\" < 0" + }, + { + "db_id": "2-18395166-2", + "question": "What is the total when the nation is brazil (bra) and bronze is more than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18395166-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18395166-2, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [gbr nation, germany (ger), south africa (rsa)]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [5.0, 1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0, 1.0]), `Total` (Example values: [10.0, 6.0, 2.0])]\n", + "ori_query": "select sum(`total`) from `2-18395166-2` where `nation` = 'brazil (bra)' and `bronze` > 2", + "amb_query": "SELECT SUM(\"total\") FROM \"2-18395166-2\" WHERE nation IN ('brazilian republic', 'brazil (bra)') AND \"bronze\" > 2" + }, + { + "db_id": "2-18395166-2", + "question": "what is the least total when the nation is canada (can) and bronze is less than 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-18395166-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18395166-2, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [gbr nation, germany (ger), south africa (rsa)]), `Gold` (Example values: [5.0, 3.0, 2.0]), `Silver` (Example values: [5.0, 1.0, 0.0]), `Bronze` (Example values: [0.0, 2.0, 1.0]), `Total` (Example values: [10.0, 6.0, 2.0])]\n", + "ori_query": "select min(`total`) from `2-18395166-2` where `nation` = 'canada (can)' and `bronze` < 0", + "amb_query": "SELECT MIN(\"total\") FROM \"2-18395166-2\" WHERE nation IN ('canada (can)', 'canada, north america') AND \"bronze\" < 0" + }, + { + "db_id": "2-18697186-1", + "question": "What is the IHSAA class for the team located in elkhart, in?", + "evidence": "", + "schema_text_wo_content": "Table 2-18697186-1, columns = [School, Location, Mascot, Size, IHSAA Class, County, Year Joined, Previous Conference]\n", + "schema_text_with_content": "Table 2-18697186-1, columns = [`School` (Example values: [concord, elkhart memorial *, goshen]), `Location` (Example values: [city of elkhart, indiana, elkhart city, in, goshen, in]), `Mascot` (Example values: [minutemen, crimson chargers, redskins]), `Size` (Example values: [1,523, 1,793, 1,811]), `IHSAA Class` (Example values: [5a, 4a, 6a]), `County` (Example values: [20 elkhart, 50 marshall, 43 kosciusko]), `Year Joined` (Example values: [1967.0, 1999.0, 1976.0]), `Previous Conference` (Example values: [independents, northern indiana, none (new school)])]\n", + "ori_query": "select `ihsaa class` from `2-18697186-1` where `location` = 'elkhart, in'", + "amb_query": "SELECT \"ihsaa class\" FROM \"2-18697186-1\" WHERE location IN ('elkhart city, in', 'elkhart, in', 'city of elkhart, indiana')" + }, + { + "db_id": "2-18697186-1", + "question": "What is the IHSAA class for the team located in Middlebury, IN?", + "evidence": "", + "schema_text_wo_content": "Table 2-18697186-1, columns = [School, Location, Mascot, Size, IHSAA Class, County, Year Joined, Previous Conference]\n", + "schema_text_with_content": "Table 2-18697186-1, columns = [`School` (Example values: [concord, elkhart memorial *, goshen]), `Location` (Example values: [city of elkhart, indiana, elkhart city, in, goshen, in]), `Mascot` (Example values: [minutemen, crimson chargers, redskins]), `Size` (Example values: [1,523, 1,793, 1,811]), `IHSAA Class` (Example values: [5a, 4a, 6a]), `County` (Example values: [20 elkhart, 50 marshall, 43 kosciusko]), `Year Joined` (Example values: [1967.0, 1999.0, 1976.0]), `Previous Conference` (Example values: [independents, northern indiana, none (new school)])]\n", + "ori_query": "select `ihsaa class` from `2-18697186-1` where `location` = 'middlebury, in'", + "amb_query": "SELECT \"ihsaa class\" FROM \"2-18697186-1\" WHERE location IN ('middlebury, indiana, united states', 'middlebury, in')" + }, + { + "db_id": "2-18993396-1", + "question": "Which Gold has a Nation of maldives, and a Silver smaller than 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-18993396-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18993396-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [india, pakistan, sri lanka, south asia]), `Gold` (Example values: [61.0, 45.0, 6.0]), `Silver` (Example values: [43.0, 33.0, 10.0]), `Bronze` (Example values: [20.0, 42.0, 21.0]), `Total` (Example values: [124.0, 120.0, 37.0])]\n", + "ori_query": "select avg(`gold`) from `2-18993396-1` where `nation` = 'maldives' and `silver` < 10", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18993396-1\" WHERE nation IN ('maldives islands', 'maldives') AND \"silver\" < 10" + }, + { + "db_id": "2-18993396-1", + "question": "Which Gold has a Nation of sri lanka, and a Silver smaller than 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-18993396-1, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18993396-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [india, pakistan, sri lanka, south asia]), `Gold` (Example values: [61.0, 45.0, 6.0]), `Silver` (Example values: [43.0, 33.0, 10.0]), `Bronze` (Example values: [20.0, 42.0, 21.0]), `Total` (Example values: [124.0, 120.0, 37.0])]\n", + "ori_query": "select avg(`gold`) from `2-18993396-1` where `nation` = 'sri lanka' and `silver` < 10", + "amb_query": "SELECT AVG(\"gold\") FROM \"2-18993396-1\" WHERE nation IN ('sri lanka', 'sri lanka, south asia') AND \"silver\" < 10" + }, + { + "db_id": "2-18807607-2", + "question": "What's the total of greece (gre) having less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18807607-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18807607-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [france (fra), ireland (irl), lithuania, baltic state]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [5.0, 3.0, 2.0])]\n", + "ori_query": "select min(`total`) from `2-18807607-2` where `nation` = 'sweden (swe)' and `silver` < 1", + "amb_query": "SELECT MIN(\"total\") FROM \"2-18807607-2\" WHERE \"nation\" = 'sweden (swe)' AND \"silver\" < 1" + }, + { + "db_id": "2-18807607-2", + "question": "What's the total number of bronze medals for romania (rou) having less than 1 gold and silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18807607-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18807607-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [france (fra), ireland (irl), lithuania, baltic state]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [5.0, 3.0, 2.0])]\n", + "ori_query": "select count(`bronze`) from `2-18807607-2` where `gold` < 1 and `nation` = 'sweden (swe)' and `silver` < 1", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-18807607-2\" WHERE \"gold\" < 1 AND \"nation\" = 'sweden (swe)' AND \"silver\" < 1" + }, + { + "db_id": "2-18807607-2", + "question": "What's the rank of lithuania (ltu) with a total more than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18807607-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18807607-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [france (fra), ireland (irl), lithuania, baltic state]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [5.0, 3.0, 2.0])]\n", + "ori_query": "select count(`rank`) from `2-18807607-2` where `nation` = 'turkey (tur)' and `total` > 2", + "amb_query": "SELECT COUNT(\"rank\") FROM \"2-18807607-2\" WHERE \"nation\" = 'turkey (tur)' AND \"total\" > 2" + }, + { + "db_id": "2-18807607-2", + "question": "What's the total of Sweden (SWE) having less than 1 silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18807607-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18807607-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [france (fra), ireland (irl), lithuania, baltic state]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [5.0, 3.0, 2.0])]\n", + "ori_query": "select min(`total`) from `2-18807607-2` where `nation` = 'sweden (swe)' and `silver` < 1", + "amb_query": "SELECT MIN(\"total\") FROM \"2-18807607-2\" WHERE nation IN ('sweden (swe) state', 'sweden (swe)') AND \"silver\" < 1" + }, + { + "db_id": "2-18807607-2", + "question": "What's the total number of bronze medals for Sweden (SWE) having less than 1 gold and silver?", + "evidence": "", + "schema_text_wo_content": "Table 2-18807607-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18807607-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [france (fra), ireland (irl), lithuania, baltic state]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [5.0, 3.0, 2.0])]\n", + "ori_query": "select count(`bronze`) from `2-18807607-2` where `gold` < 1 and `nation` = 'sweden (swe)' and `silver` < 1", + "amb_query": "SELECT COUNT(\"bronze\") FROM \"2-18807607-2\" WHERE \"gold\" < 1 AND nation IN ('sweden (swe) state', 'sweden (swe)') AND \"silver\" < 1" + }, + { + "db_id": "2-18807607-2", + "question": "What's the rank of Turkey (TUR) with a total more than 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-18807607-2, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-18807607-2, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Nation` (Example values: [france (fra), ireland (irl), lithuania, baltic state]), `Gold` (Example values: [3.0, 1.0, 0.0]), `Silver` (Example values: [2.0, 0.0, 1.0]), `Bronze` (Example values: [0.0, 1.0, 2.0]), `Total` (Example values: [5.0, 3.0, 2.0])]\n", + "ori_query": "select count(`rank`) from `2-18807607-2` where `nation` = 'turkey (tur)' and `total` > 2", + "amb_query": "SELECT COUNT(\"rank\") FROM \"2-18807607-2\" WHERE nation IN ('turkey (tur)', 'turkey, officially the republic of turkey') AND \"total\" > 2" + }, + { + "db_id": "2-1278862-5", + "question": "What is the lowest facility ID that's in buckhannon?", + "evidence": "", + "schema_text_wo_content": "Table 2-1278862-5, columns = [Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class, FCC info]\n", + "schema_text_with_content": "Table 2-1278862-5, columns = [`Call sign` (Example values: [waua, wvdm, wvep]), `Frequency` (Example values: [89.5 fm, 88.5 fm, 88.9 fm]), `City of license` (Example values: [petersburg locality, bluefield, martinsburg]), `Facility ID` (Example values: [71659.0, 173309.0, 70643.0]), `ERP / Power W` (Example values: [10,000, 50,000, 3,600]), `Height m ( ft )` (Example values: [m (ft)]), `Class` (Example values: [b, b1, a]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select min(`facility id`) from `2-1278862-5` where `city of license` = 'buckhannon'", + "amb_query": "SELECT MIN(\"facility id\") FROM \"2-1278862-5\" WHERE city of license IN ('buckhannon', 'buckhannon, usa')" + }, + { + "db_id": "2-1278862-5", + "question": "What is the lowest facility ID that's in petersburg?", + "evidence": "", + "schema_text_wo_content": "Table 2-1278862-5, columns = [Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class, FCC info]\n", + "schema_text_with_content": "Table 2-1278862-5, columns = [`Call sign` (Example values: [waua, wvdm, wvep]), `Frequency` (Example values: [89.5 fm, 88.5 fm, 88.9 fm]), `City of license` (Example values: [petersburg locality, bluefield, martinsburg]), `Facility ID` (Example values: [71659.0, 173309.0, 70643.0]), `ERP / Power W` (Example values: [10,000, 50,000, 3,600]), `Height m ( ft )` (Example values: [m (ft)]), `Class` (Example values: [b, b1, a]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select min(`facility id`) from `2-1278862-5` where `city of license` = 'petersburg'", + "amb_query": "SELECT MIN(\"facility id\") FROM \"2-1278862-5\" WHERE city of license IN ('petersburg locality', 'petersburg')" + }, + { + "db_id": "2-1278862-5", + "question": "What is the lowest facility ID that's in Beckley?", + "evidence": "", + "schema_text_wo_content": "Table 2-1278862-5, columns = [Call sign, Frequency, City of license, Facility ID, ERP / Power W, Height m ( ft ), Class, FCC info]\n", + "schema_text_with_content": "Table 2-1278862-5, columns = [`Call sign` (Example values: [waua, wvdm, wvep]), `Frequency` (Example values: [89.5 fm, 88.5 fm, 88.9 fm]), `City of license` (Example values: [petersburg locality, bluefield, martinsburg]), `Facility ID` (Example values: [71659.0, 173309.0, 70643.0]), `ERP / Power W` (Example values: [10,000, 50,000, 3,600]), `Height m ( ft )` (Example values: [m (ft)]), `Class` (Example values: [b, b1, a]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select min(`facility id`) from `2-1278862-5` where `city of license` = 'beckley'", + "amb_query": "SELECT MIN(\"facility id\") FROM \"2-1278862-5\" WHERE city of license IN ('beckley, wv', 'beckley')" + }, + { + "db_id": "2-1296513-2", + "question": "When was the event in the City of monte carlo?", + "evidence": "", + "schema_text_wo_content": "Table 2-1296513-2, columns = [Date, City, Event, Winner, Prize]\n", + "schema_text_with_content": "Table 2-1296513-2, columns = [`Date` (Example values: [16–17 september 2005, 30 sep–2 oct 2005, 4–6 october 2005]), `City` (Example values: [barcelona metropolitan area, london, baden municipality]), `Event` (Example values: [barcelona open 2005, the grosvenor world masters, poker em/ept baden classic]), `Winner` (Example values: [jan boubli, mark teltscher, patrik antonius]), `Prize` (Example values: [€416,000, £280,000, €288,180])]\n", + "ori_query": "select `date` from `2-1296513-2` where `city` = 'monte carlo'", + "amb_query": "SELECT \"date\" FROM \"2-1296513-2\" WHERE city IN ('monte carlo', 'monte carlo area')" + }, + { + "db_id": "2-1296513-2", + "question": "When was the event in barcelona?", + "evidence": "", + "schema_text_wo_content": "Table 2-1296513-2, columns = [Date, City, Event, Winner, Prize]\n", + "schema_text_with_content": "Table 2-1296513-2, columns = [`Date` (Example values: [16–17 september 2005, 30 sep–2 oct 2005, 4–6 october 2005]), `City` (Example values: [barcelona metropolitan area, london, baden municipality]), `Event` (Example values: [barcelona open 2005, the grosvenor world masters, poker em/ept baden classic]), `Winner` (Example values: [jan boubli, mark teltscher, patrik antonius]), `Prize` (Example values: [€416,000, £280,000, €288,180])]\n", + "ori_query": "select `date` from `2-1296513-2` where `city` = 'barcelona'", + "amb_query": "SELECT \"date\" FROM \"2-1296513-2\" WHERE city IN ('barcelona metropolitan area', 'barcelona')" + }, + { + "db_id": "2-1296513-2", + "question": "When was the event in the City of Baden?", + "evidence": "", + "schema_text_wo_content": "Table 2-1296513-2, columns = [Date, City, Event, Winner, Prize]\n", + "schema_text_with_content": "Table 2-1296513-2, columns = [`Date` (Example values: [16–17 september 2005, 30 sep–2 oct 2005, 4–6 october 2005]), `City` (Example values: [barcelona metropolitan area, london, baden municipality]), `Event` (Example values: [barcelona open 2005, the grosvenor world masters, poker em/ept baden classic]), `Winner` (Example values: [jan boubli, mark teltscher, patrik antonius]), `Prize` (Example values: [€416,000, £280,000, €288,180])]\n", + "ori_query": "select `date` from `2-1296513-2` where `city` = 'baden'", + "amb_query": "SELECT \"date\" FROM \"2-1296513-2\" WHERE city IN ('baden municipality', 'baden')" + }, + { + "db_id": "2-1296513-2", + "question": "When was the event in Dublin?", + "evidence": "", + "schema_text_wo_content": "Table 2-1296513-2, columns = [Date, City, Event, Winner, Prize]\n", + "schema_text_with_content": "Table 2-1296513-2, columns = [`Date` (Example values: [16–17 september 2005, 30 sep–2 oct 2005, 4–6 october 2005]), `City` (Example values: [barcelona metropolitan area, london, baden municipality]), `Event` (Example values: [barcelona open 2005, the grosvenor world masters, poker em/ept baden classic]), `Winner` (Example values: [jan boubli, mark teltscher, patrik antonius]), `Prize` (Example values: [€416,000, £280,000, €288,180])]\n", + "ori_query": "select `date` from `2-1296513-2` where `city` = 'dublin'", + "amb_query": "SELECT \"date\" FROM \"2-1296513-2\" WHERE city IN ('dublin', 'dublin metropolitan area')" + }, + { + "db_id": "2-12537-3", + "question": "Which stadium is for baseball with the China League One?", + "evidence": "", + "schema_text_wo_content": "Table 2-12537-3, columns = [Sport, League, Tier, Club, Stadium]\n", + "schema_text_with_content": "Table 2-12537-3, columns = [`Sport` (Example values: [american football, gridiron, basketball]), `League` (Example values: [chinese super league, china league one, national basketball league]), `Tier` (Example values: [1st, 2nd]), `Club` (Example values: [guangzhou evergrande, guangzhou r&f, guangdong sunray cave]), `Stadium` (Example values: [tianhe stadium, yuexiushan stadium, guangdong provincial people's stadium])]\n", + "ori_query": "select `stadium` from `2-12537-3` where `sport` = 'baseball' and `league` = 'china league one'", + "amb_query": "SELECT \"stadium\" FROM \"2-12537-3\" WHERE sport IN ('baseball', 'baseball game') AND \"league\" = 'china league one'" + }, + { + "db_id": "2-12537-3", + "question": "Which stadium is for football with the China League One?", + "evidence": "", + "schema_text_wo_content": "Table 2-12537-3, columns = [Sport, League, Tier, Club, Stadium]\n", + "schema_text_with_content": "Table 2-12537-3, columns = [`Sport` (Example values: [american football, gridiron, basketball]), `League` (Example values: [chinese super league, china league one, national basketball league]), `Tier` (Example values: [1st, 2nd]), `Club` (Example values: [guangzhou evergrande, guangzhou r&f, guangdong sunray cave]), `Stadium` (Example values: [tianhe stadium, yuexiushan stadium, guangdong provincial people's stadium])]\n", + "ori_query": "select `stadium` from `2-12537-3` where `sport` = 'football' and `league` = 'china league one'", + "amb_query": "SELECT \"stadium\" FROM \"2-12537-3\" WHERE sport IN ('football', 'american football', 'gridiron') AND \"league\" = 'china league one'" + }, + { + "db_id": "2-12537-3", + "question": "Which tier is for football at Tianhe Stadium?", + "evidence": "", + "schema_text_wo_content": "Table 2-12537-3, columns = [Sport, League, Tier, Club, Stadium]\n", + "schema_text_with_content": "Table 2-12537-3, columns = [`Sport` (Example values: [american football, gridiron, basketball]), `League` (Example values: [chinese super league, china league one, national basketball league]), `Tier` (Example values: [1st, 2nd]), `Club` (Example values: [guangzhou evergrande, guangzhou r&f, guangdong sunray cave]), `Stadium` (Example values: [tianhe stadium, yuexiushan stadium, guangdong provincial people's stadium])]\n", + "ori_query": "select `tier` from `2-12537-3` where `sport` = 'football' and `stadium` = 'tianhe stadium'", + "amb_query": "SELECT \"tier\" FROM \"2-12537-3\" WHERE sport IN ('football', 'american football', 'gridiron') AND \"stadium\" = 'tianhe stadium'" + }, + { + "db_id": "2-13012165-2", + "question": "Which Little League World Series took place in willmington?", + "evidence": "", + "schema_text_wo_content": "Table 2-13012165-2, columns = [Year, Champion, City, LLWS, Record]\n", + "schema_text_with_content": "Table 2-13012165-2, columns = [`Year` (Example values: [2001.0, 2002.0, 2003.0]), `Champion` (Example values: [american ll*, harlem ll, naamans ll]), `City` (Example values: [state college, manhattan, wilmington, delaware]), `LLWS` (Example values: [–, u.s. semifinal, group stage]), `Record` (Example values: [–, 2–2, 1–2])]\n", + "ori_query": "select `llws` from `2-13012165-2` where `city` = 'willmington'", + "amb_query": "SELECT \"llws\" FROM \"2-13012165-2\" WHERE city IN ('willmington', 'wilmington, delaware')" + }, + { + "db_id": "2-13012165-2", + "question": "Which Little League World Series took place in newark?", + "evidence": "", + "schema_text_wo_content": "Table 2-13012165-2, columns = [Year, Champion, City, LLWS, Record]\n", + "schema_text_with_content": "Table 2-13012165-2, columns = [`Year` (Example values: [2001.0, 2002.0, 2003.0]), `Champion` (Example values: [american ll*, harlem ll, naamans ll]), `City` (Example values: [state college, manhattan, wilmington, delaware]), `LLWS` (Example values: [–, u.s. semifinal, group stage]), `Record` (Example values: [–, 2–2, 1–2])]\n", + "ori_query": "select `llws` from `2-13012165-2` where `city` = 'newark'", + "amb_query": "SELECT \"llws\" FROM \"2-13012165-2\" WHERE city IN ('newark', 'city of newark')" + }, + { + "db_id": "2-13012165-2", + "question": "Which Little League World Series took place in Parsippany?", + "evidence": "", + "schema_text_wo_content": "Table 2-13012165-2, columns = [Year, Champion, City, LLWS, Record]\n", + "schema_text_with_content": "Table 2-13012165-2, columns = [`Year` (Example values: [2001.0, 2002.0, 2003.0]), `Champion` (Example values: [american ll*, harlem ll, naamans ll]), `City` (Example values: [state college, manhattan, wilmington, delaware]), `LLWS` (Example values: [–, u.s. semifinal, group stage]), `Record` (Example values: [–, 2–2, 1–2])]\n", + "ori_query": "select `llws` from `2-13012165-2` where `city` = 'parsippany'", + "amb_query": "SELECT \"llws\" FROM \"2-13012165-2\" WHERE city IN ('parsippany township', 'parsippany')" + }, + { + "db_id": "2-12617978-5", + "question": "Who were the Investing Dragons in the episode that first aired on 25 january 2005 with the entrepreneur Tracey Herrtage?", + "evidence": "", + "schema_text_wo_content": "Table 2-12617978-5, columns = [Episode, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)]\n", + "schema_text_with_content": "Table 2-12617978-5, columns = [`Episode` (Example values: [episode 1, episode 2, episode 3]), `First aired` (Example values: [january 4, 2005, 11 january 2005, 18th january 2005]), `Entrepreneur(s)` (Example values: [charles ejogo, tracey grailey, tracey herrtage]), `Company or product name` (Example values: [umbrolly, grails ltd, le beanock]), `Money requested (£)` (Example values: [150,000, 120,000, 54,000]), `Investing Dragon(s)` (Example values: [duncan bannatyne & peter jones, doug richard & rachel elnaugh, rachel elnaugh])]\n", + "ori_query": "select `investing dragon(s)` from `2-12617978-5` where `first aired` = '25 january 2005' and `entrepreneur(s)` = 'tracey herrtage'", + "amb_query": "SELECT \"investing dragon(s)\" FROM \"2-12617978-5\" WHERE first aired IN ('25 january 2005', '25th of january 2005') AND \"entrepreneur(s)\" = 'tracey herrtage'" + }, + { + "db_id": "2-12617978-5", + "question": "What is the average money requested in the episode first aired on 4 january 2005 by the company/product name IV Cam", + "evidence": "", + "schema_text_wo_content": "Table 2-12617978-5, columns = [Episode, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)]\n", + "schema_text_with_content": "Table 2-12617978-5, columns = [`Episode` (Example values: [episode 1, episode 2, episode 3]), `First aired` (Example values: [january 4, 2005, 11 january 2005, 18th january 2005]), `Entrepreneur(s)` (Example values: [charles ejogo, tracey grailey, tracey herrtage]), `Company or product name` (Example values: [umbrolly, grails ltd, le beanock]), `Money requested (£)` (Example values: [150,000, 120,000, 54,000]), `Investing Dragon(s)` (Example values: [duncan bannatyne & peter jones, doug richard & rachel elnaugh, rachel elnaugh])]\n", + "ori_query": "select avg(`money requested (£)`) from `2-12617978-5` where `first aired` = '4 january 2005' and `company or product name` = 'iv cam'", + "amb_query": "SELECT AVG(\"money requested (£)\") FROM \"2-12617978-5\" WHERE first aired IN ('4 january 2005', 'january 4, 2005') AND \"company or product name\" = 'iv cam'" + }, + { + "db_id": "2-12617978-5", + "question": "Who were the Investing Dragons in the episode that first aired on 18 January 2005 with the entrepreneur Tracey Herrtage?", + "evidence": "", + "schema_text_wo_content": "Table 2-12617978-5, columns = [Episode, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)]\n", + "schema_text_with_content": "Table 2-12617978-5, columns = [`Episode` (Example values: [episode 1, episode 2, episode 3]), `First aired` (Example values: [january 4, 2005, 11 january 2005, 18th january 2005]), `Entrepreneur(s)` (Example values: [charles ejogo, tracey grailey, tracey herrtage]), `Company or product name` (Example values: [umbrolly, grails ltd, le beanock]), `Money requested (£)` (Example values: [150,000, 120,000, 54,000]), `Investing Dragon(s)` (Example values: [duncan bannatyne & peter jones, doug richard & rachel elnaugh, rachel elnaugh])]\n", + "ori_query": "select `investing dragon(s)` from `2-12617978-5` where `first aired` = '18 january 2005' and `entrepreneur(s)` = 'tracey herrtage'", + "amb_query": "SELECT \"investing dragon(s)\" FROM \"2-12617978-5\" WHERE first aired IN ('18th january 2005', 'january 18, 2005', '18 january 2005') AND \"entrepreneur(s)\" = 'tracey herrtage'" + }, + { + "db_id": "2-12617978-5", + "question": "What is the average money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam", + "evidence": "", + "schema_text_wo_content": "Table 2-12617978-5, columns = [Episode, First aired, Entrepreneur(s), Company or product name, Money requested (£), Investing Dragon(s)]\n", + "schema_text_with_content": "Table 2-12617978-5, columns = [`Episode` (Example values: [episode 1, episode 2, episode 3]), `First aired` (Example values: [january 4, 2005, 11 january 2005, 18th january 2005]), `Entrepreneur(s)` (Example values: [charles ejogo, tracey grailey, tracey herrtage]), `Company or product name` (Example values: [umbrolly, grails ltd, le beanock]), `Money requested (£)` (Example values: [150,000, 120,000, 54,000]), `Investing Dragon(s)` (Example values: [duncan bannatyne & peter jones, doug richard & rachel elnaugh, rachel elnaugh])]\n", + "ori_query": "select avg(`money requested (£)`) from `2-12617978-5` where `first aired` = '18 january 2005' and `company or product name` = 'iv cam'", + "amb_query": "SELECT AVG(\"money requested (£)\") FROM \"2-12617978-5\" WHERE first aired IN ('18th january 2005', 'january 18, 2005', '18 january 2005') AND \"company or product name\" = 'iv cam'" + }, + { + "db_id": "2-12501219-1", + "question": "What is the earliest year retired delivered in 1965 with an in service in january 1972 for the PoAF Serial less than 7103?", + "evidence": "", + "schema_text_wo_content": "Table 2-12501219-1, columns = [Designation, USAAF Serial, PoAF Serial, Delivery, Retired, In Service]\n", + "schema_text_with_content": "Table 2-12501219-1, columns = [`Designation` (Example values: [b-26b-60/61-dl, b-26b-55/65-dl, b-26c-40-dt]), `USAAF Serial` (Example values: [44-34535, 44-34328, 44-35631]), `PoAF Serial` (Example values: [7101.0, 7102.0, 7103.0]), `Delivery` (Example values: [may 1965, 1965]), `Retired` (Example values: [1975.0, 1973.0]), `In Service` (Example values: [26 april 1971, january of 1972, nov 1971])]\n", + "ori_query": "select min(`retired`) from `2-12501219-1` where `delivery` = '1965' and `in service` = 'january 1972' and `poaf serial` < 7103", + "amb_query": "SELECT MIN(\"retired\") FROM \"2-12501219-1\" WHERE \"delivery\" = '1965' AND in service IN ('january 1972', 'january of 1972') AND \"poaf serial\" < 7103" + }, + { + "db_id": "2-12501219-1", + "question": "What is the earliest year retired delivered in 1965 with an in service in November 1971 for the PoAF Serial less than 7103?", + "evidence": "", + "schema_text_wo_content": "Table 2-12501219-1, columns = [Designation, USAAF Serial, PoAF Serial, Delivery, Retired, In Service]\n", + "schema_text_with_content": "Table 2-12501219-1, columns = [`Designation` (Example values: [b-26b-60/61-dl, b-26b-55/65-dl, b-26c-40-dt]), `USAAF Serial` (Example values: [44-34535, 44-34328, 44-35631]), `PoAF Serial` (Example values: [7101.0, 7102.0, 7103.0]), `Delivery` (Example values: [may 1965, 1965]), `Retired` (Example values: [1975.0, 1973.0]), `In Service` (Example values: [26 april 1971, january of 1972, nov 1971])]\n", + "ori_query": "select min(`retired`) from `2-12501219-1` where `delivery` = '1965' and `in service` = 'november 1971' and `poaf serial` < 7103", + "amb_query": "SELECT MIN(\"retired\") FROM \"2-12501219-1\" WHERE \"delivery\" = '1965' AND in service IN ('nov 1971', 'november 1971') AND \"poaf serial\" < 7103" + }, + { + "db_id": "2-12791809-1", + "question": "What is the smallest amount of freight carried on the road that closed on march 30 and reached super B capacity on February 17 after 2011?", + "evidence": "", + "schema_text_wo_content": "Table 2-12791809-1, columns = [Year, Road Opened, Road Closed, Freight Carried s Tonne, Super B Capacity Reached [ citation needed ], Number of Truck Loads North]\n", + "schema_text_with_content": "Table 2-12791809-1, columns = [`Year` (Example values: [2000.0, 2001.0, 2002.0]), `Road Opened` (Example values: [january 29, february 1, january 26]), `Road Closed` (Example values: [april 3, april 13, april 16]), `Freight Carried s Tonne` (Example values: [111,090, 245,586, 256,915]), `Super B Capacity Reached [ citation needed ]` (Example values: [n/a, ~march 3, february 22]), `Number of Truck Loads North` (Example values: [3,703, 7,981, 7,735])]\n", + "ori_query": "select min(`freight carried s tonne`) from `2-12791809-1` where `road closed` = 'march 30' and `super b capacity reached [ citation needed ]` = 'february 17' and `year` > 2011", + "amb_query": "SELECT MIN(\"freight carried s tonne\") FROM \"2-12791809-1\" WHERE road closed IN ('30th of march', 'march 30') AND \"super b capacity reached [ citation needed ]\" = 'february 17' AND \"year\" > 2011" + }, + { + "db_id": "2-12791809-1", + "question": "What is the smallest amount of freight carried on the road that closed on april 5 and reached super B capacity on February 17 after 2011?", + "evidence": "", + "schema_text_wo_content": "Table 2-12791809-1, columns = [Year, Road Opened, Road Closed, Freight Carried s Tonne, Super B Capacity Reached [ citation needed ], Number of Truck Loads North]\n", + "schema_text_with_content": "Table 2-12791809-1, columns = [`Year` (Example values: [2000.0, 2001.0, 2002.0]), `Road Opened` (Example values: [january 29, february 1, january 26]), `Road Closed` (Example values: [april 3, april 13, april 16]), `Freight Carried s Tonne` (Example values: [111,090, 245,586, 256,915]), `Super B Capacity Reached [ citation needed ]` (Example values: [n/a, ~march 3, february 22]), `Number of Truck Loads North` (Example values: [3,703, 7,981, 7,735])]\n", + "ori_query": "select min(`freight carried s tonne`) from `2-12791809-1` where `road closed` = 'april 5' and `super b capacity reached [ citation needed ]` = 'february 17' and `year` > 2011", + "amb_query": "SELECT MIN(\"freight carried s tonne\") FROM \"2-12791809-1\" WHERE road closed IN ('april 5th', 'april 5') AND \"super b capacity reached [ citation needed ]\" = 'february 17' AND \"year\" > 2011" + }, + { + "db_id": "2-12791809-1", + "question": "What is the smallest amount of freight carried on the road that closed on March 31 and reached super B capacity on February 17 after 2011?", + "evidence": "", + "schema_text_wo_content": "Table 2-12791809-1, columns = [Year, Road Opened, Road Closed, Freight Carried s Tonne, Super B Capacity Reached [ citation needed ], Number of Truck Loads North]\n", + "schema_text_with_content": "Table 2-12791809-1, columns = [`Year` (Example values: [2000.0, 2001.0, 2002.0]), `Road Opened` (Example values: [january 29, february 1, january 26]), `Road Closed` (Example values: [april 3, april 13, april 16]), `Freight Carried s Tonne` (Example values: [111,090, 245,586, 256,915]), `Super B Capacity Reached [ citation needed ]` (Example values: [n/a, ~march 3, february 22]), `Number of Truck Loads North` (Example values: [3,703, 7,981, 7,735])]\n", + "ori_query": "select min(`freight carried s tonne`) from `2-12791809-1` where `road closed` = 'march 31' and `super b capacity reached [ citation needed ]` = 'february 17' and `year` > 2011", + "amb_query": "SELECT MIN(\"freight carried s tonne\") FROM \"2-12791809-1\" WHERE road closed IN ('31st of march', 'march 31', '31 march') AND \"super b capacity reached [ citation needed ]\" = 'february 17' AND \"year\" > 2011" + }, + { + "db_id": "2-12936850-2", + "question": "What's the Termination of Mission listed that has a Presentation of Credentials for december 19, 1853?", + "evidence": "", + "schema_text_wo_content": "Table 2-12936850-2, columns = [Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by]\n", + "schema_text_with_content": "Table 2-12936850-2, columns = [`Representative` (Example values: [robert b. mcafee, james semple, william m. blackford]), `Title` (Example values: [chargé d'affaires, minister resident]), `Presentation of Credentials` (Example values: [july 1, 1833, april 21, 1838, september 17, 1842]), `Termination of Mission` (Example values: [june 20, 1837, march 4, 1842, december 24, 1844]), `Appointed by` (Example values: [andrew jackson, martin van buren, john tyler])]\n", + "ori_query": "select `termination of mission` from `2-12936850-2` where `presentation of credentials` = 'december 19, 1853'", + "amb_query": "SELECT \"termination of mission\" FROM \"2-12936850-2\" WHERE presentation of credentials IN ('19-12-1853', 'december 19, 1853')" + }, + { + "db_id": "2-12936850-2", + "question": "What's the Representative listed that has a Presentation of Credentials of january 5, 1850?", + "evidence": "", + "schema_text_wo_content": "Table 2-12936850-2, columns = [Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by]\n", + "schema_text_with_content": "Table 2-12936850-2, columns = [`Representative` (Example values: [robert b. mcafee, james semple, william m. blackford]), `Title` (Example values: [chargé d'affaires, minister resident]), `Presentation of Credentials` (Example values: [july 1, 1833, april 21, 1838, september 17, 1842]), `Termination of Mission` (Example values: [june 20, 1837, march 4, 1842, december 24, 1844]), `Appointed by` (Example values: [andrew jackson, martin van buren, john tyler])]\n", + "ori_query": "select `representative` from `2-12936850-2` where `presentation of credentials` = 'january 5, 1850'", + "amb_query": "SELECT \"representative\" FROM \"2-12936850-2\" WHERE presentation of credentials IN ('january 5th, 1850', 'january 5, 1850')" + }, + { + "db_id": "2-12936850-2", + "question": "What's the Termination of Mission listed that has a Presentation of Credentials for August 29, 1859?", + "evidence": "", + "schema_text_wo_content": "Table 2-12936850-2, columns = [Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by]\n", + "schema_text_with_content": "Table 2-12936850-2, columns = [`Representative` (Example values: [robert b. mcafee, james semple, william m. blackford]), `Title` (Example values: [chargé d'affaires, minister resident]), `Presentation of Credentials` (Example values: [july 1, 1833, april 21, 1838, september 17, 1842]), `Termination of Mission` (Example values: [june 20, 1837, march 4, 1842, december 24, 1844]), `Appointed by` (Example values: [andrew jackson, martin van buren, john tyler])]\n", + "ori_query": "select `termination of mission` from `2-12936850-2` where `presentation of credentials` = 'august 29, 1859'", + "amb_query": "SELECT \"termination of mission\" FROM \"2-12936850-2\" WHERE presentation of credentials IN ('august 29th, 1859', 'august 29, 1859')" + }, + { + "db_id": "2-12936850-2", + "question": "What's the Representative listed that has a Presentation of Credentials of August 25, 1851?", + "evidence": "", + "schema_text_wo_content": "Table 2-12936850-2, columns = [Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by]\n", + "schema_text_with_content": "Table 2-12936850-2, columns = [`Representative` (Example values: [robert b. mcafee, james semple, william m. blackford]), `Title` (Example values: [chargé d'affaires, minister resident]), `Presentation of Credentials` (Example values: [july 1, 1833, april 21, 1838, september 17, 1842]), `Termination of Mission` (Example values: [june 20, 1837, march 4, 1842, december 24, 1844]), `Appointed by` (Example values: [andrew jackson, martin van buren, john tyler])]\n", + "ori_query": "select `representative` from `2-12936850-2` where `presentation of credentials` = 'august 25, 1851'", + "amb_query": "SELECT \"representative\" FROM \"2-12936850-2\" WHERE presentation of credentials IN ('25th august 1851', 'august 25, 1851')" + }, + { + "db_id": "2-12936850-2", + "question": "What Representative has a Presentation of Credentails of April 10, 1855?", + "evidence": "", + "schema_text_wo_content": "Table 2-12936850-2, columns = [Representative, Title, Presentation of Credentials, Termination of Mission, Appointed by]\n", + "schema_text_with_content": "Table 2-12936850-2, columns = [`Representative` (Example values: [robert b. mcafee, james semple, william m. blackford]), `Title` (Example values: [chargé d'affaires, minister resident]), `Presentation of Credentials` (Example values: [july 1, 1833, april 21, 1838, september 17, 1842]), `Termination of Mission` (Example values: [june 20, 1837, march 4, 1842, december 24, 1844]), `Appointed by` (Example values: [andrew jackson, martin van buren, john tyler])]\n", + "ori_query": "select `representative` from `2-12936850-2` where `presentation of credentials` = 'april 10, 1855'", + "amb_query": "SELECT \"representative\" FROM \"2-12936850-2\" WHERE presentation of credentials IN ('april 10, 1855', 'april 10th, 1855')" + }, + { + "db_id": "2-12890214-1", + "question": "What is the highest number of votes for the lawyer?", + "evidence": "", + "schema_text_wo_content": "Table 2-12890214-1, columns = [Riding, Candidate's Name, Gender, Residence, Occupation, Votes, Rank]\n", + "schema_text_with_content": "Table 2-12890214-1, columns = [`Riding` (Example values: [abitibi—baie-james—nunavik—eeyou, abitibi—témiscamingue, ahuntsic]), `Candidate's Name` (Example values: [yvon lévesque, marc lemay, maria mourani]), `Gender` (Example values: [m, f]), `Residence` (Example values: [val-senneville, rouyn-noranda, blainville]), `Occupation` (Example values: [labour relations councillor, lawyer profession, parliamentarian]), `Votes` (Example values: [10,995, 20,929, 18,815]), `Rank` (Example values: [1st, 2nd, 5th])]\n", + "ori_query": "select max(`votes`) from `2-12890214-1` where `occupation` = 'lawyer'", + "amb_query": "SELECT MAX(\"votes\") FROM \"2-12890214-1\" WHERE occupation IN ('counsel', 'lawyer profession', 'lawyer', 'law professional')" + }, + { + "db_id": "2-12890214-1", + "question": "What is the highest number of votes for the regional councillor?", + "evidence": "", + "schema_text_wo_content": "Table 2-12890214-1, columns = [Riding, Candidate's Name, Gender, Residence, Occupation, Votes, Rank]\n", + "schema_text_with_content": "Table 2-12890214-1, columns = [`Riding` (Example values: [abitibi—baie-james—nunavik—eeyou, abitibi—témiscamingue, ahuntsic]), `Candidate's Name` (Example values: [yvon lévesque, marc lemay, maria mourani]), `Gender` (Example values: [m, f]), `Residence` (Example values: [val-senneville, rouyn-noranda, blainville]), `Occupation` (Example values: [labour relations councillor, lawyer profession, parliamentarian]), `Votes` (Example values: [10,995, 20,929, 18,815]), `Rank` (Example values: [1st, 2nd, 5th])]\n", + "ori_query": "select max(`votes`) from `2-12890214-1` where `occupation` = 'regional councillor'", + "amb_query": "SELECT MAX(\"votes\") FROM \"2-12890214-1\" WHERE occupation IN ('regional councillor', 'regional representative')" + }, + { + "db_id": "2-12890214-1", + "question": "What is the highest number of votes for the composer/researcher?", + "evidence": "", + "schema_text_wo_content": "Table 2-12890214-1, columns = [Riding, Candidate's Name, Gender, Residence, Occupation, Votes, Rank]\n", + "schema_text_with_content": "Table 2-12890214-1, columns = [`Riding` (Example values: [abitibi—baie-james—nunavik—eeyou, abitibi—témiscamingue, ahuntsic]), `Candidate's Name` (Example values: [yvon lévesque, marc lemay, maria mourani]), `Gender` (Example values: [m, f]), `Residence` (Example values: [val-senneville, rouyn-noranda, blainville]), `Occupation` (Example values: [labour relations councillor, lawyer profession, parliamentarian]), `Votes` (Example values: [10,995, 20,929, 18,815]), `Rank` (Example values: [1st, 2nd, 5th])]\n", + "ori_query": "select max(`votes`) from `2-12890214-1` where `occupation` = 'composer/researcher'", + "amb_query": "SELECT MAX(\"votes\") FROM \"2-12890214-1\" WHERE \"occupation\" = 'composer/researcher'" + }, + { + "db_id": "2-12890214-1", + "question": "What is the highest number of votes for the French Professor?", + "evidence": "", + "schema_text_wo_content": "Table 2-12890214-1, columns = [Riding, Candidate's Name, Gender, Residence, Occupation, Votes, Rank]\n", + "schema_text_with_content": "Table 2-12890214-1, columns = [`Riding` (Example values: [abitibi—baie-james—nunavik—eeyou, abitibi—témiscamingue, ahuntsic]), `Candidate's Name` (Example values: [yvon lévesque, marc lemay, maria mourani]), `Gender` (Example values: [m, f]), `Residence` (Example values: [val-senneville, rouyn-noranda, blainville]), `Occupation` (Example values: [labour relations councillor, lawyer profession, parliamentarian]), `Votes` (Example values: [10,995, 20,929, 18,815]), `Rank` (Example values: [1st, 2nd, 5th])]\n", + "ori_query": "select max(`votes`) from `2-12890214-1` where `occupation` = 'french professor'", + "amb_query": "SELECT MAX(\"votes\") FROM \"2-12890214-1\" WHERE occupation IN ('french professor', 'professor of french')" + }, + { + "db_id": "1-11602885-1", + "question": "When was the game in iowa played? ", + "evidence": "", + "schema_text_wo_content": "Table 1-11602885-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11602885-1, columns = [`Date` (Example values: [jan 25, feb 8, feb 15]), `Tournament` (Example values: [mastercard championship, royal caribbean golf classic, the ace group classic]), `Location` (Example values: [hawaii, florida, united mexican states]), `Purse( $ )` (Example values: [1600000.0, 1450000.0, 2000000.0]), `Winner` (Example values: [fuzzy zoeller (2), bruce fleisher (17), craig stadler (4)]), `Score` (Example values: [196 (-20), 210 (-6), 206 (-10)]), `1st Prize( $ )` (Example values: [268000.0, 217500.0, 240000.0])]\n", + "ori_query": "select `date` from `1-11602885-1` where `location` = 'iowa'", + "amb_query": "SELECT \"date\" FROM \"1-11602885-1\" WHERE location IN ('iowa', 'iowa state')" + }, + { + "db_id": "1-11602885-1", + "question": "When was the game in missouri played? ", + "evidence": "", + "schema_text_wo_content": "Table 1-11602885-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11602885-1, columns = [`Date` (Example values: [jan 25, feb 8, feb 15]), `Tournament` (Example values: [mastercard championship, royal caribbean golf classic, the ace group classic]), `Location` (Example values: [hawaii, florida, united mexican states]), `Purse( $ )` (Example values: [1600000.0, 1450000.0, 2000000.0]), `Winner` (Example values: [fuzzy zoeller (2), bruce fleisher (17), craig stadler (4)]), `Score` (Example values: [196 (-20), 210 (-6), 206 (-10)]), `1st Prize( $ )` (Example values: [268000.0, 217500.0, 240000.0])]\n", + "ori_query": "select `date` from `1-11602885-1` where `location` = 'missouri'", + "amb_query": "SELECT \"date\" FROM \"1-11602885-1\" WHERE location IN ('missouri', 'state of missouri')" + }, + { + "db_id": "1-11602885-1", + "question": "When was the game in Mexico played? ", + "evidence": "", + "schema_text_wo_content": "Table 1-11602885-1, columns = [Date, Tournament, Location, Purse( $ ), Winner, Score, 1st Prize( $ )]\n", + "schema_text_with_content": "Table 1-11602885-1, columns = [`Date` (Example values: [jan 25, feb 8, feb 15]), `Tournament` (Example values: [mastercard championship, royal caribbean golf classic, the ace group classic]), `Location` (Example values: [hawaii, florida, united mexican states]), `Purse( $ )` (Example values: [1600000.0, 1450000.0, 2000000.0]), `Winner` (Example values: [fuzzy zoeller (2), bruce fleisher (17), craig stadler (4)]), `Score` (Example values: [196 (-20), 210 (-6), 206 (-10)]), `1st Prize( $ )` (Example values: [268000.0, 217500.0, 240000.0])]\n", + "ori_query": "select `date` from `1-11602885-1` where `location` = 'mexico'", + "amb_query": "SELECT \"date\" FROM \"1-11602885-1\" WHERE location IN ('mexico', 'united mexican states')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on september 30, 1965.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'september 30, 1965'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('30/09/1965', 'september 30, 1965')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on october 15, 1966.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'october 15, 1966'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('october 15, 1966', '1966-10-15')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on july 30, 1965.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'july 30, 1965'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('07/30/1965', 'july 30, 1965')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on december 31, 1965.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'december 31, 1965'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('12/31/1965', 'december 31, 1965')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on august 25, 1966.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'august 25, 1966'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('august 25, 1966', '25/08/1966')" + }, + { + "db_id": "1-1014206-2", + "question": "When were ships laid down that were commissioned on december 30, 1967?", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `laid down` from `1-1014206-2` where `commissioned` = 'december 30, 1967'", + "amb_query": "SELECT \"laid down\" FROM \"1-1014206-2\" WHERE commissioned IN ('dec 30, 1967', 'december 30, 1967')" + }, + { + "db_id": "1-1014206-2", + "question": "When were ships laid down that were commissioned on october 31, 1963?", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `laid down` from `1-1014206-2` where `commissioned` = 'october 31, 1963'", + "amb_query": "SELECT \"laid down\" FROM \"1-1014206-2\" WHERE commissioned IN ('october 31, 1963', '10/31/1963')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on december 18, 1965.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'december 18, 1965'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('dec 18, 1965', 'december 18, 1965')" + }, + { + "db_id": "1-1014206-2", + "question": "List the # for ships commissioned on september 30, 1967.", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `#` from `1-1014206-2` where `commissioned` = 'september 30, 1967'", + "amb_query": "SELECT \"#\" FROM \"1-1014206-2\" WHERE commissioned IN ('september 30th, 1967', 'september 30, 1967')" + }, + { + "db_id": "1-1014206-2", + "question": "When were ships laid down that were commissioned on october 29, 1965?", + "evidence": "", + "schema_text_wo_content": "Table 1-1014206-2, columns = [#, Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 1-1014206-2, columns = [`#` (Example values: [k-166, k-104, k-170 \"k-86\", \"ks-86\"]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [10/31/1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `laid down` from `1-1014206-2` where `commissioned` = 'october 29, 1965'", + "amb_query": "SELECT \"laid down\" FROM \"1-1014206-2\" WHERE commissioned IN ('october 29, 1965', '10-29-1965')" + }, + { + "db_id": "1-291768-1", + "question": "when was the first start date that actually began on december 30, 1967", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `launched` from `1-291768-1` where `commissioned` = 'december 30, 1967'", + "amb_query": "SELECT \"launched\" FROM \"1-291768-1\" WHERE commissioned IN ('dec 30, 1967', 'december 30, 1967')" + }, + { + "db_id": "1-291768-1", + "question": "which vessel area was called for on february 8, 1972", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'february 8, 1972'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('february 8th, 1972', 'february 8, 1972')" + }, + { + "db_id": "1-291768-1", + "question": "which vessel area was called for on august 31, 1970", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'august 31, 1970'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('31-08-1970', 'august 31, 1970')" + }, + { + "db_id": "1-291768-1", + "question": "which vessel area was called for on november 6, 1967", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'november 6, 1967'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('november 6th, 1967', 'november 6, 1967')" + }, + { + "db_id": "1-291768-1", + "question": "where is the boat area that began on december 5, 1969", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'december 5, 1969'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('december 5, 1969', 'dec 5, 1969')" + }, + { + "db_id": "1-291768-1", + "question": "where is the boat area that began on december 22, 1970", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'december 22, 1970'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('dec 22, 1970', 'december 22, 1970')" + }, + { + "db_id": "1-291768-1", + "question": "where is the boat area that began on december 16, 1971", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'december 16, 1971'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('12/16/1971', 'december 16, 1971')" + }, + { + "db_id": "1-291768-1", + "question": "when was the first start date that actually began on december 5, 1973", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `launched` from `1-291768-1` where `commissioned` = 'december 5, 1973'", + "amb_query": "SELECT \"launched\" FROM \"1-291768-1\" WHERE commissioned IN ('1973-12-05', 'december 5, 1973')" + }, + { + "db_id": "1-291768-1", + "question": "which vessel area was called for on november 30, 1970", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'november 30, 1970'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('november 30, 1970', '11/30/1970')" + }, + { + "db_id": "1-291768-1", + "question": "where is the boat area that began on november 30, 1970", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `shipyard` from `1-291768-1` where `commissioned` = 'november 30, 1970'", + "amb_query": "SELECT \"shipyard\" FROM \"1-291768-1\" WHERE commissioned IN ('november 30, 1970', '11/30/1970')" + }, + { + "db_id": "1-291768-1", + "question": "when was the first start date that actually began on august 6, 1969", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `launched` from `1-291768-1` where `commissioned` = 'august 6, 1969'", + "amb_query": "SELECT \"launched\" FROM \"1-291768-1\" WHERE commissioned IN ('august 6, 1969', '1969-08-06')" + }, + { + "db_id": "1-291768-1", + "question": "what project was initially started before march 25, 1971", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `commissioned` from `1-291768-1` where `launched` = 'march 25, 1971'", + "amb_query": "SELECT \"commissioned\" FROM \"1-291768-1\" WHERE launched IN ('03/25/1971', 'march 25, 1971')" + }, + { + "db_id": "1-291768-1", + "question": "what project was initially started before june 23, 1969", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `commissioned` from `1-291768-1` where `launched` = 'june 23, 1969'", + "amb_query": "SELECT \"commissioned\" FROM \"1-291768-1\" WHERE launched IN ('june 23rd, 1969', 'june 23, 1969')" + }, + { + "db_id": "1-291768-1", + "question": "what project was initially started before july 28, 1969", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `commissioned` from `1-291768-1` where `launched` = 'july 28, 1969'", + "amb_query": "SELECT \"commissioned\" FROM \"1-291768-1\" WHERE launched IN ('july 28, 1969', '28/07/1969')" + }, + { + "db_id": "1-291768-1", + "question": "what project was initially started before september 20, 1968", + "evidence": "", + "schema_text_wo_content": "Table 1-291768-1, columns = [#, Project, Shipyard, Laid down, Launched, Commissioned, Status]\n", + "schema_text_with_content": "Table 1-291768-1, columns = [`#` (Example values: [k-137, k-140, k-26]), `Project` (Example values: [667a, 667au, 667a, 667am, 667au]), `Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk]), `Laid down` (Example values: [november 4, 1964, september 19, 1965, december 30, 1965]), `Launched` (Example values: [september 11, 1966, august 23, 1967, december 23, 1967]), `Commissioned` (Example values: [november 6th, 1967, dec 30, 1967, september 3, 1968]), `Status` (Example values: [decommissioned april 3, 1994 for scrapping, decommissioned april 19, 1990 for scrapping, decommissioned july 17, 1988 for scrapping])]\n", + "ori_query": "select `commissioned` from `1-291768-1` where `launched` = 'september 20, 1968'", + "amb_query": "SELECT \"commissioned\" FROM \"1-291768-1\" WHERE launched IN ('09/20/1968', 'september 20, 1968')" + }, + { + "db_id": "1-10601843-2", + "question": "How many tenants are there in the city of moscow?", + "evidence": "", + "schema_text_wo_content": "Table 1-10601843-2, columns = [Stadium, Capacity, City, Country, Tenant, Opening]\n", + "schema_text_with_content": "Table 1-10601843-2, columns = [`Stadium` (Example values: [nou mestalla, gazprom arena, baku olympic stadium]), `Capacity` (Example values: [75000.0, 69501.0, 68000.0]), `City` (Example values: [valencia, saint petersburg, baku]), `Country` (Example values: [spain, russia, azerbaijan]), `Tenant` (Example values: [valencia cf, fc zenit saint petersburg, azerbaijan national football team]), `Opening` (Example values: [2014.0, 2015.0, 2016.0])]\n", + "ori_query": "select count(`tenant`) from `1-10601843-2` where `city` = 'moscow'", + "amb_query": "SELECT COUNT(\"tenant\") FROM \"1-10601843-2\" WHERE city IN ('moscow city', 'moscow region', 'moscow')" + }, + { + "db_id": "1-10601843-2", + "question": "How many tenants are there in the city of lyon?", + "evidence": "", + "schema_text_wo_content": "Table 1-10601843-2, columns = [Stadium, Capacity, City, Country, Tenant, Opening]\n", + "schema_text_with_content": "Table 1-10601843-2, columns = [`Stadium` (Example values: [nou mestalla, gazprom arena, baku olympic stadium]), `Capacity` (Example values: [75000.0, 69501.0, 68000.0]), `City` (Example values: [valencia, saint petersburg, baku]), `Country` (Example values: [spain, russia, azerbaijan]), `Tenant` (Example values: [valencia cf, fc zenit saint petersburg, azerbaijan national football team]), `Opening` (Example values: [2014.0, 2015.0, 2016.0])]\n", + "ori_query": "select count(`tenant`) from `1-10601843-2` where `city` = 'lyon'", + "amb_query": "SELECT COUNT(\"tenant\") FROM \"1-10601843-2\" WHERE city IN ('lyon', 'lyon, auvergne-rhône-alpes')" + }, + { + "db_id": "1-10601843-2", + "question": "How many tenants are there in the city of london?", + "evidence": "", + "schema_text_wo_content": "Table 1-10601843-2, columns = [Stadium, Capacity, City, Country, Tenant, Opening]\n", + "schema_text_with_content": "Table 1-10601843-2, columns = [`Stadium` (Example values: [nou mestalla, gazprom arena, baku olympic stadium]), `Capacity` (Example values: [75000.0, 69501.0, 68000.0]), `City` (Example values: [valencia, saint petersburg, baku]), `Country` (Example values: [spain, russia, azerbaijan]), `Tenant` (Example values: [valencia cf, fc zenit saint petersburg, azerbaijan national football team]), `Opening` (Example values: [2014.0, 2015.0, 2016.0])]\n", + "ori_query": "select count(`tenant`) from `1-10601843-2` where `city` = 'london'", + "amb_query": "SELECT COUNT(\"tenant\") FROM \"1-10601843-2\" WHERE city IN ('london', 'london, united kingdom')" + }, + { + "db_id": "1-10601843-2", + "question": "How many tenants are there in the city of Samsun?", + "evidence": "", + "schema_text_wo_content": "Table 1-10601843-2, columns = [Stadium, Capacity, City, Country, Tenant, Opening]\n", + "schema_text_with_content": "Table 1-10601843-2, columns = [`Stadium` (Example values: [nou mestalla, gazprom arena, baku olympic stadium]), `Capacity` (Example values: [75000.0, 69501.0, 68000.0]), `City` (Example values: [valencia, saint petersburg, baku]), `Country` (Example values: [spain, russia, azerbaijan]), `Tenant` (Example values: [valencia cf, fc zenit saint petersburg, azerbaijan national football team]), `Opening` (Example values: [2014.0, 2015.0, 2016.0])]\n", + "ori_query": "select count(`tenant`) from `1-10601843-2` where `city` = 'samsun'", + "amb_query": "SELECT COUNT(\"tenant\") FROM \"1-10601843-2\" WHERE city IN ('samsun', 'samsun, turkey')" + }, + { + "db_id": "1-11456251-5", + "question": "What is the % of annual production of wind?", + "evidence": "", + "schema_text_wo_content": "Table 1-11456251-5, columns = [Power Source, Number of Generators, Power Capacity (GW), % of total Capacity, Capacity factor, Annual Energy (billion kWh), % of annual production]\n", + "schema_text_with_content": "Table 1-11456251-5, columns = [`Power Source` (Example values: [hydro, wind energy, wood]), `Number of Generators` (Example values: [4048.0, 781.0, 345.0]), `Power Capacity (GW)` (Example values: [78.7, 46.0, 8.0]), `% of total Capacity` (Example values: [7.5, 4.4, 0.76]), `Capacity factor` (Example values: [0.463, 0.298, 0.535]), `Annual Energy (billion kWh)` (Example values: [319.4, 120.2, 37.5]), `% of annual production` (Example values: [7.7, 2.9, 0.9])]\n", + "ori_query": "select `% of annual production` from `1-11456251-5` where `power source` = 'wind'", + "amb_query": "SELECT \"% of annual production\" FROM \"1-11456251-5\" WHERE power source IN ('wind energy', 'wind')" + }, + { + "db_id": "1-11456251-5", + "question": "What is the % of annual production of solar?", + "evidence": "", + "schema_text_wo_content": "Table 1-11456251-5, columns = [Power Source, Number of Generators, Power Capacity (GW), % of total Capacity, Capacity factor, Annual Energy (billion kWh), % of annual production]\n", + "schema_text_with_content": "Table 1-11456251-5, columns = [`Power Source` (Example values: [hydro, wind energy, wood]), `Number of Generators` (Example values: [4048.0, 781.0, 345.0]), `Power Capacity (GW)` (Example values: [78.7, 46.0, 8.0]), `% of total Capacity` (Example values: [7.5, 4.4, 0.76]), `Capacity factor` (Example values: [0.463, 0.298, 0.535]), `Annual Energy (billion kWh)` (Example values: [319.4, 120.2, 37.5]), `% of annual production` (Example values: [7.7, 2.9, 0.9])]\n", + "ori_query": "select `% of annual production` from `1-11456251-5` where `power source` = 'solar'", + "amb_query": "SELECT \"% of annual production\" FROM \"1-11456251-5\" WHERE power source IN ('solar', 'solar source')" + }, + { + "db_id": "1-11677100-12", + "question": "Who were the MLB draft with the hometown chino hills, ca?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677100-12, columns = [Player, Position, School, Hometown, MLB Draft]\n", + "schema_text_with_content": "Table 1-11677100-12, columns = [`Player` (Example values: [clayton kershaw, hank conger, chris marrero]), `Position` (Example values: [pitcher, catcher, infielder]), `School` (Example values: [highland park high school, huntington beach high school, monsignor pace high school]), `Hometown` (Example values: [city of dallas, texas, huntington beach, ca, opa-locka, fl, usa]), `MLB Draft` (Example values: [1st round - 7th pick of 2006 draft ( dodgers ), 1st round - 25th pick of 2006 draft ( angels ), 1st round - 15th pick of 2006 draft ( nationals )])]\n", + "ori_query": "select `mlb draft` from `1-11677100-12` where `hometown` = 'chino hills, ca'", + "amb_query": "SELECT \"mlb draft\" FROM \"1-11677100-12\" WHERE hometown IN ('chino hills, ca', 'chino hills, california, united states')" + }, + { + "db_id": "1-11677100-12", + "question": "Who were the MLB draft with the hometown Opa-locka, Fl?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677100-12, columns = [Player, Position, School, Hometown, MLB Draft]\n", + "schema_text_with_content": "Table 1-11677100-12, columns = [`Player` (Example values: [clayton kershaw, hank conger, chris marrero]), `Position` (Example values: [pitcher, catcher, infielder]), `School` (Example values: [highland park high school, huntington beach high school, monsignor pace high school]), `Hometown` (Example values: [city of dallas, texas, huntington beach, ca, opa-locka, fl, usa]), `MLB Draft` (Example values: [1st round - 7th pick of 2006 draft ( dodgers ), 1st round - 25th pick of 2006 draft ( angels ), 1st round - 15th pick of 2006 draft ( nationals )])]\n", + "ori_query": "select `mlb draft` from `1-11677100-12` where `hometown` = 'opa-locka, fl'", + "amb_query": "SELECT \"mlb draft\" FROM \"1-11677100-12\" WHERE hometown IN ('opa-locka, fl', 'opa-locka, fl, usa')" + }, + { + "db_id": "1-11677100-12", + "question": "How many players have the hometown Pennsauken, NJ?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677100-12, columns = [Player, Position, School, Hometown, MLB Draft]\n", + "schema_text_with_content": "Table 1-11677100-12, columns = [`Player` (Example values: [clayton kershaw, hank conger, chris marrero]), `Position` (Example values: [pitcher, catcher, infielder]), `School` (Example values: [highland park high school, huntington beach high school, monsignor pace high school]), `Hometown` (Example values: [city of dallas, texas, huntington beach, ca, opa-locka, fl, usa]), `MLB Draft` (Example values: [1st round - 7th pick of 2006 draft ( dodgers ), 1st round - 25th pick of 2006 draft ( angels ), 1st round - 15th pick of 2006 draft ( nationals )])]\n", + "ori_query": "select count(`player`) from `1-11677100-12` where `hometown` = 'pennsauken, nj'", + "amb_query": "SELECT COUNT(\"player\") FROM \"1-11677100-12\" WHERE hometown IN ('pennsauken, nj', 'pennsauken, nj area')" + }, + { + "db_id": "1-11677100-12", + "question": "Which position did the player from the hometown of Dallas, TX play?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677100-12, columns = [Player, Position, School, Hometown, MLB Draft]\n", + "schema_text_with_content": "Table 1-11677100-12, columns = [`Player` (Example values: [clayton kershaw, hank conger, chris marrero]), `Position` (Example values: [pitcher, catcher, infielder]), `School` (Example values: [highland park high school, huntington beach high school, monsignor pace high school]), `Hometown` (Example values: [city of dallas, texas, huntington beach, ca, opa-locka, fl, usa]), `MLB Draft` (Example values: [1st round - 7th pick of 2006 draft ( dodgers ), 1st round - 25th pick of 2006 draft ( angels ), 1st round - 15th pick of 2006 draft ( nationals )])]\n", + "ori_query": "select `position` from `1-11677100-12` where `hometown` = 'dallas, tx'", + "amb_query": "SELECT \"position\" FROM \"1-11677100-12\" WHERE hometown IN ('dallas, tx', 'city of dallas, texas')" + }, + { + "db_id": "1-11677691-1", + "question": "What position did the player from springdale, arkansas play? ", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-1, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-1, columns = [`Player` (Example values: [kiehl frazier, savon huggins, malcolm brown]), `Position` (Example values: [quarterback, running back, offensive line]), `School` (Example values: [shiloh christian school, st. peter's prep school, steele high school]), `Hometown` (Example values: [springdale, ar, jersey city in new jersey, cibolo, texas]), `College` (Example values: [auburn, rutgers, texas])]\n", + "ori_query": "select `position` from `1-11677691-1` where `hometown` = 'springdale, arkansas'", + "amb_query": "SELECT \"position\" FROM \"1-11677691-1\" WHERE hometown IN ('springdale, arkansas', 'springdale, ar')" + }, + { + "db_id": "1-11677691-1", + "question": "What offensive line player hailed from hyattsville, maryland?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-1, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-1, columns = [`Player` (Example values: [kiehl frazier, savon huggins, malcolm brown]), `Position` (Example values: [quarterback, running back, offensive line]), `School` (Example values: [shiloh christian school, st. peter's prep school, steele high school]), `Hometown` (Example values: [springdale, ar, jersey city in new jersey, cibolo, texas]), `College` (Example values: [auburn, rutgers, texas])]\n", + "ori_query": "select `player` from `1-11677691-1` where `position` = 'offensive line' and `hometown` = 'hyattsville, maryland'", + "amb_query": "SELECT \"player\" FROM \"1-11677691-1\" WHERE \"position\" = 'offensive line' AND hometown IN ('hyattsville, maryland', 'hyattsville, maryland, united states')" + }, + { + "db_id": "1-11677691-1", + "question": "What position did the player from Jersey City, New Jersey play? ", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-1, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-1, columns = [`Player` (Example values: [kiehl frazier, savon huggins, malcolm brown]), `Position` (Example values: [quarterback, running back, offensive line]), `School` (Example values: [shiloh christian school, st. peter's prep school, steele high school]), `Hometown` (Example values: [springdale, ar, jersey city in new jersey, cibolo, texas]), `College` (Example values: [auburn, rutgers, texas])]\n", + "ori_query": "select `position` from `1-11677691-1` where `hometown` = 'jersey city, new jersey'", + "amb_query": "SELECT \"position\" FROM \"1-11677691-1\" WHERE hometown IN ('jersey city in new jersey', 'jersey city, new jersey')" + }, + { + "db_id": "1-11677691-1", + "question": "What offensive line player hailed from Baton Rouge, Louisiana?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-1, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-1, columns = [`Player` (Example values: [kiehl frazier, savon huggins, malcolm brown]), `Position` (Example values: [quarterback, running back, offensive line]), `School` (Example values: [shiloh christian school, st. peter's prep school, steele high school]), `Hometown` (Example values: [springdale, ar, jersey city in new jersey, cibolo, texas]), `College` (Example values: [auburn, rutgers, texas])]\n", + "ori_query": "select `player` from `1-11677691-1` where `position` = 'offensive line' and `hometown` = 'baton rouge, louisiana'", + "amb_query": "SELECT \"player\" FROM \"1-11677691-1\" WHERE \"position\" = 'offensive line' AND hometown IN ('baton rouge, louisiana', 'capital of louisiana', 'baton rouge, louisiana, usa')" + }, + { + "db_id": "1-11677691-4", + "question": "How many players hometown was indianapolis, indiana?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-4, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-4, columns = [`Player` (Example values: [connor mcgovern, kevin mcreynolds, jesse hayes]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [shanley high school, st. john's high school, moeller high school]), `Hometown` (Example values: [fargo, north dakota, washington, d.c., cincinnati]), `College` (Example values: [missouri, ucla, wisconsin])]\n", + "ori_query": "select count(`player`) from `1-11677691-4` where `hometown` = 'indianapolis, indiana'", + "amb_query": "SELECT COUNT(\"player\") FROM \"1-11677691-4\" WHERE hometown IN ('indianapolis, indiana', 'indianapolis city')" + }, + { + "db_id": "1-11677691-4", + "question": "Which player's hometown was springfield, ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-4, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-4, columns = [`Player` (Example values: [connor mcgovern, kevin mcreynolds, jesse hayes]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [shanley high school, st. john's high school, moeller high school]), `Hometown` (Example values: [fargo, north dakota, washington, d.c., cincinnati]), `College` (Example values: [missouri, ucla, wisconsin])]\n", + "ori_query": "select `player` from `1-11677691-4` where `hometown` = 'springfield, ohio'", + "amb_query": "SELECT \"player\" FROM \"1-11677691-4\" WHERE hometown IN ('springfield, ohio, united states', 'springfield, ohio')" + }, + { + "db_id": "1-11677691-4", + "question": "How many players' hometown was mission viejo, california?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-4, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-4, columns = [`Player` (Example values: [connor mcgovern, kevin mcreynolds, jesse hayes]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [shanley high school, st. john's high school, moeller high school]), `Hometown` (Example values: [fargo, north dakota, washington, d.c., cincinnati]), `College` (Example values: [missouri, ucla, wisconsin])]\n", + "ori_query": "select count(`school`) from `1-11677691-4` where `hometown` = 'mission viejo, california'", + "amb_query": "SELECT COUNT(\"school\") FROM \"1-11677691-4\" WHERE hometown IN ('mission viejo, california, united states', 'mission viejo, california')" + }, + { + "db_id": "1-11677691-4", + "question": "How many players hometown was Cincinnati, Ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-4, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-4, columns = [`Player` (Example values: [connor mcgovern, kevin mcreynolds, jesse hayes]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [shanley high school, st. john's high school, moeller high school]), `Hometown` (Example values: [fargo, north dakota, washington, d.c., cincinnati]), `College` (Example values: [missouri, ucla, wisconsin])]\n", + "ori_query": "select count(`player`) from `1-11677691-4` where `hometown` = 'cincinnati, ohio'", + "amb_query": "SELECT COUNT(\"player\") FROM \"1-11677691-4\" WHERE hometown IN ('cincinnati', 'cincinnati, ohio')" + }, + { + "db_id": "1-11677691-4", + "question": "Which player's hometown was Pewaukee, Wisconsin?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-4, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-4, columns = [`Player` (Example values: [connor mcgovern, kevin mcreynolds, jesse hayes]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [shanley high school, st. john's high school, moeller high school]), `Hometown` (Example values: [fargo, north dakota, washington, d.c., cincinnati]), `College` (Example values: [missouri, ucla, wisconsin])]\n", + "ori_query": "select `player` from `1-11677691-4` where `hometown` = 'pewaukee, wisconsin'", + "amb_query": "SELECT \"player\" FROM \"1-11677691-4\" WHERE hometown IN ('pewaukee, wisconsin', 'pewaukee, wi')" + }, + { + "db_id": "1-11677691-4", + "question": "How many players' hometown was Akron, Ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-4, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-4, columns = [`Player` (Example values: [connor mcgovern, kevin mcreynolds, jesse hayes]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [shanley high school, st. john's high school, moeller high school]), `Hometown` (Example values: [fargo, north dakota, washington, d.c., cincinnati]), `College` (Example values: [missouri, ucla, wisconsin])]\n", + "ori_query": "select count(`school`) from `1-11677691-4` where `hometown` = 'akron, ohio'", + "amb_query": "SELECT COUNT(\"school\") FROM \"1-11677691-4\" WHERE hometown IN ('akron, ohio', 'akron city, ohio')" + }, + { + "db_id": "1-11677691-8", + "question": "What position did the kid from downey, california play", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-8, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-8, columns = [`Player` (Example values: [eddie goldman, caleb gulledge, robert nkemdiche ‡]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [friendship collegiate charter school, prattville high school, grayson high school]), `Hometown` (Example values: [washington, d.c., prattville, alabama, loganville, georgia, united states]), `College` (Example values: [florida state, alabama, mississippi])]\n", + "ori_query": "select `position` from `1-11677691-8` where `hometown` = 'downey, california'", + "amb_query": "SELECT \"position\" FROM \"1-11677691-8\" WHERE hometown IN ('downey, california', 'downey, california, united states')" + }, + { + "db_id": "1-11677691-8", + "question": "What position did the kid from loganville, georgia play", + "evidence": "", + "schema_text_wo_content": "Table 1-11677691-8, columns = [Player, Position, School, Hometown, College]\n", + "schema_text_with_content": "Table 1-11677691-8, columns = [`Player` (Example values: [eddie goldman, caleb gulledge, robert nkemdiche ‡]), `Position` (Example values: [defensive line, linebacker, defensive back]), `School` (Example values: [friendship collegiate charter school, prattville high school, grayson high school]), `Hometown` (Example values: [washington, d.c., prattville, alabama, loganville, georgia, united states]), `College` (Example values: [florida state, alabama, mississippi])]\n", + "ori_query": "select `position` from `1-11677691-8` where `hometown` = 'loganville, georgia'", + "amb_query": "SELECT \"position\" FROM \"1-11677691-8\" WHERE hometown IN ('loganville, georgia, united states', 'loganville, georgia')" + }, + { + "db_id": "1-1198175-1", + "question": "What is the name when born is march 25, 1943 schlava, ger?", + "evidence": "", + "schema_text_wo_content": "Table 1-1198175-1, columns = [Name, Position, Height, Weight(lbs), Born, College, Drafted, Pro Team]\n", + "schema_text_with_content": "Table 1-1198175-1, columns = [`Name` (Example values: [darris mccord, ben john paolucci, arnie simkus]), `Position` (Example values: [de/dt/oe, dt, de/dt]), `Height` (Example values: [6'6\", 6'2\", 6'4\"]), `Weight(lbs)` (Example values: [250.0, 240.0, 245.0]), `Born` (Example values: [january 4, 1933 detroit, mi, march 5, 1937 cleveland, oh, march 25, 1943, schlava, germany]), `College` (Example values: [tennessee, wayne state, michigan]), `Drafted` (Example values: [1955, r3, p11, undrafted, 1965, r6, p2]), `Pro Team` (Example values: [detroit lions, new york jets minnesota vikings, minnesota vikings])]\n", + "ori_query": "select `name` from `1-1198175-1` where `born` = 'march 25, 1943 schlava, ger'", + "amb_query": "SELECT \"name\" FROM \"1-1198175-1\" WHERE born IN ('march 25, 1943, schlava, germany', 'march 25, 1943 schlava, ger')" + }, + { + "db_id": "1-1198175-1", + "question": "What is the name when born is october 30, 1951 detroit, mi?", + "evidence": "", + "schema_text_wo_content": "Table 1-1198175-1, columns = [Name, Position, Height, Weight(lbs), Born, College, Drafted, Pro Team]\n", + "schema_text_with_content": "Table 1-1198175-1, columns = [`Name` (Example values: [darris mccord, ben john paolucci, arnie simkus]), `Position` (Example values: [de/dt/oe, dt, de/dt]), `Height` (Example values: [6'6\", 6'2\", 6'4\"]), `Weight(lbs)` (Example values: [250.0, 240.0, 245.0]), `Born` (Example values: [january 4, 1933 detroit, mi, march 5, 1937 cleveland, oh, march 25, 1943, schlava, germany]), `College` (Example values: [tennessee, wayne state, michigan]), `Drafted` (Example values: [1955, r3, p11, undrafted, 1965, r6, p2]), `Pro Team` (Example values: [detroit lions, new york jets minnesota vikings, minnesota vikings])]\n", + "ori_query": "select `name` from `1-1198175-1` where `born` = 'october 30, 1951 detroit, mi'", + "amb_query": "SELECT \"name\" FROM \"1-1198175-1\" WHERE born IN ('detroit, mi, born on october 30, 1951', 'october 30, 1951 detroit, mi')" + }, + { + "db_id": "1-1198175-1", + "question": "What is the weight(lbs) when born is december 27, 1972 detroit, mi?", + "evidence": "", + "schema_text_wo_content": "Table 1-1198175-1, columns = [Name, Position, Height, Weight(lbs), Born, College, Drafted, Pro Team]\n", + "schema_text_with_content": "Table 1-1198175-1, columns = [`Name` (Example values: [darris mccord, ben john paolucci, arnie simkus]), `Position` (Example values: [de/dt/oe, dt, de/dt]), `Height` (Example values: [6'6\", 6'2\", 6'4\"]), `Weight(lbs)` (Example values: [250.0, 240.0, 245.0]), `Born` (Example values: [january 4, 1933 detroit, mi, march 5, 1937 cleveland, oh, march 25, 1943, schlava, germany]), `College` (Example values: [tennessee, wayne state, michigan]), `Drafted` (Example values: [1955, r3, p11, undrafted, 1965, r6, p2]), `Pro Team` (Example values: [detroit lions, new york jets minnesota vikings, minnesota vikings])]\n", + "ori_query": "select `weight(lbs)` from `1-1198175-1` where `born` = 'december 27, 1972 detroit, mi'", + "amb_query": "SELECT \"weight(lbs)\" FROM \"1-1198175-1\" WHERE born IN ('december 27, 1972 detroit, mi', 'detroit, michigan on december 27, 1972')" + }, + { + "db_id": "1-1198175-1", + "question": "What is the name when born is december 30, 1957 detroit, mi?", + "evidence": "", + "schema_text_wo_content": "Table 1-1198175-1, columns = [Name, Position, Height, Weight(lbs), Born, College, Drafted, Pro Team]\n", + "schema_text_with_content": "Table 1-1198175-1, columns = [`Name` (Example values: [darris mccord, ben john paolucci, arnie simkus]), `Position` (Example values: [de/dt/oe, dt, de/dt]), `Height` (Example values: [6'6\", 6'2\", 6'4\"]), `Weight(lbs)` (Example values: [250.0, 240.0, 245.0]), `Born` (Example values: [january 4, 1933 detroit, mi, march 5, 1937 cleveland, oh, march 25, 1943, schlava, germany]), `College` (Example values: [tennessee, wayne state, michigan]), `Drafted` (Example values: [1955, r3, p11, undrafted, 1965, r6, p2]), `Pro Team` (Example values: [detroit lions, new york jets minnesota vikings, minnesota vikings])]\n", + "ori_query": "select `name` from `1-1198175-1` where `born` = 'december 30, 1957 detroit, mi'", + "amb_query": "SELECT \"name\" FROM \"1-1198175-1\" WHERE born IN ('december 30, 1957 detroit, mi', 'detroit, mi on december 30, 1957')" + }, + { + "db_id": "1-1198175-1", + "question": "What is the weight(lbs) when born is april 6, 1954 detroit, mi?", + "evidence": "", + "schema_text_wo_content": "Table 1-1198175-1, columns = [Name, Position, Height, Weight(lbs), Born, College, Drafted, Pro Team]\n", + "schema_text_with_content": "Table 1-1198175-1, columns = [`Name` (Example values: [darris mccord, ben john paolucci, arnie simkus]), `Position` (Example values: [de/dt/oe, dt, de/dt]), `Height` (Example values: [6'6\", 6'2\", 6'4\"]), `Weight(lbs)` (Example values: [250.0, 240.0, 245.0]), `Born` (Example values: [january 4, 1933 detroit, mi, march 5, 1937 cleveland, oh, march 25, 1943, schlava, germany]), `College` (Example values: [tennessee, wayne state, michigan]), `Drafted` (Example values: [1955, r3, p11, undrafted, 1965, r6, p2]), `Pro Team` (Example values: [detroit lions, new york jets minnesota vikings, minnesota vikings])]\n", + "ori_query": "select `weight(lbs)` from `1-1198175-1` where `born` = 'april 6, 1954 detroit, mi'", + "amb_query": "SELECT \"weight(lbs)\" FROM \"1-1198175-1\" WHERE born IN ('april 6, 1954 detroit, mi', 'born on april 6, 1954 in detroit, mi')" + }, + { + "db_id": "1-12032893-1", + "question": "How many years have the home town of austin, tx?", + "evidence": "", + "schema_text_wo_content": "Table 1-12032893-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-12032893-1, columns = [`Name` (Example values: [ron baxter, brent boyd, tyrone brayan]), `#` (Example values: [12.0, 4.0, 31.0]), `Position` (Example values: [guard-forward, guard, forward]), `Height` (Example values: [6–4, 6–3, 6–7]), `Weight` (Example values: [205.0, 185.0, 220.0]), `Year` (Example values: [sophomore, junior, freshman]), `Home Town` (Example values: [los angeles, california, baton rouge, placentia, ca]), `High School` (Example values: [dorsey, catholic university, el dorado])]\n", + "ori_query": "select count(`year`) from `1-12032893-1` where `home town` = 'austin, tx'", + "amb_query": "SELECT COUNT(\"year\") FROM \"1-12032893-1\" WHERE home town IN ('austin, tx', 'austin, texas, usa')" + }, + { + "db_id": "1-12032893-1", + "question": "How many years have the home town of los angeles, ca?", + "evidence": "", + "schema_text_wo_content": "Table 1-12032893-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-12032893-1, columns = [`Name` (Example values: [ron baxter, brent boyd, tyrone brayan]), `#` (Example values: [12.0, 4.0, 31.0]), `Position` (Example values: [guard-forward, guard, forward]), `Height` (Example values: [6–4, 6–3, 6–7]), `Weight` (Example values: [205.0, 185.0, 220.0]), `Year` (Example values: [sophomore, junior, freshman]), `Home Town` (Example values: [los angeles, california, baton rouge, placentia, ca]), `High School` (Example values: [dorsey, catholic university, el dorado])]\n", + "ori_query": "select count(`year`) from `1-12032893-1` where `home town` = 'los angeles, ca'", + "amb_query": "SELECT COUNT(\"year\") FROM \"1-12032893-1\" WHERE home town IN ('los angeles, california', 'los angeles city, california', 'los angeles, ca')" + }, + { + "db_id": "1-12032893-1", + "question": "How many years have the home town of Baton Rouge, LA?", + "evidence": "", + "schema_text_wo_content": "Table 1-12032893-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-12032893-1, columns = [`Name` (Example values: [ron baxter, brent boyd, tyrone brayan]), `#` (Example values: [12.0, 4.0, 31.0]), `Position` (Example values: [guard-forward, guard, forward]), `Height` (Example values: [6–4, 6–3, 6–7]), `Weight` (Example values: [205.0, 185.0, 220.0]), `Year` (Example values: [sophomore, junior, freshman]), `Home Town` (Example values: [los angeles, california, baton rouge, placentia, ca]), `High School` (Example values: [dorsey, catholic university, el dorado])]\n", + "ori_query": "select count(`year`) from `1-12032893-1` where `home town` = 'baton rouge, la'", + "amb_query": "SELECT COUNT(\"year\") FROM \"1-12032893-1\" WHERE home town IN ('baton rouge, la', 'baton rouge')" + }, + { + "db_id": "1-1206583-2", + "question": "What is the builder launched 2 may 1944?", + "evidence": "", + "schema_text_wo_content": "Table 1-1206583-2, columns = [Name, Pennant, Builder, Laid Down, Launched, Commissioned, Fate]\n", + "schema_text_with_content": "Table 1-1206583-2, columns = [`Name` (Example values: [chaplet, chequers *, chieftain]), `Pennant` (Example values: [r52, r61, r36]), `Builder` (Example values: [thornycroft , woolston, scotts, greenock, alex. stephen , linthouse]), `Laid Down` (Example values: [29 april 1943, 4 may 1943, 27 june 1943]), `Launched` (Example values: [18 july 1944, 30th october 1944, 26 february 1945]), `Commissioned` (Example values: [24 august 1945, 28 september 1945, 7 march 1946]), `Fate` (Example values: [sold for scrapping 1965, sold for scrapping 1966, sold for scrapping 1961])]\n", + "ori_query": "select `builder` from `1-1206583-2` where `launched` = '2 may 1944'", + "amb_query": "SELECT \"builder\" FROM \"1-1206583-2\" WHERE launched IN ('2 may 1944', 'may 2nd, 1944')" + }, + { + "db_id": "1-1206583-2", + "question": "What is the builder launched 30 october 1944?", + "evidence": "", + "schema_text_wo_content": "Table 1-1206583-2, columns = [Name, Pennant, Builder, Laid Down, Launched, Commissioned, Fate]\n", + "schema_text_with_content": "Table 1-1206583-2, columns = [`Name` (Example values: [chaplet, chequers *, chieftain]), `Pennant` (Example values: [r52, r61, r36]), `Builder` (Example values: [thornycroft , woolston, scotts, greenock, alex. stephen , linthouse]), `Laid Down` (Example values: [29 april 1943, 4 may 1943, 27 june 1943]), `Launched` (Example values: [18 july 1944, 30th october 1944, 26 february 1945]), `Commissioned` (Example values: [24 august 1945, 28 september 1945, 7 march 1946]), `Fate` (Example values: [sold for scrapping 1965, sold for scrapping 1966, sold for scrapping 1961])]\n", + "ori_query": "select `builder` from `1-1206583-2` where `launched` = '30 october 1944'", + "amb_query": "SELECT \"builder\" FROM \"1-1206583-2\" WHERE launched IN ('30th october 1944', '30 october 1944')" + }, + { + "db_id": "1-1220125-4", + "question": "What is the name for 29 january 1944?", + "evidence": "", + "schema_text_wo_content": "Table 1-1220125-4, columns = [Name, Pennant, Builder, Laid Down, Launched, Commissioned, Fate]\n", + "schema_text_with_content": "Table 1-1220125-4, columns = [`Name` (Example values: [amethyst, hind, alacrity]), `Pennant` (Example values: [u16, u39, u60]), `Builder` (Example values: [alex. stephen , linthouse, denny, dunbarton, chatham dockyard]), `Laid Down` (Example values: [25 march 1942, 31 august 1942, 4 may 1943]), `Launched` (Example values: [7 may 1943, 30/09/1943, 1 september 1944]), `Commissioned` (Example values: [2 november 1943, 11 april 1944, 13 april 1945]), `Fate` (Example values: [broken up 18 january 1957., broken up 10 december 1958., broken up 15 september 1956.])]\n", + "ori_query": "select `name` from `1-1220125-4` where `launched` = '29 january 1944'", + "amb_query": "SELECT \"name\" FROM \"1-1220125-4\" WHERE launched IN ('29 january 1944', '1/29/1944')" + }, + { + "db_id": "1-1220125-4", + "question": "What is the name for 30 september 1943?", + "evidence": "", + "schema_text_wo_content": "Table 1-1220125-4, columns = [Name, Pennant, Builder, Laid Down, Launched, Commissioned, Fate]\n", + "schema_text_with_content": "Table 1-1220125-4, columns = [`Name` (Example values: [amethyst, hind, alacrity]), `Pennant` (Example values: [u16, u39, u60]), `Builder` (Example values: [alex. stephen , linthouse, denny, dunbarton, chatham dockyard]), `Laid Down` (Example values: [25 march 1942, 31 august 1942, 4 may 1943]), `Launched` (Example values: [7 may 1943, 30/09/1943, 1 september 1944]), `Commissioned` (Example values: [2 november 1943, 11 april 1944, 13 april 1945]), `Fate` (Example values: [broken up 18 january 1957., broken up 10 december 1958., broken up 15 september 1956.])]\n", + "ori_query": "select `name` from `1-1220125-4` where `launched` = '30 september 1943'", + "amb_query": "SELECT \"name\" FROM \"1-1220125-4\" WHERE launched IN ('30 september 1943', '30/09/1943')" + }, + { + "db_id": "1-12547903-3", + "question": "What was the branding in cotabato?", + "evidence": "", + "schema_text_wo_content": "Table 1-12547903-3, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-12547903-3, columns = [`Branding` (Example values: [sonshine radio*, sonshine radio laoag*, sonshine radio dagupan]), `Callsign` (Example values: [dzar, dwar, dzrd]), `Frequency` (Example values: [1026khz, 819khz, 981khz]), `Power (kW)` (Example values: [50kw, 5kw, 10kw]), `Location` (Example values: [metro manila, philippines, laoag, dagupan, pangasinan])]\n", + "ori_query": "select `branding` from `1-12547903-3` where `location` = 'cotabato'", + "amb_query": "SELECT \"branding\" FROM \"1-12547903-3\" WHERE location IN ('cotabato region', 'cotabato')" + }, + { + "db_id": "1-12547903-3", + "question": "What was the branding in santiago, isabela?", + "evidence": "", + "schema_text_wo_content": "Table 1-12547903-3, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-12547903-3, columns = [`Branding` (Example values: [sonshine radio*, sonshine radio laoag*, sonshine radio dagupan]), `Callsign` (Example values: [dzar, dwar, dzrd]), `Frequency` (Example values: [1026khz, 819khz, 981khz]), `Power (kW)` (Example values: [50kw, 5kw, 10kw]), `Location` (Example values: [metro manila, philippines, laoag, dagupan, pangasinan])]\n", + "ori_query": "select `branding` from `1-12547903-3` where `location` = 'santiago, isabela'", + "amb_query": "SELECT \"branding\" FROM \"1-12547903-3\" WHERE location IN ('santiago, isabela', 'santiago, philippines')" + }, + { + "db_id": "1-12547903-3", + "question": "What was the callsign in metro manila?", + "evidence": "", + "schema_text_wo_content": "Table 1-12547903-3, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-12547903-3, columns = [`Branding` (Example values: [sonshine radio*, sonshine radio laoag*, sonshine radio dagupan]), `Callsign` (Example values: [dzar, dwar, dzrd]), `Frequency` (Example values: [1026khz, 819khz, 981khz]), `Power (kW)` (Example values: [50kw, 5kw, 10kw]), `Location` (Example values: [metro manila, philippines, laoag, dagupan, pangasinan])]\n", + "ori_query": "select `callsign` from `1-12547903-3` where `location` = 'metro manila'", + "amb_query": "SELECT \"callsign\" FROM \"1-12547903-3\" WHERE location IN ('metro manila', 'metro manila, philippines')" + }, + { + "db_id": "1-12547903-3", + "question": "What was the callsign in davao?", + "evidence": "", + "schema_text_wo_content": "Table 1-12547903-3, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-12547903-3, columns = [`Branding` (Example values: [sonshine radio*, sonshine radio laoag*, sonshine radio dagupan]), `Callsign` (Example values: [dzar, dwar, dzrd]), `Frequency` (Example values: [1026khz, 819khz, 981khz]), `Power (kW)` (Example values: [50kw, 5kw, 10kw]), `Location` (Example values: [metro manila, philippines, laoag, dagupan, pangasinan])]\n", + "ori_query": "select `callsign` from `1-12547903-3` where `location` = 'davao'", + "amb_query": "SELECT \"callsign\" FROM \"1-12547903-3\" WHERE location IN ('davao', 'davao metropolitan area')" + }, + { + "db_id": "1-12547903-3", + "question": "What was the branding in Dagupan?", + "evidence": "", + "schema_text_wo_content": "Table 1-12547903-3, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-12547903-3, columns = [`Branding` (Example values: [sonshine radio*, sonshine radio laoag*, sonshine radio dagupan]), `Callsign` (Example values: [dzar, dwar, dzrd]), `Frequency` (Example values: [1026khz, 819khz, 981khz]), `Power (kW)` (Example values: [50kw, 5kw, 10kw]), `Location` (Example values: [metro manila, philippines, laoag, dagupan, pangasinan])]\n", + "ori_query": "select `branding` from `1-12547903-3` where `location` = 'dagupan'", + "amb_query": "SELECT \"branding\" FROM \"1-12547903-3\" WHERE location IN ('dagupan', 'dagupan, pangasinan')" + }, + { + "db_id": "1-12547903-3", + "question": "What was the callsign in Zamboanga?", + "evidence": "", + "schema_text_wo_content": "Table 1-12547903-3, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-12547903-3, columns = [`Branding` (Example values: [sonshine radio*, sonshine radio laoag*, sonshine radio dagupan]), `Callsign` (Example values: [dzar, dwar, dzrd]), `Frequency` (Example values: [1026khz, 819khz, 981khz]), `Power (kW)` (Example values: [50kw, 5kw, 10kw]), `Location` (Example values: [metro manila, philippines, laoag, dagupan, pangasinan])]\n", + "ori_query": "select `callsign` from `1-12547903-3` where `location` = 'zamboanga'", + "amb_query": "SELECT \"callsign\" FROM \"1-12547903-3\" WHERE location IN ('zamboanga', 'zamboanga, philippines')" + }, + { + "db_id": "1-13762472-4", + "question": "what's the record with high points being dwyane wade (27) and location attendance being staples center", + "evidence": "", + "schema_text_wo_content": "Table 1-13762472-4, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-13762472-4, columns = [`Game` (Example values: [16.0, 17.0, 18.0]), `Date` (Example values: [december 2, december 3, december 5]), `Team` (Example values: [@ sacramento, @ denver, @ l.a. clippers]), `Score` (Example values: [w 98–87 (ot), l 99–101 (ot), l 89–99 (ot)]), `High points` (Example values: [dwyane wade (27), dwyane wade (32), dwyane wade (29)]), `High rebounds` (Example values: [udonis haslem (8), james posey (10), alonzo mourning (12)]), `High assists` (Example values: [jason williams (8), dwyane wade (6), jason williams (9)]), `Location Attendance` (Example values: [arco arena venue, pepsi center, staples center venue]), `Record` (Example values: [10-6, 10-7, 10-8])]\n", + "ori_query": "select `record` from `1-13762472-4` where `high points` = 'dwyane wade (27)' and `location attendance` = 'staples center'", + "amb_query": "SELECT \"record\" FROM \"1-13762472-4\" WHERE \"high points\" = 'dwyane wade (27)' AND location attendance IN ('staples center venue', 'staples center')" + }, + { + "db_id": "1-13762472-4", + "question": "what's the record with high points being dwyane wade (27) and location attendance being arco arena", + "evidence": "", + "schema_text_wo_content": "Table 1-13762472-4, columns = [Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record]\n", + "schema_text_with_content": "Table 1-13762472-4, columns = [`Game` (Example values: [16.0, 17.0, 18.0]), `Date` (Example values: [december 2, december 3, december 5]), `Team` (Example values: [@ sacramento, @ denver, @ l.a. clippers]), `Score` (Example values: [w 98–87 (ot), l 99–101 (ot), l 89–99 (ot)]), `High points` (Example values: [dwyane wade (27), dwyane wade (32), dwyane wade (29)]), `High rebounds` (Example values: [udonis haslem (8), james posey (10), alonzo mourning (12)]), `High assists` (Example values: [jason williams (8), dwyane wade (6), jason williams (9)]), `Location Attendance` (Example values: [arco arena venue, pepsi center, staples center venue]), `Record` (Example values: [10-6, 10-7, 10-8])]\n", + "ori_query": "select `record` from `1-13762472-4` where `high points` = 'dwyane wade (27)' and `location attendance` = 'arco arena'", + "amb_query": "SELECT \"record\" FROM \"1-13762472-4\" WHERE \"high points\" = 'dwyane wade (27)' AND location attendance IN ('arco arena venue', 'arco arena')" + }, + { + "db_id": "1-140297-1", + "question": "What is the population density in the beaconsfield area?", + "evidence": "", + "schema_text_wo_content": "Table 1-140297-1, columns = [Local Government Area, Principal town, Land Area (km²), Population 2011 census, Density, Region]\n", + "schema_text_with_content": "Table 1-140297-1, columns = [`Local Government Area` (Example values: [break o'day, brighton, central coast]), `Principal town` (Example values: [st helens, brighton district, ulverstone]), `Land Area (km²)` (Example values: [3,525.8, 171.3, 933.1]), `Population 2011 census` (Example values: [6194.0, 15460.0, 21355.0]), `Density` (Example values: [1.8, 90.3, 22.9]), `Region` (Example values: [north-east, hobart, north-west and west coast])]\n", + "ori_query": "select `density` from `1-140297-1` where `principal town` = 'beaconsfield'", + "amb_query": "SELECT \"density\" FROM \"1-140297-1\" WHERE principal town IN ('beaconsfield region', 'beaconsfield')" + }, + { + "db_id": "1-140297-1", + "question": "What is the population density in the launceston area?", + "evidence": "", + "schema_text_wo_content": "Table 1-140297-1, columns = [Local Government Area, Principal town, Land Area (km²), Population 2011 census, Density, Region]\n", + "schema_text_with_content": "Table 1-140297-1, columns = [`Local Government Area` (Example values: [break o'day, brighton, central coast]), `Principal town` (Example values: [st helens, brighton district, ulverstone]), `Land Area (km²)` (Example values: [3,525.8, 171.3, 933.1]), `Population 2011 census` (Example values: [6194.0, 15460.0, 21355.0]), `Density` (Example values: [1.8, 90.3, 22.9]), `Region` (Example values: [north-east, hobart, north-west and west coast])]\n", + "ori_query": "select `density` from `1-140297-1` where `principal town` = 'launceston'", + "amb_query": "SELECT \"density\" FROM \"1-140297-1\" WHERE principal town IN ('launceston, australia', 'launceston')" + }, + { + "db_id": "1-140297-1", + "question": "What is the population density in the hamilton area?", + "evidence": "", + "schema_text_wo_content": "Table 1-140297-1, columns = [Local Government Area, Principal town, Land Area (km²), Population 2011 census, Density, Region]\n", + "schema_text_with_content": "Table 1-140297-1, columns = [`Local Government Area` (Example values: [break o'day, brighton, central coast]), `Principal town` (Example values: [st helens, brighton district, ulverstone]), `Land Area (km²)` (Example values: [3,525.8, 171.3, 933.1]), `Population 2011 census` (Example values: [6194.0, 15460.0, 21355.0]), `Density` (Example values: [1.8, 90.3, 22.9]), `Region` (Example values: [north-east, hobart, north-west and west coast])]\n", + "ori_query": "select `density` from `1-140297-1` where `principal town` = 'hamilton'", + "amb_query": "SELECT \"density\" FROM \"1-140297-1\" WHERE principal town IN ('hamilton town', 'hamilton')" + }, + { + "db_id": "1-140297-1", + "question": "What is the population density in the Brighton area?", + "evidence": "", + "schema_text_wo_content": "Table 1-140297-1, columns = [Local Government Area, Principal town, Land Area (km²), Population 2011 census, Density, Region]\n", + "schema_text_with_content": "Table 1-140297-1, columns = [`Local Government Area` (Example values: [break o'day, brighton, central coast]), `Principal town` (Example values: [st helens, brighton district, ulverstone]), `Land Area (km²)` (Example values: [3,525.8, 171.3, 933.1]), `Population 2011 census` (Example values: [6194.0, 15460.0, 21355.0]), `Density` (Example values: [1.8, 90.3, 22.9]), `Region` (Example values: [north-east, hobart, north-west and west coast])]\n", + "ori_query": "select `density` from `1-140297-1` where `principal town` = 'brighton'", + "amb_query": "SELECT \"density\" FROM \"1-140297-1\" WHERE principal town IN ('brighton district', 'brighton')" + }, + { + "db_id": "1-14342367-13", + "question": "What is the previous experience of the player from tingley, iowa?", + "evidence": "", + "schema_text_wo_content": "Table 1-14342367-13, columns = [Player, Position, Games started, Hometown, Height, Weight, Class, Previous experience]\n", + "schema_text_with_content": "Table 1-14342367-13, columns = [`Player` (Example values: [charles b. carter, william c. \"king\" cole, herbert s. graver]), `Position` (Example values: [right guard, right end left tackle, left end quarterback fullback left halfback]), `Games started` (Example values: [10, 4 3, 2 1 1 1]), `Hometown` (Example values: [auburn, maine, chicago, illinois, redding, california, united states]), `Height` (Example values: [6' 0\", 5' 10½\", 5' 8¼\"]), `Weight` (Example values: [231.0, 178.0, 162.0]), `Class` (Example values: [law '05, eng '04, law '04]), `Previous experience` (Example values: [brown varsity (2 years), marietta college (2 years), varsity (1 year)])]\n", + "ori_query": "select `previous experience` from `1-14342367-13` where `hometown` = 'tingley, iowa'", + "amb_query": "SELECT \"previous experience\" FROM \"1-14342367-13\" WHERE hometown IN ('tingley, iowa, usa', 'tingley, iowa')" + }, + { + "db_id": "1-14342367-13", + "question": "What is the previous experience of the player from redding, california?", + "evidence": "", + "schema_text_wo_content": "Table 1-14342367-13, columns = [Player, Position, Games started, Hometown, Height, Weight, Class, Previous experience]\n", + "schema_text_with_content": "Table 1-14342367-13, columns = [`Player` (Example values: [charles b. carter, william c. \"king\" cole, herbert s. graver]), `Position` (Example values: [right guard, right end left tackle, left end quarterback fullback left halfback]), `Games started` (Example values: [10, 4 3, 2 1 1 1]), `Hometown` (Example values: [auburn, maine, chicago, illinois, redding, california, united states]), `Height` (Example values: [6' 0\", 5' 10½\", 5' 8¼\"]), `Weight` (Example values: [231.0, 178.0, 162.0]), `Class` (Example values: [law '05, eng '04, law '04]), `Previous experience` (Example values: [brown varsity (2 years), marietta college (2 years), varsity (1 year)])]\n", + "ori_query": "select `previous experience` from `1-14342367-13` where `hometown` = 'redding, california'", + "amb_query": "SELECT \"previous experience\" FROM \"1-14342367-13\" WHERE hometown IN ('redding, california', 'redding, california, united states')" + }, + { + "db_id": "1-14342367-13", + "question": "How many players are from youngstown, ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-14342367-13, columns = [Player, Position, Games started, Hometown, Height, Weight, Class, Previous experience]\n", + "schema_text_with_content": "Table 1-14342367-13, columns = [`Player` (Example values: [charles b. carter, william c. \"king\" cole, herbert s. graver]), `Position` (Example values: [right guard, right end left tackle, left end quarterback fullback left halfback]), `Games started` (Example values: [10, 4 3, 2 1 1 1]), `Hometown` (Example values: [auburn, maine, chicago, illinois, redding, california, united states]), `Height` (Example values: [6' 0\", 5' 10½\", 5' 8¼\"]), `Weight` (Example values: [231.0, 178.0, 162.0]), `Class` (Example values: [law '05, eng '04, law '04]), `Previous experience` (Example values: [brown varsity (2 years), marietta college (2 years), varsity (1 year)])]\n", + "ori_query": "select count(`player`) from `1-14342367-13` where `hometown` = 'youngstown, ohio'", + "amb_query": "SELECT COUNT(\"player\") FROM \"1-14342367-13\" WHERE hometown IN ('youngstown, ohio', 'youngstown, ohio, united states')" + }, + { + "db_id": "1-14342367-13", + "question": "What is the previous experience of the player from East Jordan, Michigan?", + "evidence": "", + "schema_text_wo_content": "Table 1-14342367-13, columns = [Player, Position, Games started, Hometown, Height, Weight, Class, Previous experience]\n", + "schema_text_with_content": "Table 1-14342367-13, columns = [`Player` (Example values: [charles b. carter, william c. \"king\" cole, herbert s. graver]), `Position` (Example values: [right guard, right end left tackle, left end quarterback fullback left halfback]), `Games started` (Example values: [10, 4 3, 2 1 1 1]), `Hometown` (Example values: [auburn, maine, chicago, illinois, redding, california, united states]), `Height` (Example values: [6' 0\", 5' 10½\", 5' 8¼\"]), `Weight` (Example values: [231.0, 178.0, 162.0]), `Class` (Example values: [law '05, eng '04, law '04]), `Previous experience` (Example values: [brown varsity (2 years), marietta college (2 years), varsity (1 year)])]\n", + "ori_query": "select `previous experience` from `1-14342367-13` where `hometown` = 'east jordan, michigan'", + "amb_query": "SELECT \"previous experience\" FROM \"1-14342367-13\" WHERE hometown IN ('east jordan, michigan', 'city of east jordan, michigan')" + }, + { + "db_id": "1-14342367-13", + "question": "How many players are from Sioux City, Iowa?", + "evidence": "", + "schema_text_wo_content": "Table 1-14342367-13, columns = [Player, Position, Games started, Hometown, Height, Weight, Class, Previous experience]\n", + "schema_text_with_content": "Table 1-14342367-13, columns = [`Player` (Example values: [charles b. carter, william c. \"king\" cole, herbert s. graver]), `Position` (Example values: [right guard, right end left tackle, left end quarterback fullback left halfback]), `Games started` (Example values: [10, 4 3, 2 1 1 1]), `Hometown` (Example values: [auburn, maine, chicago, illinois, redding, california, united states]), `Height` (Example values: [6' 0\", 5' 10½\", 5' 8¼\"]), `Weight` (Example values: [231.0, 178.0, 162.0]), `Class` (Example values: [law '05, eng '04, law '04]), `Previous experience` (Example values: [brown varsity (2 years), marietta college (2 years), varsity (1 year)])]\n", + "ori_query": "select count(`player`) from `1-14342367-13` where `hometown` = 'sioux city, iowa'", + "amb_query": "SELECT COUNT(\"player\") FROM \"1-14342367-13\" WHERE hometown IN ('sioux city, iowa', 'sioux city, ia')" + }, + { + "db_id": "1-16376436-1", + "question": "What college did the running back attend?", + "evidence": "", + "schema_text_wo_content": "Table 1-16376436-1, columns = [Pick #, NFL Team, Player, Position, College]\n", + "schema_text_with_content": "Table 1-16376436-1, columns = [`Pick #` (Example values: [11.0, 38.0, 96.0]), `NFL Team` (Example values: [los angeles raiders]), `Player` (Example values: [anthony smith, aaron wallace, torin dorn]), `Position` (Example values: [defensive end, cornerback, defensive back player]), `College` (Example values: [arizona, texas a&m, north carolina])]\n", + "ori_query": "select `college` from `1-16376436-1` where `position` = 'running back'", + "amb_query": "SELECT \"college\" FROM \"1-16376436-1\" WHERE position IN ('running back', 'backfield runner')" + }, + { + "db_id": "1-16376436-1", + "question": "What college did the defensive back attend?", + "evidence": "", + "schema_text_wo_content": "Table 1-16376436-1, columns = [Pick #, NFL Team, Player, Position, College]\n", + "schema_text_with_content": "Table 1-16376436-1, columns = [`Pick #` (Example values: [11.0, 38.0, 96.0]), `NFL Team` (Example values: [los angeles raiders]), `Player` (Example values: [anthony smith, aaron wallace, torin dorn]), `Position` (Example values: [defensive end, cornerback, defensive back player]), `College` (Example values: [arizona, texas a&m, north carolina])]\n", + "ori_query": "select `college` from `1-16376436-1` where `position` = 'defensive back'", + "amb_query": "SELECT \"college\" FROM \"1-16376436-1\" WHERE position IN ('defensive back', 'defensive back player')" + }, + { + "db_id": "1-16729063-1", + "question": "How many draft picks are there at the tackle position?", + "evidence": "", + "schema_text_wo_content": "Table 1-16729063-1, columns = [Pick #, NFL Team, Player, Position, College]\n", + "schema_text_with_content": "Table 1-16729063-1, columns = [`Pick #` (Example values: [46.0, 78.0, 89.0]), `NFL Team` (Example values: [denver broncos]), `Player` (Example values: [andre townsend, tony lilly, randy robbins]), `Position` (Example values: [defensive end player, defensive back, lb]), `College` (Example values: [mississippi, florida, arizona])]\n", + "ori_query": "select count(`pick #`) from `1-16729063-1` where `position` = 'tackle'", + "amb_query": "SELECT COUNT(\"pick #\") FROM \"1-16729063-1\" WHERE position IN ('tackle position', 'tackle')" + }, + { + "db_id": "1-16729063-1", + "question": "How many draft picks are there at the tight end position?", + "evidence": "", + "schema_text_wo_content": "Table 1-16729063-1, columns = [Pick #, NFL Team, Player, Position, College]\n", + "schema_text_with_content": "Table 1-16729063-1, columns = [`Pick #` (Example values: [46.0, 78.0, 89.0]), `NFL Team` (Example values: [denver broncos]), `Player` (Example values: [andre townsend, tony lilly, randy robbins]), `Position` (Example values: [defensive end player, defensive back, lb]), `College` (Example values: [mississippi, florida, arizona])]\n", + "ori_query": "select count(`pick #`) from `1-16729063-1` where `position` = 'tight end'", + "amb_query": "SELECT COUNT(\"pick #\") FROM \"1-16729063-1\" WHERE position IN ('tight end position', 'tight end')" + }, + { + "db_id": "1-16729063-1", + "question": "How many draft picks are there at the Defensive End position?", + "evidence": "", + "schema_text_wo_content": "Table 1-16729063-1, columns = [Pick #, NFL Team, Player, Position, College]\n", + "schema_text_with_content": "Table 1-16729063-1, columns = [`Pick #` (Example values: [46.0, 78.0, 89.0]), `NFL Team` (Example values: [denver broncos]), `Player` (Example values: [andre townsend, tony lilly, randy robbins]), `Position` (Example values: [defensive end player, defensive back, lb]), `College` (Example values: [mississippi, florida, arizona])]\n", + "ori_query": "select count(`pick #`) from `1-16729063-1` where `position` = 'defensive end'", + "amb_query": "SELECT COUNT(\"pick #\") FROM \"1-16729063-1\" WHERE position IN ('defensive end player', 'defensive end')" + }, + { + "db_id": "1-16729063-1", + "question": "How many draft picks are there at the linebacker position?", + "evidence": "", + "schema_text_wo_content": "Table 1-16729063-1, columns = [Pick #, NFL Team, Player, Position, College]\n", + "schema_text_with_content": "Table 1-16729063-1, columns = [`Pick #` (Example values: [46.0, 78.0, 89.0]), `NFL Team` (Example values: [denver broncos]), `Player` (Example values: [andre townsend, tony lilly, randy robbins]), `Position` (Example values: [defensive end player, defensive back, lb]), `College` (Example values: [mississippi, florida, arizona])]\n", + "ori_query": "select count(`pick #`) from `1-16729063-1` where `position` = 'linebacker'", + "amb_query": "SELECT COUNT(\"pick #\") FROM \"1-16729063-1\" WHERE position IN ('linebacker', 'lb')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in frufällan?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'frufällan'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('frufällan', 'frufällan urban area')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in hindås?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'hindås'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('hindås', 'hindås urban area')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in drag?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'drag'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('drag', 'drag area')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in gunsta?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'gunsta'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('gunsta', 'gunsta area')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in delary?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'delary'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('delary locality', 'delary')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in örsundsbro?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'örsundsbro'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('örsundsbro', 'the locality of örsundsbro')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in bullmark?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'bullmark'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('bullmark', 'bullmark area')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is kåge?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'kåge'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('kåge district', 'kåge')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is mjölby?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'mjölby'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('mjölby', 'mjölby, sweden')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is vinbergs kyrkby?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'vinbergs kyrkby'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('vinbergs kyrkby area', 'vinbergs kyrkby')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is duved?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'duved'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('duved', 'duved locality')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is klässbol?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'klässbol'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('klässbol area', 'klässbol')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is sköllersta?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'sköllersta'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('sköllersta', 'sköllersta urban area')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is mjällom?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'mjällom'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('urban area of mjällom', 'mjällom')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectars of land is in Kaxholmen?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'kaxholmen'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('the locality of kaxholmen', 'kaxholmen')" + }, + { + "db_id": "1-16796625-1", + "question": "How many hectares of land area is Landsbro?", + "evidence": "", + "schema_text_wo_content": "Table 1-16796625-1, columns = [Urban area (locality), Municipality, Population, Land area (hectares), Density (inh./km²), Code]\n", + "schema_text_with_content": "Table 1-16796625-1, columns = [`Urban area (locality)` (Example values: [abbekås, abborrberget, agunnaryd]), `Municipality` (Example values: [skurup municipality, strängnäs municipality, ljungby municipality]), `Population` (Example values: [729.0, 2141.0, 220.0]), `Land area (hectares)` (Example values: [90.60, 137.56, 40.43]), `Density (inh./km²)` (Example values: [804.64, 1556.41, 544.15]), `Code` (Example values: [3300.0, 699.0, 1802.0])]\n", + "ori_query": "select `land area (hectares)` from `1-16796625-1` where `urban area (locality)` = 'landsbro'", + "amb_query": "SELECT \"land area (hectares)\" FROM \"1-16796625-1\" WHERE urban area (locality) IN ('landsbro, sweden', 'landsbro')" + }, + { + "db_id": "1-1714685-1", + "question": "When 10 november 2002 to 29 december 2002 was aired in japan 2 how many titles were there?", + "evidence": "", + "schema_text_wo_content": "Table 1-1714685-1, columns = [Series, Title, Broadcasts (TV) 1, Episodes (TV+extra) 2, Directors, Aired in Japan 3, US Release Date]\n", + "schema_text_with_content": "Table 1-1714685-1, columns = [`Series` (Example values: [1, 2, 3 4]), `Title` (Example values: [galaxy angel, galaxy angel z, galaxy angel a]), `Broadcasts (TV) 1` (Example values: [24.0, 9.0, 13.0]), `Episodes (TV+extra) 2` (Example values: [24+2, 18+1, 26]), `Directors` (Example values: [morio asaka , yoshimitsu ohashi, morio asaka, yoshimitsu ohashi, shigehito takayanagi]), `Aired in Japan 3` (Example values: [april 7, 2001 to september 29, 2001, 3 february 2002 to 31 march 2002, 10/11/2002 to 29/12/2002]), `US Release Date` (Example values: [27 june 2006, 25 july 2006, 27 december 2006])]\n", + "ori_query": "select count(`title`) from `1-1714685-1` where `aired in japan 3` = '10 november 2002 to 29 december 2002'", + "amb_query": "SELECT COUNT(\"title\") FROM \"1-1714685-1\" WHERE aired in japan 3 IN ('10 november 2002 to 29 december 2002', '10/11/2002 to 29/12/2002')" + }, + { + "db_id": "1-1714685-1", + "question": "When 7 april 2001 to 29 september 2001 was aired in japan 2 how many titles were there?", + "evidence": "", + "schema_text_wo_content": "Table 1-1714685-1, columns = [Series, Title, Broadcasts (TV) 1, Episodes (TV+extra) 2, Directors, Aired in Japan 3, US Release Date]\n", + "schema_text_with_content": "Table 1-1714685-1, columns = [`Series` (Example values: [1, 2, 3 4]), `Title` (Example values: [galaxy angel, galaxy angel z, galaxy angel a]), `Broadcasts (TV) 1` (Example values: [24.0, 9.0, 13.0]), `Episodes (TV+extra) 2` (Example values: [24+2, 18+1, 26]), `Directors` (Example values: [morio asaka , yoshimitsu ohashi, morio asaka, yoshimitsu ohashi, shigehito takayanagi]), `Aired in Japan 3` (Example values: [april 7, 2001 to september 29, 2001, 3 february 2002 to 31 march 2002, 10/11/2002 to 29/12/2002]), `US Release Date` (Example values: [27 june 2006, 25 july 2006, 27 december 2006])]\n", + "ori_query": "select count(`title`) from `1-1714685-1` where `aired in japan 3` = '7 april 2001 to 29 september 2001'", + "amb_query": "SELECT COUNT(\"title\") FROM \"1-1714685-1\" WHERE aired in japan 3 IN ('april 7, 2001 to september 29, 2001', '7 april 2001 to 29 september 2001')" + }, + { + "db_id": "1-19215259-1", + "question": "What is the power at the san pablo station?", + "evidence": "", + "schema_text_wo_content": "Table 1-19215259-1, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-19215259-1, columns = [`Branding` (Example values: [92.3 news fm, 102.3 news fm, 88.7 news fm]), `Callsign` (Example values: [dwfm, dzyb-fm, dwyc-fm]), `Frequency` (Example values: [92.3mhz, 102.3mhz, 88.7mhz]), `Power (kW)` (Example values: [25kw, 10kw, 5kw]), `Location` (Example values: [national capital region, baguio, cabanatuan city, nueva ecija])]\n", + "ori_query": "select `power (kw)` from `1-19215259-1` where `location` = 'san pablo'", + "amb_query": "SELECT \"power (kw)\" FROM \"1-19215259-1\" WHERE location IN ('san pablo, philippines', 'san pablo')" + }, + { + "db_id": "1-19215259-1", + "question": "What is the power at the cebu station?", + "evidence": "", + "schema_text_wo_content": "Table 1-19215259-1, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-19215259-1, columns = [`Branding` (Example values: [92.3 news fm, 102.3 news fm, 88.7 news fm]), `Callsign` (Example values: [dwfm, dzyb-fm, dwyc-fm]), `Frequency` (Example values: [92.3mhz, 102.3mhz, 88.7mhz]), `Power (kW)` (Example values: [25kw, 10kw, 5kw]), `Location` (Example values: [national capital region, baguio, cabanatuan city, nueva ecija])]\n", + "ori_query": "select `power (kw)` from `1-19215259-1` where `location` = 'cebu'", + "amb_query": "SELECT \"power (kw)\" FROM \"1-19215259-1\" WHERE location IN ('cebu', 'cebu province')" + }, + { + "db_id": "1-19215259-1", + "question": "What is the brand in Metro Manila?", + "evidence": "", + "schema_text_wo_content": "Table 1-19215259-1, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-19215259-1, columns = [`Branding` (Example values: [92.3 news fm, 102.3 news fm, 88.7 news fm]), `Callsign` (Example values: [dwfm, dzyb-fm, dwyc-fm]), `Frequency` (Example values: [92.3mhz, 102.3mhz, 88.7mhz]), `Power (kW)` (Example values: [25kw, 10kw, 5kw]), `Location` (Example values: [national capital region, baguio, cabanatuan city, nueva ecija])]\n", + "ori_query": "select `branding` from `1-19215259-1` where `location` = 'metro manila'", + "amb_query": "SELECT \"branding\" FROM \"1-19215259-1\" WHERE location IN ('metro manila', 'national capital region')" + }, + { + "db_id": "1-19215259-1", + "question": "What is the brand in Cabanatuan?", + "evidence": "", + "schema_text_wo_content": "Table 1-19215259-1, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-19215259-1, columns = [`Branding` (Example values: [92.3 news fm, 102.3 news fm, 88.7 news fm]), `Callsign` (Example values: [dwfm, dzyb-fm, dwyc-fm]), `Frequency` (Example values: [92.3mhz, 102.3mhz, 88.7mhz]), `Power (kW)` (Example values: [25kw, 10kw, 5kw]), `Location` (Example values: [national capital region, baguio, cabanatuan city, nueva ecija])]\n", + "ori_query": "select `branding` from `1-19215259-1` where `location` = 'cabanatuan'", + "amb_query": "SELECT \"branding\" FROM \"1-19215259-1\" WHERE location IN ('cabanatuan', 'cabanatuan city, nueva ecija')" + }, + { + "db_id": "1-18277458-2", + "question": "What venue is in cuyahoga falls, ohio?", + "evidence": "", + "schema_text_wo_content": "Table 1-18277458-2, columns = [Date(s), Venue, City, state, Ticket price(s), Ticket sold / available, Ticket grossing]\n", + "schema_text_with_content": "Table 1-18277458-2, columns = [`Date(s)` (Example values: [july 4, 1987, july 8, 1987, july 9, 1987]), `Venue` (Example values: [tampa stadium, olympic center complex arena, providence civic center]), `City, state` (Example values: [tampa, florida, lake placid, new york, providence, rhode island, usa]), `Ticket price(s)` (Example values: [$19 / $17.50, $16.50, $18.50 / $16.50]), `Ticket sold / available` (Example values: [49,659 / 55,000 (90.3%), 8,000 / 8,000 (100%), 13,342 / 13,342 (100%)]), `Ticket grossing` (Example values: [$883,551, $131,291, $240,546])]\n", + "ori_query": "select `venue` from `1-18277458-2` where `city, state` = 'cuyahoga falls, ohio'", + "amb_query": "SELECT \"venue\" FROM \"1-18277458-2\" WHERE city, state IN ('cuyahoga falls, summit county, ohio', 'cuyahoga falls, ohio')" + }, + { + "db_id": "1-18277458-2", + "question": "What venue is in providence, rhode island?", + "evidence": "", + "schema_text_wo_content": "Table 1-18277458-2, columns = [Date(s), Venue, City, state, Ticket price(s), Ticket sold / available, Ticket grossing]\n", + "schema_text_with_content": "Table 1-18277458-2, columns = [`Date(s)` (Example values: [july 4, 1987, july 8, 1987, july 9, 1987]), `Venue` (Example values: [tampa stadium, olympic center complex arena, providence civic center]), `City, state` (Example values: [tampa, florida, lake placid, new york, providence, rhode island, usa]), `Ticket price(s)` (Example values: [$19 / $17.50, $16.50, $18.50 / $16.50]), `Ticket sold / available` (Example values: [49,659 / 55,000 (90.3%), 8,000 / 8,000 (100%), 13,342 / 13,342 (100%)]), `Ticket grossing` (Example values: [$883,551, $131,291, $240,546])]\n", + "ori_query": "select `venue` from `1-18277458-2` where `city, state` = 'providence, rhode island'", + "amb_query": "SELECT \"venue\" FROM \"1-18277458-2\" WHERE city, state IN ('providence, rhode island', 'providence, rhode island, usa')" + }, + { + "db_id": "1-18277458-2", + "question": "What venue is in denver, colorado?", + "evidence": "", + "schema_text_wo_content": "Table 1-18277458-2, columns = [Date(s), Venue, City, state, Ticket price(s), Ticket sold / available, Ticket grossing]\n", + "schema_text_with_content": "Table 1-18277458-2, columns = [`Date(s)` (Example values: [july 4, 1987, july 8, 1987, july 9, 1987]), `Venue` (Example values: [tampa stadium, olympic center complex arena, providence civic center]), `City, state` (Example values: [tampa, florida, lake placid, new york, providence, rhode island, usa]), `Ticket price(s)` (Example values: [$19 / $17.50, $16.50, $18.50 / $16.50]), `Ticket sold / available` (Example values: [49,659 / 55,000 (90.3%), 8,000 / 8,000 (100%), 13,342 / 13,342 (100%)]), `Ticket grossing` (Example values: [$883,551, $131,291, $240,546])]\n", + "ori_query": "select `venue` from `1-18277458-2` where `city, state` = 'denver, colorado'", + "amb_query": "SELECT \"venue\" FROM \"1-18277458-2\" WHERE city, state IN ('denver, colorado', 'city of denver, colorado')" + }, + { + "db_id": "1-18277458-2", + "question": "What venue is in Wantagh, New York?", + "evidence": "", + "schema_text_wo_content": "Table 1-18277458-2, columns = [Date(s), Venue, City, state, Ticket price(s), Ticket sold / available, Ticket grossing]\n", + "schema_text_with_content": "Table 1-18277458-2, columns = [`Date(s)` (Example values: [july 4, 1987, july 8, 1987, july 9, 1987]), `Venue` (Example values: [tampa stadium, olympic center complex arena, providence civic center]), `City, state` (Example values: [tampa, florida, lake placid, new york, providence, rhode island, usa]), `Ticket price(s)` (Example values: [$19 / $17.50, $16.50, $18.50 / $16.50]), `Ticket sold / available` (Example values: [49,659 / 55,000 (90.3%), 8,000 / 8,000 (100%), 13,342 / 13,342 (100%)]), `Ticket grossing` (Example values: [$883,551, $131,291, $240,546])]\n", + "ori_query": "select `venue` from `1-18277458-2` where `city, state` = 'wantagh, new york'", + "amb_query": "SELECT \"venue\" FROM \"1-18277458-2\" WHERE city, state IN ('wantagh, new york city', 'wantagh, new york')" + }, + { + "db_id": "2-14176339-2", + "question": "Which Opposition has a City of birmingham?", + "evidence": "", + "schema_text_wo_content": "Table 2-14176339-2, columns = [Opposition, Score, Venue, City, Year]\n", + "schema_text_with_content": "Table 2-14176339-2, columns = [`Opposition` (Example values: [derbyshire, durham, essex]), `Score` (Example values: [589, 562, 686]), `Venue` (Example values: [stanley park, eastwood gardens, county ground]), `City` (Example values: [blackpool, gateshead fell, chelmsford]), `Year` (Example values: [1994.0, 1992.0, 1996.0])]\n", + "ori_query": "select `opposition` from `2-14176339-2` where `city` = 'birmingham'", + "amb_query": "SELECT \"opposition\" FROM \"2-14176339-2\" WHERE city IN ('birmingham', 'birmingham city')" + }, + { + "db_id": "2-14176339-2", + "question": "Which Opposition has a City of leicester?", + "evidence": "", + "schema_text_wo_content": "Table 2-14176339-2, columns = [Opposition, Score, Venue, City, Year]\n", + "schema_text_with_content": "Table 2-14176339-2, columns = [`Opposition` (Example values: [derbyshire, durham, essex]), `Score` (Example values: [589, 562, 686]), `Venue` (Example values: [stanley park, eastwood gardens, county ground]), `City` (Example values: [blackpool, gateshead fell, chelmsford]), `Year` (Example values: [1994.0, 1992.0, 1996.0])]\n", + "ori_query": "select `opposition` from `2-14176339-2` where `city` = 'leicester'", + "amb_query": "SELECT \"opposition\" FROM \"2-14176339-2\" WHERE city IN ('leicester', 'leicester, uk')" + }, + { + "db_id": "2-14176339-2", + "question": "Which Opposition has a City of taunton?", + "evidence": "", + "schema_text_wo_content": "Table 2-14176339-2, columns = [Opposition, Score, Venue, City, Year]\n", + "schema_text_with_content": "Table 2-14176339-2, columns = [`Opposition` (Example values: [derbyshire, durham, essex]), `Score` (Example values: [589, 562, 686]), `Venue` (Example values: [stanley park, eastwood gardens, county ground]), `City` (Example values: [blackpool, gateshead fell, chelmsford]), `Year` (Example values: [1994.0, 1992.0, 1996.0])]\n", + "ori_query": "select `opposition` from `2-14176339-2` where `city` = 'taunton'", + "amb_query": "SELECT \"opposition\" FROM \"2-14176339-2\" WHERE city IN ('taunton, uk', 'taunton')" + }, + { + "db_id": "1-18626383-2", + "question": "When daraga is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'daraga'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('daraga town', 'daraga')" + }, + { + "db_id": "1-18626383-2", + "question": "When saipan is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'saipan'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('saipan', 'saipan, usa')" + }, + { + "db_id": "1-18626383-2", + "question": "When san salvador is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'san salvador'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('san salvador', 'capital of el salvador')" + }, + { + "db_id": "1-18626383-2", + "question": "When tbilisi is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'tbilisi'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('tbilisi, republic of georgia', 'tbilisi')" + }, + { + "db_id": "1-18626383-2", + "question": "When sellebakk is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'sellebakk'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('sellebakk', 'sellebakk, norway')" + }, + { + "db_id": "1-18626383-2", + "question": "When beirut is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'beirut'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('capital of lebanon', 'beirut')" + }, + { + "db_id": "1-18626383-2", + "question": "When taipei is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'taipei'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('taipei', 'taipei, taiwan province')" + }, + { + "db_id": "1-18626383-2", + "question": "When santiago del estero is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'santiago del estero'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('santiago del estero', 'santiago del estero city')" + }, + { + "db_id": "1-18626383-2", + "question": "When johannesburg is the hometown who is the contestant?", + "evidence": "", + "schema_text_wo_content": "Table 1-18626383-2, columns = [Country, Contestant, Age, Height (cm), Height (ft), Hometown]\n", + "schema_text_with_content": "Table 1-18626383-2, columns = [`Country` (Example values: [argentina, aruba, australia]), `Contestant` (Example values: [maría mercedes viaña, christina trejo, kelly louise macguire]), `Age` (Example values: [19.0, 21.0, 23.0]), `Height (cm)` (Example values: [174.0, 175.0, 178.0]), `Height (ft)` (Example values: [5'8.5\", 5'9\", 5'10\"]), `Hometown` (Example values: [santiago del estero city, companashi, sydney])]\n", + "ori_query": "select `contestant` from `1-18626383-2` where `hometown` = 'johannesburg'", + "amb_query": "SELECT \"contestant\" FROM \"1-18626383-2\" WHERE hometown IN ('johannesburg', 'johannesburg, south africa')" + }, + { + "db_id": "1-1969634-1", + "question": "What is the total enrollment for the school in new haven, connecticut?", + "evidence": "", + "schema_text_wo_content": "Table 1-1969634-1, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Division]\n", + "schema_text_with_content": "Table 1-1969634-1, columns = [`Institution` (Example values: [adelphi university, american international college, assumption college]), `Location` (Example values: [garden city, new york state, springfield, massachusetts, worcester, massachusetts]), `Founded` (Example values: [1896.0, 1885.0, 1904.0]), `Type` (Example values: [private, catholic, public]), `Enrollment` (Example values: [8110.0, 3177.0, 2753.0]), `Nickname` (Example values: [panthers, yellow jackets, greyhounds]), `Joined` (Example values: [2009.0, 1980.0, 2000.0]), `Division` (Example values: [southwest, northeast])]\n", + "ori_query": "select `enrollment` from `1-1969634-1` where `location` = 'new haven, connecticut'", + "amb_query": "SELECT \"enrollment\" FROM \"1-1969634-1\" WHERE location IN ('new haven, connecticut', 'new haven, connecticut, usa')" + }, + { + "db_id": "1-1969634-1", + "question": "What is the total enrollment for the school in albany, new york?", + "evidence": "", + "schema_text_wo_content": "Table 1-1969634-1, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Division]\n", + "schema_text_with_content": "Table 1-1969634-1, columns = [`Institution` (Example values: [adelphi university, american international college, assumption college]), `Location` (Example values: [garden city, new york state, springfield, massachusetts, worcester, massachusetts]), `Founded` (Example values: [1896.0, 1885.0, 1904.0]), `Type` (Example values: [private, catholic, public]), `Enrollment` (Example values: [8110.0, 3177.0, 2753.0]), `Nickname` (Example values: [panthers, yellow jackets, greyhounds]), `Joined` (Example values: [2009.0, 1980.0, 2000.0]), `Division` (Example values: [southwest, northeast])]\n", + "ori_query": "select `enrollment` from `1-1969634-1` where `location` = 'albany, new york'", + "amb_query": "SELECT \"enrollment\" FROM \"1-1969634-1\" WHERE location IN ('albany, new york state', 'albany, new york')" + }, + { + "db_id": "1-1969634-1", + "question": "What is the total enrollment for the school in garden city, new york?", + "evidence": "", + "schema_text_wo_content": "Table 1-1969634-1, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Division]\n", + "schema_text_with_content": "Table 1-1969634-1, columns = [`Institution` (Example values: [adelphi university, american international college, assumption college]), `Location` (Example values: [garden city, new york state, springfield, massachusetts, worcester, massachusetts]), `Founded` (Example values: [1896.0, 1885.0, 1904.0]), `Type` (Example values: [private, catholic, public]), `Enrollment` (Example values: [8110.0, 3177.0, 2753.0]), `Nickname` (Example values: [panthers, yellow jackets, greyhounds]), `Joined` (Example values: [2009.0, 1980.0, 2000.0]), `Division` (Example values: [southwest, northeast])]\n", + "ori_query": "select `enrollment` from `1-1969634-1` where `location` = 'garden city, new york'", + "amb_query": "SELECT \"enrollment\" FROM \"1-1969634-1\" WHERE location IN ('garden city, new york', 'garden city, new york state')" + }, + { + "db_id": "1-1973729-1", + "question": "How many nicknames were associated with bristol, rhode island?", + "evidence": "", + "schema_text_wo_content": "Table 1-1973729-1, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined]\n", + "schema_text_with_content": "Table 1-1973729-1, columns = [`Institution` (Example values: [curry college, eastern nazarene college, endicott college]), `Location` (Example values: [milton, massachusetts state, quincy, massachusetts, beverly, massachusetts]), `Founded` (Example values: [1879.0, 1900.0, 1939.0]), `Type` (Example values: [private, private ( nazarene ), private ( evangelical )]), `Enrollment` (Example values: [3182.0, 1063.0, 3198.0]), `Nickname` (Example values: [colonels, lions, gulls]), `Joined` (Example values: [1984.0, 1992.0, 1999.0])]\n", + "ori_query": "select count(`nickname`) from `1-1973729-1` where `location` = 'bristol, rhode island'", + "amb_query": "SELECT COUNT(\"nickname\") FROM \"1-1973729-1\" WHERE location IN ('bristol, rhode island', 'bristol, rhode island state')" + }, + { + "db_id": "1-1973729-1", + "question": "How many nicknames were associated with Milton, Massachusetts?", + "evidence": "", + "schema_text_wo_content": "Table 1-1973729-1, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined]\n", + "schema_text_with_content": "Table 1-1973729-1, columns = [`Institution` (Example values: [curry college, eastern nazarene college, endicott college]), `Location` (Example values: [milton, massachusetts state, quincy, massachusetts, beverly, massachusetts]), `Founded` (Example values: [1879.0, 1900.0, 1939.0]), `Type` (Example values: [private, private ( nazarene ), private ( evangelical )]), `Enrollment` (Example values: [3182.0, 1063.0, 3198.0]), `Nickname` (Example values: [colonels, lions, gulls]), `Joined` (Example values: [1984.0, 1992.0, 1999.0])]\n", + "ori_query": "select count(`nickname`) from `1-1973729-1` where `location` = 'milton, massachusetts'", + "amb_query": "SELECT COUNT(\"nickname\") FROM \"1-1973729-1\" WHERE location IN ('milton, massachusetts state', 'milton, massachusetts')" + }, + { + "db_id": "1-1974443-1", + "question": "What institution is located in madison, wisconsin?", + "evidence": "", + "schema_text_wo_content": "Table 1-1974443-1, columns = [Institution, Location, Nickname, Founded, Type, Enrollment, Joined, Current Conference]\n", + "schema_text_with_content": "Table 1-1974443-1, columns = [`Institution` (Example values: [alverno college, concordia university, dominican university]), `Location` (Example values: [milwaukee, wisconsin, mequon, wisconsin, river forest, illinois]), `Nickname` (Example values: [inferno, falcons, stars]), `Founded` (Example values: [1887.0, 1880.0, 1901.0]), `Type` (Example values: [private/catholic, private/lutheran missouri synod, private/united church of christ]), `Enrollment` (Example values: [1932.0, 1600.0, 3250.0]), `Joined` (Example values: [2004.0, 1982.0, 2005.0]), `Current Conference` (Example values: [northern (nac)])]\n", + "ori_query": "select `institution` from `1-1974443-1` where `location` = 'madison, wisconsin'", + "amb_query": "SELECT \"institution\" FROM \"1-1974443-1\" WHERE location IN ('city of madison, wisconsin', 'madison, wisconsin')" + }, + { + "db_id": "1-1974443-1", + "question": "What institution is located in Watertown, Wisconsin?", + "evidence": "", + "schema_text_wo_content": "Table 1-1974443-1, columns = [Institution, Location, Nickname, Founded, Type, Enrollment, Joined, Current Conference]\n", + "schema_text_with_content": "Table 1-1974443-1, columns = [`Institution` (Example values: [alverno college, concordia university, dominican university]), `Location` (Example values: [milwaukee, wisconsin, mequon, wisconsin, river forest, illinois]), `Nickname` (Example values: [inferno, falcons, stars]), `Founded` (Example values: [1887.0, 1880.0, 1901.0]), `Type` (Example values: [private/catholic, private/lutheran missouri synod, private/united church of christ]), `Enrollment` (Example values: [1932.0, 1600.0, 3250.0]), `Joined` (Example values: [2004.0, 1982.0, 2005.0]), `Current Conference` (Example values: [northern (nac)])]\n", + "ori_query": "select `institution` from `1-1974443-1` where `location` = 'watertown, wisconsin'", + "amb_query": "SELECT \"institution\" FROM \"1-1974443-1\" WHERE location IN ('city of watertown, wisconsin', 'watertown, wisconsin')" + }, + { + "db_id": "1-1974632-1", + "question": "state the institution in reading, pennsylvania", + "evidence": "", + "schema_text_wo_content": "Table 1-1974632-1, columns = [Institution, Location, Nickname, Founded, Type, Enrollment, Joined]\n", + "schema_text_with_content": "Table 1-1974632-1, columns = [`Institution` (Example values: [albright college, alvernia university, arcadia university]), `Location` (Example values: [reading, pennsylvania, reading, berks county, pennsylvania, glenside, pa, united states]), `Nickname` (Example values: [lions, crusaders, knights]), `Founded` (Example values: [1856.0, 1958.0, 1853.0]), `Type` (Example values: [private/methodist, private/catholic, private/presbyterian]), `Enrollment` (Example values: [2401.0, 2906.0, 4078.0]), `Joined` (Example values: [1999.0, 2009.0, 2008.0])]\n", + "ori_query": "select `institution` from `1-1974632-1` where `location` = 'reading, pennsylvania'", + "amb_query": "SELECT \"institution\" FROM \"1-1974632-1\" WHERE location IN ('reading, pennsylvania', 'reading, berks county, pennsylvania')" + }, + { + "db_id": "1-1974632-1", + "question": "state the institution in glenside, pennsylvania", + "evidence": "", + "schema_text_wo_content": "Table 1-1974632-1, columns = [Institution, Location, Nickname, Founded, Type, Enrollment, Joined]\n", + "schema_text_with_content": "Table 1-1974632-1, columns = [`Institution` (Example values: [albright college, alvernia university, arcadia university]), `Location` (Example values: [reading, pennsylvania, reading, berks county, pennsylvania, glenside, pa, united states]), `Nickname` (Example values: [lions, crusaders, knights]), `Founded` (Example values: [1856.0, 1958.0, 1853.0]), `Type` (Example values: [private/methodist, private/catholic, private/presbyterian]), `Enrollment` (Example values: [2401.0, 2906.0, 4078.0]), `Joined` (Example values: [1999.0, 2009.0, 2008.0])]\n", + "ori_query": "select `institution` from `1-1974632-1` where `location` = 'glenside, pennsylvania'", + "amb_query": "SELECT \"institution\" FROM \"1-1974632-1\" WHERE location IN ('glenside, pa, united states', 'glenside, pennsylvania')" + }, + { + "db_id": "1-2076463-2", + "question": "How much would you expect the enrollment to be in maryville?", + "evidence": "", + "schema_text_wo_content": "Table 1-2076463-2, columns = [School, Location(s), Control, Type, Enrollment, Founded]\n", + "schema_text_with_content": "Table 1-2076463-2, columns = [`School` (Example values: [harris-stowe state university, lincoln university, missouri southern state university]), `Location(s)` (Example values: [st. louis city, jefferson city, joplin]), `Control` (Example values: [historically black * public university, historically black public university, public university]), `Type` (Example values: [baccalaureate college, master’s colleges and universities]), `Enrollment` (Example values: [1854.0, 3109.0, 5264.0]), `Founded` (Example values: [1857.0, 1866.0, 1937.0])]\n", + "ori_query": "select min(`enrollment`) from `1-2076463-2` where `location(s)` = 'maryville'", + "amb_query": "SELECT MIN(\"enrollment\") FROM \"1-2076463-2\" WHERE location(s) IN ('maryville city', 'maryville')" + }, + { + "db_id": "1-2076463-2", + "question": "What enrollement would you expect if you were attending the university in st. joseph?", + "evidence": "", + "schema_text_wo_content": "Table 1-2076463-2, columns = [School, Location(s), Control, Type, Enrollment, Founded]\n", + "schema_text_with_content": "Table 1-2076463-2, columns = [`School` (Example values: [harris-stowe state university, lincoln university, missouri southern state university]), `Location(s)` (Example values: [st. louis city, jefferson city, joplin]), `Control` (Example values: [historically black * public university, historically black public university, public university]), `Type` (Example values: [baccalaureate college, master’s colleges and universities]), `Enrollment` (Example values: [1854.0, 3109.0, 5264.0]), `Founded` (Example values: [1857.0, 1866.0, 1937.0])]\n", + "ori_query": "select `enrollment` from `1-2076463-2` where `location(s)` = 'st. joseph'", + "amb_query": "SELECT \"enrollment\" FROM \"1-2076463-2\" WHERE location(s) IN ('st. joseph', 'saint joseph')" + }, + { + "db_id": "1-2076463-2", + "question": "How much would you expect the enrollment to be in Springfield?", + "evidence": "", + "schema_text_wo_content": "Table 1-2076463-2, columns = [School, Location(s), Control, Type, Enrollment, Founded]\n", + "schema_text_with_content": "Table 1-2076463-2, columns = [`School` (Example values: [harris-stowe state university, lincoln university, missouri southern state university]), `Location(s)` (Example values: [st. louis city, jefferson city, joplin]), `Control` (Example values: [historically black * public university, historically black public university, public university]), `Type` (Example values: [baccalaureate college, master’s colleges and universities]), `Enrollment` (Example values: [1854.0, 3109.0, 5264.0]), `Founded` (Example values: [1857.0, 1866.0, 1937.0])]\n", + "ori_query": "select min(`enrollment`) from `1-2076463-2` where `location(s)` = 'springfield'", + "amb_query": "SELECT MIN(\"enrollment\") FROM \"1-2076463-2\" WHERE location(s) IN ('springfield', 'springfield area')" + }, + { + "db_id": "1-2076463-2", + "question": "What enrollement would you expect if you were attending the university in St. Louis?", + "evidence": "", + "schema_text_wo_content": "Table 1-2076463-2, columns = [School, Location(s), Control, Type, Enrollment, Founded]\n", + "schema_text_with_content": "Table 1-2076463-2, columns = [`School` (Example values: [harris-stowe state university, lincoln university, missouri southern state university]), `Location(s)` (Example values: [st. louis city, jefferson city, joplin]), `Control` (Example values: [historically black * public university, historically black public university, public university]), `Type` (Example values: [baccalaureate college, master’s colleges and universities]), `Enrollment` (Example values: [1854.0, 3109.0, 5264.0]), `Founded` (Example values: [1857.0, 1866.0, 1937.0])]\n", + "ori_query": "select `enrollment` from `1-2076463-2` where `location(s)` = 'st. louis'", + "amb_query": "SELECT \"enrollment\" FROM \"1-2076463-2\" WHERE location(s) IN ('st. louis', 'st. louis city')" + }, + { + "db_id": "1-2076463-2", + "question": "Which school would you come across if you were in Kirksville?", + "evidence": "", + "schema_text_wo_content": "Table 1-2076463-2, columns = [School, Location(s), Control, Type, Enrollment, Founded]\n", + "schema_text_with_content": "Table 1-2076463-2, columns = [`School` (Example values: [harris-stowe state university, lincoln university, missouri southern state university]), `Location(s)` (Example values: [st. louis city, jefferson city, joplin]), `Control` (Example values: [historically black * public university, historically black public university, public university]), `Type` (Example values: [baccalaureate college, master’s colleges and universities]), `Enrollment` (Example values: [1854.0, 3109.0, 5264.0]), `Founded` (Example values: [1857.0, 1866.0, 1937.0])]\n", + "ori_query": "select `school` from `1-2076463-2` where `location(s)` = 'kirksville'", + "amb_query": "SELECT \"school\" FROM \"1-2076463-2\" WHERE location(s) IN ('city of kirksville', 'kirksville')" + }, + { + "db_id": "1-21692771-1", + "question": "What is the ISIN associated with the maturity date of 3/12/2010?", + "evidence": "", + "schema_text_wo_content": "Table 1-21692771-1, columns = [Issuer, Issue Date, ISIN, Amount Issued [€], Coupon, Maturity]\n", + "schema_text_with_content": "Table 1-21692771-1, columns = [`Issuer` (Example values: [hypo real estate, commerzbank ag, hsh nordbank ag]), `Issue Date` (Example values: [11/13/2008, 1/15/2009, 1/20/2009]), `ISIN` (Example values: [de000a0xxy00, de000cb896a7, de000hsh2539]), `Amount Issued [€]` (Example values: [15,000,000,000, 5,000,000,000, 3,000,000,000]), `Coupon` (Example values: [0.726, 2.75, 2.875]), `Maturity` (Example values: [12/23/2009, 1/13/2012, 1/20/2012])]\n", + "ori_query": "select `isin` from `1-21692771-1` where `maturity` = '3/12/2010'", + "amb_query": "SELECT \"isin\" FROM \"1-21692771-1\" WHERE maturity IN ('3/12/2010', 'march 12, 2010')" + }, + { + "db_id": "1-21692771-1", + "question": "What is the ISIN associated with the maturity date of 9/10/2012?", + "evidence": "", + "schema_text_wo_content": "Table 1-21692771-1, columns = [Issuer, Issue Date, ISIN, Amount Issued [€], Coupon, Maturity]\n", + "schema_text_with_content": "Table 1-21692771-1, columns = [`Issuer` (Example values: [hypo real estate, commerzbank ag, hsh nordbank ag]), `Issue Date` (Example values: [11/13/2008, 1/15/2009, 1/20/2009]), `ISIN` (Example values: [de000a0xxy00, de000cb896a7, de000hsh2539]), `Amount Issued [€]` (Example values: [15,000,000,000, 5,000,000,000, 3,000,000,000]), `Coupon` (Example values: [0.726, 2.75, 2.875]), `Maturity` (Example values: [12/23/2009, 1/13/2012, 1/20/2012])]\n", + "ori_query": "select `isin` from `1-21692771-1` where `maturity` = '9/10/2012'", + "amb_query": "SELECT \"isin\" FROM \"1-21692771-1\" WHERE maturity IN ('9/10/2012', '9-10-2012')" + }, + { + "db_id": "1-21692771-1", + "question": "What is the ISIN associated with the maturity date of 3/11/2011?", + "evidence": "", + "schema_text_wo_content": "Table 1-21692771-1, columns = [Issuer, Issue Date, ISIN, Amount Issued [€], Coupon, Maturity]\n", + "schema_text_with_content": "Table 1-21692771-1, columns = [`Issuer` (Example values: [hypo real estate, commerzbank ag, hsh nordbank ag]), `Issue Date` (Example values: [11/13/2008, 1/15/2009, 1/20/2009]), `ISIN` (Example values: [de000a0xxy00, de000cb896a7, de000hsh2539]), `Amount Issued [€]` (Example values: [15,000,000,000, 5,000,000,000, 3,000,000,000]), `Coupon` (Example values: [0.726, 2.75, 2.875]), `Maturity` (Example values: [12/23/2009, 1/13/2012, 1/20/2012])]\n", + "ori_query": "select `isin` from `1-21692771-1` where `maturity` = '3/11/2011'", + "amb_query": "SELECT \"isin\" FROM \"1-21692771-1\" WHERE maturity IN ('march 11, 2011', '3/11/2011')" + }, + { + "db_id": "1-22385461-9", + "question": "If the start (utc) is june 5, 2008 15:04, what is the name of the spacecraft?", + "evidence": "", + "schema_text_wo_content": "Table 1-22385461-9, columns = [#, Spacecraft, Spacewalkers, Start ( UTC ), End (UTC), Duration]\n", + "schema_text_with_content": "Table 1-22385461-9, columns = [`#` (Example values: [284., 285., 286.]), `Spacecraft` (Example values: [expedition 16 eva 5, sts-122 eva 1, sts-122 eva 2]), `Spacewalkers` (Example values: [peggy whitson daniel tani, rex j. walheim stanley g. love, rex j. walheim hans schlegel]), `Start ( UTC )` (Example values: [january 30, 2008 09:56, february 11, 2008 14:13, february 13, 2008 14:27]), `End (UTC)` (Example values: [january 30, 2008 17:06, february 11, 2008 22:11, february 13, 2008 21:12]), `Duration` (Example values: [7 hours, 10 minutes, 7 hours, 58 minutes, 6 hours, 45 minutes])]\n", + "ori_query": "select `spacecraft` from `1-22385461-9` where `start ( utc )` = 'june 5, 2008 15:04'", + "amb_query": "SELECT \"spacecraft\" FROM \"1-22385461-9\" WHERE start ( utc ) IN ('06/05/2008 15:04', 'june 5, 2008 15:04')" + }, + { + "db_id": "1-22385461-9", + "question": "If the start (utc) is june 8, 2008 13:55, what is the name of the spacecraft?", + "evidence": "", + "schema_text_wo_content": "Table 1-22385461-9, columns = [#, Spacecraft, Spacewalkers, Start ( UTC ), End (UTC), Duration]\n", + "schema_text_with_content": "Table 1-22385461-9, columns = [`#` (Example values: [284., 285., 286.]), `Spacecraft` (Example values: [expedition 16 eva 5, sts-122 eva 1, sts-122 eva 2]), `Spacewalkers` (Example values: [peggy whitson daniel tani, rex j. walheim stanley g. love, rex j. walheim hans schlegel]), `Start ( UTC )` (Example values: [january 30, 2008 09:56, february 11, 2008 14:13, february 13, 2008 14:27]), `End (UTC)` (Example values: [january 30, 2008 17:06, february 11, 2008 22:11, february 13, 2008 21:12]), `Duration` (Example values: [7 hours, 10 minutes, 7 hours, 58 minutes, 6 hours, 45 minutes])]\n", + "ori_query": "select `spacecraft` from `1-22385461-9` where `start ( utc )` = 'june 8, 2008 13:55'", + "amb_query": "SELECT \"spacecraft\" FROM \"1-22385461-9\" WHERE start ( utc ) IN ('08/06/2008 13:55', 'june 8, 2008 13:55')" + }, + { + "db_id": "1-22385461-9", + "question": "If the start (utc) is November 18, 2008 18:09, what is the name of the spacecraft?", + "evidence": "", + "schema_text_wo_content": "Table 1-22385461-9, columns = [#, Spacecraft, Spacewalkers, Start ( UTC ), End (UTC), Duration]\n", + "schema_text_with_content": "Table 1-22385461-9, columns = [`#` (Example values: [284., 285., 286.]), `Spacecraft` (Example values: [expedition 16 eva 5, sts-122 eva 1, sts-122 eva 2]), `Spacewalkers` (Example values: [peggy whitson daniel tani, rex j. walheim stanley g. love, rex j. walheim hans schlegel]), `Start ( UTC )` (Example values: [january 30, 2008 09:56, february 11, 2008 14:13, february 13, 2008 14:27]), `End (UTC)` (Example values: [january 30, 2008 17:06, february 11, 2008 22:11, february 13, 2008 21:12]), `Duration` (Example values: [7 hours, 10 minutes, 7 hours, 58 minutes, 6 hours, 45 minutes])]\n", + "ori_query": "select `spacecraft` from `1-22385461-9` where `start ( utc )` = 'november 18, 2008 18:09'", + "amb_query": "SELECT \"spacecraft\" FROM \"1-22385461-9\" WHERE start ( utc ) IN ('november 18, 2008 18:09', '18th november 2008 18:09')" + }, + { + "db_id": "1-22385461-6", + "question": "What is the start date and time of the walk that ends august 19, 2005, 00:00?", + "evidence": "", + "schema_text_wo_content": "Table 1-22385461-6, columns = [#, Spacecraft, Spacewalkers, Start ( UTC ), End (UTC), Duration]\n", + "schema_text_with_content": "Table 1-22385461-6, columns = [`#` (Example values: [240., 241., 242.]), `Spacecraft` (Example values: [iss expedition 10 eva 1, iss expedition 10 eva 2, sts-114 eva 1]), `Spacewalkers` (Example values: [leroy chiao salizhan sharipov, soichi noguchi stephen robinson, sergei krikalev john l. phillips]), `Start ( UTC )` (Example values: [january 26, 2005, 07:43, march 28, 2005, 06:25, july 30, 2005, 05:46]), `End (UTC)` (Example values: [january 26, 2005, 13:11, 03/28/2005 11:31, july 30, 2005, 12:36]), `Duration` (Example values: [5 h, 28 min, 5 h, 06 min, 6 h, 50 min])]\n", + "ori_query": "select `start ( utc )` from `1-22385461-6` where `end (utc)` = 'august 19, 2005, 00:00'", + "amb_query": "SELECT \"start ( utc )\" FROM \"1-22385461-6\" WHERE end (utc) IN ('august 19, 2005, 00:00', '19th august 2005, 00:00')" + }, + { + "db_id": "1-22385461-6", + "question": "What is the start date and time of the walk that ends March 28, 2005, 11:31?", + "evidence": "", + "schema_text_wo_content": "Table 1-22385461-6, columns = [#, Spacecraft, Spacewalkers, Start ( UTC ), End (UTC), Duration]\n", + "schema_text_with_content": "Table 1-22385461-6, columns = [`#` (Example values: [240., 241., 242.]), `Spacecraft` (Example values: [iss expedition 10 eva 1, iss expedition 10 eva 2, sts-114 eva 1]), `Spacewalkers` (Example values: [leroy chiao salizhan sharipov, soichi noguchi stephen robinson, sergei krikalev john l. phillips]), `Start ( UTC )` (Example values: [january 26, 2005, 07:43, march 28, 2005, 06:25, july 30, 2005, 05:46]), `End (UTC)` (Example values: [january 26, 2005, 13:11, 03/28/2005 11:31, july 30, 2005, 12:36]), `Duration` (Example values: [5 h, 28 min, 5 h, 06 min, 6 h, 50 min])]\n", + "ori_query": "select `start ( utc )` from `1-22385461-6` where `end (utc)` = 'march 28, 2005, 11:31'", + "amb_query": "SELECT \"start ( utc )\" FROM \"1-22385461-6\" WHERE end (utc) IN ('march 28, 2005, 11:31', '03/28/2005 11:31')" + }, + { + "db_id": "1-224672-2", + "question": "When did the term end that began january 3, 1995?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `term ended` from `1-224672-2` where `term began` = 'january 3, 1995'", + "amb_query": "SELECT \"term ended\" FROM \"1-224672-2\" WHERE term began IN ('3rd january 1995', 'january 3, 1995')" + }, + { + "db_id": "1-224672-2", + "question": "When did the term end that began january 3, 2001?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `term ended` from `1-224672-2` where `term began` = 'january 3, 2001'", + "amb_query": "SELECT \"term ended\" FROM \"1-224672-2\" WHERE term began IN ('1/3/2001', 'january 3, 2001')" + }, + { + "db_id": "1-224672-2", + "question": "When did the term end that began January 3, 2007?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `term ended` from `1-224672-2` where `term began` = 'january 3, 2007'", + "amb_query": "SELECT \"term ended\" FROM \"1-224672-2\" WHERE term began IN ('january 3, 2007', '1/3/2007')" + }, + { + "db_id": "1-224672-2", + "question": "When did the term end that began December 4, 1978?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `term ended` from `1-224672-2` where `term began` = 'december 4, 1978'", + "amb_query": "SELECT \"term ended\" FROM \"1-224672-2\" WHERE term began IN ('december 4, 1978', 'december 4th, 1978')" + }, + { + "db_id": "1-224672-2", + "question": "When did the term begin that ended january 8, 1988?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `term began` from `1-224672-2` where `term ended` = 'january 8, 1988'", + "amb_query": "SELECT \"term began\" FROM \"1-224672-2\" WHERE term ended IN ('january 8, 1988', 'january 8th, 1988')" + }, + { + "db_id": "1-224672-2", + "question": "What branch of government was the term that ended on january 3, 2013?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `type` from `1-224672-2` where `term ended` = 'january 3, 2013'", + "amb_query": "SELECT \"type\" FROM \"1-224672-2\" WHERE \"term ended\" = 'january 3, 2013'" + }, + { + "db_id": "1-224672-2", + "question": "When did the term begin that ended January 3, 1995?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `term began` from `1-224672-2` where `term ended` = 'january 3, 1995'", + "amb_query": "SELECT \"term began\" FROM \"1-224672-2\" WHERE term ended IN ('january 3rd, 1995', 'january 3, 1995')" + }, + { + "db_id": "1-224672-2", + "question": "What branch of government was the term that ended on January 3, 2001?", + "evidence": "", + "schema_text_wo_content": "Table 1-224672-2, columns = [Office, Type, Location, Elected, Term began, Term ended]\n", + "schema_text_with_content": "Table 1-224672-2, columns = [`Office` (Example values: [mayor, senator]), `Type` (Example values: [executive, legislature]), `Location` (Example values: [san francisco, washington, d.c.]), `Elected` (Example values: [n/a, 1979, 1983]), `Term began` (Example values: [december 4th, 1978, january 8, 1980, january 8, 1984]), `Term ended` (Example values: [january 8, 1980, january 8, 1984, january 8th, 1988])]\n", + "ori_query": "select `type` from `1-224672-2` where `term ended` = 'january 3, 2001'", + "amb_query": "SELECT \"type\" FROM \"1-224672-2\" WHERE term ended IN ('1/3/2001', 'january 3, 2001')" + }, + { + "db_id": "1-22496344-1", + "question": "Where is the position when lagos, nigeria is the hometown and worthing is the high school?", + "evidence": "", + "schema_text_wo_content": "Table 1-22496344-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-22496344-1, columns = [`Name` (Example values: [benny anders, dan bunce, david bunce]), `#` (Example values: [32.0, 50.0, 52.0]), `Position` (Example values: [guard-forward, center, guard]), `Height` (Example values: [6–5, 7–0, 6–11]), `Weight` (Example values: [188.0, 235.0, 225.0]), `Year` (Example values: [freshman, sophomore (rs), junior]), `Home Town` (Example values: [bernice, louisiana, united states, conroe, tx, usa, conroe, tx]), `High School` (Example values: [bernice, conroe, amundsen])]\n", + "ori_query": "select `position` from `1-22496344-1` where `home town` = 'lagos, nigeria' and `high school` = 'worthing'", + "amb_query": "SELECT \"position\" FROM \"1-22496344-1\" WHERE home town IN ('lagos, nigeria (africa)', 'lagos, nigeria') AND \"high school\" = 'worthing'" + }, + { + "db_id": "1-22496344-1", + "question": "What is the # when bernice, la is the hometown?", + "evidence": "", + "schema_text_wo_content": "Table 1-22496344-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-22496344-1, columns = [`Name` (Example values: [benny anders, dan bunce, david bunce]), `#` (Example values: [32.0, 50.0, 52.0]), `Position` (Example values: [guard-forward, center, guard]), `Height` (Example values: [6–5, 7–0, 6–11]), `Weight` (Example values: [188.0, 235.0, 225.0]), `Year` (Example values: [freshman, sophomore (rs), junior]), `Home Town` (Example values: [bernice, louisiana, united states, conroe, tx, usa, conroe, tx]), `High School` (Example values: [bernice, conroe, amundsen])]\n", + "ori_query": "select min(`#`) from `1-22496344-1` where `home town` = 'bernice, la'", + "amb_query": "SELECT MIN(\"#\") FROM \"1-22496344-1\" WHERE home town IN ('bernice, la', 'bernice, louisiana, united states')" + }, + { + "db_id": "1-22496344-1", + "question": "Where is the position when houston, tx is the hometown and worthing is the high school?", + "evidence": "", + "schema_text_wo_content": "Table 1-22496344-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-22496344-1, columns = [`Name` (Example values: [benny anders, dan bunce, david bunce]), `#` (Example values: [32.0, 50.0, 52.0]), `Position` (Example values: [guard-forward, center, guard]), `Height` (Example values: [6–5, 7–0, 6–11]), `Weight` (Example values: [188.0, 235.0, 225.0]), `Year` (Example values: [freshman, sophomore (rs), junior]), `Home Town` (Example values: [bernice, louisiana, united states, conroe, tx, usa, conroe, tx]), `High School` (Example values: [bernice, conroe, amundsen])]\n", + "ori_query": "select `position` from `1-22496344-1` where `home town` = 'houston, tx' and `high school` = 'worthing'", + "amb_query": "SELECT \"position\" FROM \"1-22496344-1\" WHERE home town IN ('houston, tx', 'houston, texas region', 'houston, texas', 'h-town', 'houston metropolitan area') AND \"high school\" = 'worthing'" + }, + { + "db_id": "1-22496344-1", + "question": "What is the # when conroe, tx is the hometown?", + "evidence": "", + "schema_text_wo_content": "Table 1-22496344-1, columns = [Name, #, Position, Height, Weight, Year, Home Town, High School]\n", + "schema_text_with_content": "Table 1-22496344-1, columns = [`Name` (Example values: [benny anders, dan bunce, david bunce]), `#` (Example values: [32.0, 50.0, 52.0]), `Position` (Example values: [guard-forward, center, guard]), `Height` (Example values: [6–5, 7–0, 6–11]), `Weight` (Example values: [188.0, 235.0, 225.0]), `Year` (Example values: [freshman, sophomore (rs), junior]), `Home Town` (Example values: [bernice, louisiana, united states, conroe, tx, usa, conroe, tx]), `High School` (Example values: [bernice, conroe, amundsen])]\n", + "ori_query": "select min(`#`) from `1-22496344-1` where `home town` = 'conroe, tx'", + "amb_query": "SELECT MIN(\"#\") FROM \"1-22496344-1\" WHERE home town IN ('conroe, tx', 'conroe, tx, usa')" + }, + { + "db_id": "1-22670216-1", + "question": "If the location is brooklyn , michigan and the pole position is Bobby Unser, what is the RND total number?", + "evidence": "", + "schema_text_wo_content": "Table 1-22670216-1, columns = [Rnd, Date, Race Name, Length, Track, Location, Pole Position, Winning Driver]\n", + "schema_text_with_content": "Table 1-22670216-1, columns = [`Rnd` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [april 7, april 15, may 30]), `Race Name` (Example values: [texas 200, trentonian 300 heat 1, trentonian 300 heat 2]), `Length` (Example values: [mi (km)]), `Track` (Example values: [texas world speedway, trenton international speedway, indianapolis motor speedway]), `Location` (Example values: [college station , texas, trenton , new jersey, speedway , indiana]), `Pole Position` (Example values: [bobby unser, gordon johncock, a. j. foyt]), `Winning Driver` (Example values: [al unser, a. j. foyt, mario andretti])]\n", + "ori_query": "select count(`rnd`) from `1-22670216-1` where `location` = 'brooklyn , michigan' and `pole position` = 'bobby unser'", + "amb_query": "SELECT COUNT(\"rnd\") FROM \"1-22670216-1\" WHERE location IN ('brooklyn, mi', 'brooklyn , michigan') AND \"pole position\" = 'bobby unser'" + }, + { + "db_id": "1-22670216-1", + "question": "If the location is Brooklyn, Michigan and the pole position is Bobby Unser, what is the RND total number?", + "evidence": "", + "schema_text_wo_content": "Table 1-22670216-1, columns = [Rnd, Date, Race Name, Length, Track, Location, Pole Position, Winning Driver]\n", + "schema_text_with_content": "Table 1-22670216-1, columns = [`Rnd` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [april 7, april 15, may 30]), `Race Name` (Example values: [texas 200, trentonian 300 heat 1, trentonian 300 heat 2]), `Length` (Example values: [mi (km)]), `Track` (Example values: [texas world speedway, trenton international speedway, indianapolis motor speedway]), `Location` (Example values: [college station , texas, trenton , new jersey, speedway , indiana]), `Pole Position` (Example values: [bobby unser, gordon johncock, a. j. foyt]), `Winning Driver` (Example values: [al unser, a. j. foyt, mario andretti])]\n", + "ori_query": "select count(`rnd`) from `1-22670216-1` where `location` = 'brooklyn, michigan' and `pole position` = 'bobby unser'", + "amb_query": "SELECT COUNT(\"rnd\") FROM \"1-22670216-1\" WHERE location IN ('brooklyn, michigan, usa', 'brooklyn, michigan') AND \"pole position\" = 'bobby unser'" + }, + { + "db_id": "2-1054502-1", + "question": "Which competition did Târlea come in 6th place, in 2003 at Budapest, Hungary?", + "evidence": "", + "schema_text_wo_content": "Table 2-1054502-1, columns = [Year, Competition, Venue, Position, Notes]\n", + "schema_text_with_content": "Table 2-1054502-1, columns = [`Year` (Example values: [1992.0, 1993.0, 1994.0]), `Competition` (Example values: [world junior championships, european junior championships, world university games]), `Venue` (Example values: [seoul, south korea, san sebastián, spain, lisbon, portugal]), `Position` (Example values: [1st, 2nd, 7th position]), `Notes` (Example values: [4 × 400 m relay, 400 m hurdles, 4 x 400 m relay])]\n", + "ori_query": "select `competition` from `2-1054502-1` where `position` = '6th' and `year` > 2003 and `venue` = 'budapest, hungary'", + "amb_query": "SELECT \"competition\" FROM \"2-1054502-1\" WHERE position IN ('6th rank', 'sixth', '6th') AND \"year\" > 2003 AND \"venue\" = 'budapest, hungary'" + }, + { + "db_id": "2-1054502-1", + "question": "Which competition did Târlea come in 4th place, in 2003 at Budapest, Hungary?", + "evidence": "", + "schema_text_wo_content": "Table 2-1054502-1, columns = [Year, Competition, Venue, Position, Notes]\n", + "schema_text_with_content": "Table 2-1054502-1, columns = [`Year` (Example values: [1992.0, 1993.0, 1994.0]), `Competition` (Example values: [world junior championships, european junior championships, world university games]), `Venue` (Example values: [seoul, south korea, san sebastián, spain, lisbon, portugal]), `Position` (Example values: [1st, 2nd, 7th position]), `Notes` (Example values: [4 × 400 m relay, 400 m hurdles, 4 x 400 m relay])]\n", + "ori_query": "select `competition` from `2-1054502-1` where `position` = '4th' and `year` > 2003 and `venue` = 'budapest, hungary'", + "amb_query": "SELECT \"competition\" FROM \"2-1054502-1\" WHERE position IN ('fourth', '4th place', '4th') AND \"year\" > 2003 AND \"venue\" = 'budapest, hungary'" + }, + { + "db_id": "2-1054502-1", + "question": "What was the earliest year that Târlea took 7th place?", + "evidence": "", + "schema_text_wo_content": "Table 2-1054502-1, columns = [Year, Competition, Venue, Position, Notes]\n", + "schema_text_with_content": "Table 2-1054502-1, columns = [`Year` (Example values: [1992.0, 1993.0, 1994.0]), `Competition` (Example values: [world junior championships, european junior championships, world university games]), `Venue` (Example values: [seoul, south korea, san sebastián, spain, lisbon, portugal]), `Position` (Example values: [1st, 2nd, 7th position]), `Notes` (Example values: [4 × 400 m relay, 400 m hurdles, 4 x 400 m relay])]\n", + "ori_query": "select min(`year`) from `2-1054502-1` where `position` = '7th'", + "amb_query": "SELECT MIN(\"year\") FROM \"2-1054502-1\" WHERE position IN ('7th', '7th position')" + }, + { + "db_id": "2-11763491-1", + "question": "Which organization has a Finish of 3rd?", + "evidence": "", + "schema_text_wo_content": "Table 2-11763491-1, columns = [Year, Team, League, Record, Finish, Organization]\n", + "schema_text_with_content": "Table 2-11763491-1, columns = [`Year` (Example values: [1968.0, 1969.0, 1970.0]), `Team` (Example values: [johnson city yankees, kinston eagles, manchester yankees]), `League` (Example values: [appalachian league, carolina league, eastern league]), `Record` (Example values: [39-32, 74-68, 66-73]), `Finish` (Example values: [3rd rank, 5th, 2nd]), `Organization` (Example values: [new york yankees, atlanta braves])]\n", + "ori_query": "select `organization` from `2-11763491-1` where `finish` = '3rd'", + "amb_query": "SELECT \"organization\" FROM \"2-11763491-1\" WHERE finish IN ('3rd', 'third', '3rd rank')" + }, + { + "db_id": "2-11763491-1", + "question": "Which organization has a Finish of 4th?", + "evidence": "", + "schema_text_wo_content": "Table 2-11763491-1, columns = [Year, Team, League, Record, Finish, Organization]\n", + "schema_text_with_content": "Table 2-11763491-1, columns = [`Year` (Example values: [1968.0, 1969.0, 1970.0]), `Team` (Example values: [johnson city yankees, kinston eagles, manchester yankees]), `League` (Example values: [appalachian league, carolina league, eastern league]), `Record` (Example values: [39-32, 74-68, 66-73]), `Finish` (Example values: [3rd rank, 5th, 2nd]), `Organization` (Example values: [new york yankees, atlanta braves])]\n", + "ori_query": "select `organization` from `2-11763491-1` where `finish` = '4th'", + "amb_query": "SELECT \"organization\" FROM \"2-11763491-1\" WHERE finish IN ('fourth', '4th')" + }, + { + "db_id": "2-11763491-1", + "question": "What is the total of the year with a Team of johnson city yankees, and a Finish of 6th?", + "evidence": "", + "schema_text_wo_content": "Table 2-11763491-1, columns = [Year, Team, League, Record, Finish, Organization]\n", + "schema_text_with_content": "Table 2-11763491-1, columns = [`Year` (Example values: [1968.0, 1969.0, 1970.0]), `Team` (Example values: [johnson city yankees, kinston eagles, manchester yankees]), `League` (Example values: [appalachian league, carolina league, eastern league]), `Record` (Example values: [39-32, 74-68, 66-73]), `Finish` (Example values: [3rd rank, 5th, 2nd]), `Organization` (Example values: [new york yankees, atlanta braves])]\n", + "ori_query": "select sum(`year`) from `2-11763491-1` where `team` = 'johnson city yankees' and `finish` = '6th'", + "amb_query": "SELECT SUM(\"year\") FROM \"2-11763491-1\" WHERE \"team\" = 'johnson city yankees' AND finish IN ('6th place', '6th')" + }, + { + "db_id": "1-2308381-2", + "question": "Name the avg finish for position of 69th", + "evidence": "", + "schema_text_wo_content": "Table 1-2308381-2, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-2308381-2, columns = [`Year` (Example values: [1989.0, 1995.0, 1996.0]), `Starts` (Example values: [3.0, 4.0, 2.0]), `Wins` (Example values: [0.0, 1.0]), `Top 5` (Example values: [0.0, 1.0]), `Top 10` (Example values: [0.0, 1.0, 2.0]), `Poles` (Example values: [1.0, 0.0]), `Avg. Start` (Example values: [4.7, 25.5, 11.5]), `Avg. Finish` (Example values: [29.3, 36.0, 16.0]), `Winnings` (Example values: [$7,210, $17,380, $40,065]), `Position` (Example values: [position 69, rank 70th, 57th]), `Team(s)` (Example values: [#87 frank cicci racing, #33 daytona speed inc., #29 diamond ridge motorsports #7 bace motorsports])]\n", + "ori_query": "select `avg. finish` from `1-2308381-2` where `position` = '69th'", + "amb_query": "SELECT \"avg. finish\" FROM \"1-2308381-2\" WHERE position IN ('position 69', '69th')" + }, + { + "db_id": "1-2308381-2", + "question": "Name the avg finish for position of 70th", + "evidence": "", + "schema_text_wo_content": "Table 1-2308381-2, columns = [Year, Starts, Wins, Top 5, Top 10, Poles, Avg. Start, Avg. Finish, Winnings, Position, Team(s)]\n", + "schema_text_with_content": "Table 1-2308381-2, columns = [`Year` (Example values: [1989.0, 1995.0, 1996.0]), `Starts` (Example values: [3.0, 4.0, 2.0]), `Wins` (Example values: [0.0, 1.0]), `Top 5` (Example values: [0.0, 1.0]), `Top 10` (Example values: [0.0, 1.0, 2.0]), `Poles` (Example values: [1.0, 0.0]), `Avg. Start` (Example values: [4.7, 25.5, 11.5]), `Avg. Finish` (Example values: [29.3, 36.0, 16.0]), `Winnings` (Example values: [$7,210, $17,380, $40,065]), `Position` (Example values: [position 69, rank 70th, 57th]), `Team(s)` (Example values: [#87 frank cicci racing, #33 daytona speed inc., #29 diamond ridge motorsports #7 bace motorsports])]\n", + "ori_query": "select `avg. finish` from `1-2308381-2` where `position` = '70th'", + "amb_query": "SELECT \"avg. finish\" FROM \"1-2308381-2\" WHERE position IN ('70th', 'rank 70th')" + }, + { + "db_id": "1-23575917-4", + "question": "What is the episode number that was first broadcast on 13 august 2010?", + "evidence": "", + "schema_text_wo_content": "Table 1-23575917-4, columns = [Episode, First broadcast, Davids team, Lees team, Scores]\n", + "schema_text_with_content": "Table 1-23575917-4, columns = [`Episode` (Example values: [4x01, 4x02, 4x03]), `First broadcast` (Example values: [23 july 2010, 30 july 2010, 6 august 2010]), `Davids team` (Example values: [fern britton and richard e. grant, ruth jones and jason manford, keeley hawes and stephen mangan]), `Lees team` (Example values: [sanjeev bhaskar and martin clunes, jack dee and peter serafinowicz, kevin bridges and professor brian cox]), `Scores` (Example values: [5–6, 8–3, 7–4])]\n", + "ori_query": "select `episode` from `1-23575917-4` where `first broadcast` = '13 august 2010'", + "amb_query": "SELECT \"episode\" FROM \"1-23575917-4\" WHERE first broadcast IN ('13 august 2010', 'august 13th, 2010')" + }, + { + "db_id": "1-23575917-4", + "question": "What is the episode number that was first broadcast on 3 September 2010?", + "evidence": "", + "schema_text_wo_content": "Table 1-23575917-4, columns = [Episode, First broadcast, Davids team, Lees team, Scores]\n", + "schema_text_with_content": "Table 1-23575917-4, columns = [`Episode` (Example values: [4x01, 4x02, 4x03]), `First broadcast` (Example values: [23 july 2010, 30 july 2010, 6 august 2010]), `Davids team` (Example values: [fern britton and richard e. grant, ruth jones and jason manford, keeley hawes and stephen mangan]), `Lees team` (Example values: [sanjeev bhaskar and martin clunes, jack dee and peter serafinowicz, kevin bridges and professor brian cox]), `Scores` (Example values: [5–6, 8–3, 7–4])]\n", + "ori_query": "select `episode` from `1-23575917-4` where `first broadcast` = '3 september 2010'", + "amb_query": "SELECT \"episode\" FROM \"1-23575917-4\" WHERE first broadcast IN ('3rd september 2010', '3 september 2010')" + }, + { + "db_id": "1-23819979-3", + "question": "Name the final place for july 22, 2009", + "evidence": "", + "schema_text_wo_content": "Table 1-23819979-3, columns = [Competition, Final position, First match, Last match, Final Place]\n", + "schema_text_with_content": "Table 1-23819979-3, columns = [`Competition` (Example values: [torneo apertura, torneo clausura, copa libertadores]), `Final position` (Example values: [14th, 13th, second stage]), `First match` (Example values: [august 23, 2009, january 31, 2010, february 12, 2009]), `Last match` (Example values: [december 13, 2009, may 15, 2010, april 30, 2009]), `Final Place` (Example values: [argentina - coliseo de victoria, argentina - el monumental, canada - bmo field])]\n", + "ori_query": "select `final place` from `1-23819979-3` where `last match` = 'july 22, 2009'", + "amb_query": "SELECT \"final place\" FROM \"1-23819979-3\" WHERE last match IN ('22nd july 2009', 'july 22, 2009')" + }, + { + "db_id": "1-23819979-3", + "question": "Name the final place for july 25, 2009", + "evidence": "", + "schema_text_wo_content": "Table 1-23819979-3, columns = [Competition, Final position, First match, Last match, Final Place]\n", + "schema_text_with_content": "Table 1-23819979-3, columns = [`Competition` (Example values: [torneo apertura, torneo clausura, copa libertadores]), `Final position` (Example values: [14th, 13th, second stage]), `First match` (Example values: [august 23, 2009, january 31, 2010, february 12, 2009]), `Last match` (Example values: [december 13, 2009, may 15, 2010, april 30, 2009]), `Final Place` (Example values: [argentina - coliseo de victoria, argentina - el monumental, canada - bmo field])]\n", + "ori_query": "select `final place` from `1-23819979-3` where `last match` = 'july 25, 2009'", + "amb_query": "SELECT \"final place\" FROM \"1-23819979-3\" WHERE last match IN ('july 25, 2009', '25th july 2009')" + }, + { + "db_id": "1-24798489-1", + "question": "How many episodes had amarillo, texas as the location?", + "evidence": "", + "schema_text_wo_content": "Table 1-24798489-1, columns = [Episode Number, Location, Original Airdate, Challenge Winner, Challenge]\n", + "schema_text_with_content": "Table 1-24798489-1, columns = [`Episode Number` (Example values: [1.0, 3.0, 5.0]), `Location` (Example values: [amarillo in the state of texas, pittsburgh, pennsylvania, austin, texas]), `Original Airdate` (Example values: [december 3, 2008, december 10, 2008, december 17, 2008]), `Challenge Winner` (Example values: [man, food]), `Challenge` (Example values: [\"big texan challenge\", a 4.5 pound (2kg) steak, atomic hot wings challenge, eight don juan el taco grande breakfast tacos])]\n", + "ori_query": "select count(`episode number`) from `1-24798489-1` where `location` = 'amarillo, texas'", + "amb_query": "SELECT COUNT(\"episode number\") FROM \"1-24798489-1\" WHERE location IN ('amarillo in the state of texas', 'amarillo, texas')" + }, + { + "db_id": "1-24798489-1", + "question": "How many episodes had New York, New York as the location?", + "evidence": "", + "schema_text_wo_content": "Table 1-24798489-1, columns = [Episode Number, Location, Original Airdate, Challenge Winner, Challenge]\n", + "schema_text_with_content": "Table 1-24798489-1, columns = [`Episode Number` (Example values: [1.0, 3.0, 5.0]), `Location` (Example values: [amarillo in the state of texas, pittsburgh, pennsylvania, austin, texas]), `Original Airdate` (Example values: [december 3, 2008, december 10, 2008, december 17, 2008]), `Challenge Winner` (Example values: [man, food]), `Challenge` (Example values: [\"big texan challenge\", a 4.5 pound (2kg) steak, atomic hot wings challenge, eight don juan el taco grande breakfast tacos])]\n", + "ori_query": "select count(`episode number`) from `1-24798489-1` where `location` = 'new york, new york'", + "amb_query": "SELECT COUNT(\"episode number\") FROM \"1-24798489-1\" WHERE location IN ('new york city', 'new york, new york')" + }, + { + "db_id": "1-24786958-2", + "question": "What week had kickoff time at 6:00 p.m.?", + "evidence": "", + "schema_text_wo_content": "Table 1-24786958-2, columns = [Week, Date, Kickoff, Opponent, Final score, Team record, Game site, Attendance]\n", + "schema_text_with_content": "Table 1-24786958-2, columns = [`Week` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [saturday, april 21, saturday, april 28, saturday, may 5]), `Kickoff` (Example values: [7:00 p.m., five o'clock pm, 6 pm]), `Opponent` (Example values: [amsterdam admirals, at barcelona dragons, barcelona dragons]), `Final score` (Example values: [w 24–20, l 12–24, l 21–27]), `Team record` (Example values: [1–0, 1–1, 1–2]), `Game site` (Example values: [rheinstadion, estadi olímpic de montjuïc, jahn-sportpark]), `Attendance` (Example values: [31437.0, 8423.0, 30984.0])]\n", + "ori_query": "select min(`week`) from `1-24786958-2` where `kickoff` = '6:00 p.m.'", + "amb_query": "SELECT MIN(\"week\") FROM \"1-24786958-2\" WHERE kickoff IN ('6 pm', '6:00 p.m.')" + }, + { + "db_id": "1-24918268-2", + "question": "What was the score for the game that kicked off at 3:00 p.m.?", + "evidence": "", + "schema_text_wo_content": "Table 1-24918268-2, columns = [Week, Date, Kickoff, Opponent, Final score, Team record, Game site, Attendance]\n", + "schema_text_with_content": "Table 1-24918268-2, columns = [`Week` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [sunday, april 14, saturday, april 20, saturday, april 27]), `Kickoff` (Example values: [3 o'clock pm, 7:00 p.m., 3:00 p.m.]), `Opponent` (Example values: [scottish claymores, at frankfurt galaxy, at rhein fire]), `Final score` (Example values: [l 21–24 (ot), l 3–37, w 27–20]), `Team record` (Example values: [0–1, 0–2, 1–2]), `Game site` (Example values: [white hart lane, waldstadion, rheinstadion]), `Attendance` (Example values: [16258.0, 34186.0, 16104.0])]\n", + "ori_query": "select `final score` from `1-24918268-2` where `kickoff` = '6:00 p.m.'", + "amb_query": "SELECT \"final score\" FROM \"1-24918268-2\" WHERE \"kickoff\" = '6:00 p.m.'" + }, + { + "db_id": "1-24918268-2", + "question": "What was the score for the game that kicked off at 6:00 p.m.?", + "evidence": "", + "schema_text_wo_content": "Table 1-24918268-2, columns = [Week, Date, Kickoff, Opponent, Final score, Team record, Game site, Attendance]\n", + "schema_text_with_content": "Table 1-24918268-2, columns = [`Week` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [sunday, april 14, saturday, april 20, saturday, april 27]), `Kickoff` (Example values: [3 o'clock pm, 7:00 p.m., 3:00 p.m.]), `Opponent` (Example values: [scottish claymores, at frankfurt galaxy, at rhein fire]), `Final score` (Example values: [l 21–24 (ot), l 3–37, w 27–20]), `Team record` (Example values: [0–1, 0–2, 1–2]), `Game site` (Example values: [white hart lane, waldstadion, rheinstadion]), `Attendance` (Example values: [16258.0, 34186.0, 16104.0])]\n", + "ori_query": "select `final score` from `1-24918268-2` where `kickoff` = '6:00 p.m.'", + "amb_query": "SELECT \"final score\" FROM \"1-24918268-2\" WHERE kickoff IN ('6:00 pm', '6:00 p.m.')" + }, + { + "db_id": "1-25831483-1", + "question": "Who was the actor/actress with a first appearance is 26 november 2009?", + "evidence": "", + "schema_text_wo_content": "Table 1-25831483-1, columns = [Actor/Actress, Character, First Appearance, Last Appearance, Duration, Total]\n", + "schema_text_with_content": "Table 1-25831483-1, columns = [`Actor/Actress` (Example values: [mathew horne, joanna page, james corden]), `Character` (Example values: [gavin 'gav' shipman, stacey 'stace' shipman née west, neil 'smithy' smith]), `First Appearance` (Example values: [13 may 2007, 16 march 2008, june 3rd, 2007]), `Last Appearance` (Example values: [1st january 2010, 1 january 2010, january 1, 2010]), `Duration` (Example values: [2007–2010, 2007, 2008–2010, 2008–2010]), `Total` (Example values: [20.0, 11.0, 7.0])]\n", + "ori_query": "select `actor/actress` from `1-25831483-1` where `first appearance` = '26 november 2009'", + "amb_query": "SELECT \"actor/actress\" FROM \"1-25831483-1\" WHERE first appearance IN ('26 november 2009', '26/11/2009')" + }, + { + "db_id": "1-25831483-1", + "question": "Who was the actor/actress with a first appearance is 3 june 2007?", + "evidence": "", + "schema_text_wo_content": "Table 1-25831483-1, columns = [Actor/Actress, Character, First Appearance, Last Appearance, Duration, Total]\n", + "schema_text_with_content": "Table 1-25831483-1, columns = [`Actor/Actress` (Example values: [mathew horne, joanna page, james corden]), `Character` (Example values: [gavin 'gav' shipman, stacey 'stace' shipman née west, neil 'smithy' smith]), `First Appearance` (Example values: [13 may 2007, 16 march 2008, june 3rd, 2007]), `Last Appearance` (Example values: [1st january 2010, 1 january 2010, january 1, 2010]), `Duration` (Example values: [2007–2010, 2007, 2008–2010, 2008–2010]), `Total` (Example values: [20.0, 11.0, 7.0])]\n", + "ori_query": "select `actor/actress` from `1-25831483-1` where `first appearance` = '3 june 2007'", + "amb_query": "SELECT \"actor/actress\" FROM \"1-25831483-1\" WHERE first appearance IN ('3 june 2007', 'june 3rd, 2007')" + }, + { + "db_id": "1-25831483-1", + "question": "Who was the actor/actress with a last appearance of 1 january 2010 and total is 20 and character is vanessa 'nessa' jenkins?", + "evidence": "", + "schema_text_wo_content": "Table 1-25831483-1, columns = [Actor/Actress, Character, First Appearance, Last Appearance, Duration, Total]\n", + "schema_text_with_content": "Table 1-25831483-1, columns = [`Actor/Actress` (Example values: [mathew horne, joanna page, james corden]), `Character` (Example values: [gavin 'gav' shipman, stacey 'stace' shipman née west, neil 'smithy' smith]), `First Appearance` (Example values: [13 may 2007, 16 march 2008, june 3rd, 2007]), `Last Appearance` (Example values: [1st january 2010, 1 january 2010, january 1, 2010]), `Duration` (Example values: [2007–2010, 2007, 2008–2010, 2008–2010]), `Total` (Example values: [20.0, 11.0, 7.0])]\n", + "ori_query": "select `actor/actress` from `1-25831483-1` where `last appearance` = '1 january 2010' and `total` = 20 and `character` = \"vanessa 'nessa' jenkins\"", + "amb_query": "SELECT \"actor/actress\" FROM \"1-25831483-1\" WHERE last appearance IN ('1 january 2010', '1st january 2010', '01/01/2010', 'january 1, 2010') AND \"total\" = 20 AND \"character\" = 'vanessa ''nessa'' jenkins'" + }, + { + "db_id": "1-261927-2", + "question": "How many different types are allocated to the institution in boston, massachusetts? ", + "evidence": "", + "schema_text_wo_content": "Table 1-261927-2, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Left, Football Conference, Primary Conference]\n", + "schema_text_with_content": "Table 1-261927-2, columns = [`Institution` (Example values: [boston state college, bridgewater state university, fitchburg state university]), `Location` (Example values: [boston in the state of massachusetts, bridgewater town, massachusetts, fitchburg, massachusetts]), `Founded` (Example values: [1872.0, 1840.0, 1894.0]), `Type` (Example values: [public, private]), `Enrollment` (Example values: [n/a, 12,127, 5,201]), `Nickname` (Example values: [beacons, bears, falcons]), `Joined` (Example values: [1972, 1965, 1985]), `Left` (Example values: [1982, 2013, 2001]), `Football Conference` (Example values: [merged into the university of massachusetts boston, mascac, no longer sponsors football]), `Primary Conference` (Example values: [merged into the university of massachusetts boston, mascac, little east (lec)])]\n", + "ori_query": "select count(`type`) from `1-261927-2` where `location` = 'boston, massachusetts'", + "amb_query": "SELECT COUNT(\"type\") FROM \"1-261927-2\" WHERE location IN ('boston, massachusetts', 'boston in the state of massachusetts')" + }, + { + "db_id": "1-261927-2", + "question": "What is the enrollment for the institution in buzzards bay, massachusetts? ", + "evidence": "", + "schema_text_wo_content": "Table 1-261927-2, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Left, Football Conference, Primary Conference]\n", + "schema_text_with_content": "Table 1-261927-2, columns = [`Institution` (Example values: [boston state college, bridgewater state university, fitchburg state university]), `Location` (Example values: [boston in the state of massachusetts, bridgewater town, massachusetts, fitchburg, massachusetts]), `Founded` (Example values: [1872.0, 1840.0, 1894.0]), `Type` (Example values: [public, private]), `Enrollment` (Example values: [n/a, 12,127, 5,201]), `Nickname` (Example values: [beacons, bears, falcons]), `Joined` (Example values: [1972, 1965, 1985]), `Left` (Example values: [1982, 2013, 2001]), `Football Conference` (Example values: [merged into the university of massachusetts boston, mascac, no longer sponsors football]), `Primary Conference` (Example values: [merged into the university of massachusetts boston, mascac, little east (lec)])]\n", + "ori_query": "select `enrollment` from `1-261927-2` where `location` = 'buzzards bay, massachusetts'", + "amb_query": "SELECT \"enrollment\" FROM \"1-261927-2\" WHERE location IN ('buzzards bay, ma', 'buzzards bay, massachusetts')" + }, + { + "db_id": "1-261927-2", + "question": "What is the football conference for south boston, massachusetts>?", + "evidence": "", + "schema_text_wo_content": "Table 1-261927-2, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Left, Football Conference, Primary Conference]\n", + "schema_text_with_content": "Table 1-261927-2, columns = [`Institution` (Example values: [boston state college, bridgewater state university, fitchburg state university]), `Location` (Example values: [boston in the state of massachusetts, bridgewater town, massachusetts, fitchburg, massachusetts]), `Founded` (Example values: [1872.0, 1840.0, 1894.0]), `Type` (Example values: [public, private]), `Enrollment` (Example values: [n/a, 12,127, 5,201]), `Nickname` (Example values: [beacons, bears, falcons]), `Joined` (Example values: [1972, 1965, 1985]), `Left` (Example values: [1982, 2013, 2001]), `Football Conference` (Example values: [merged into the university of massachusetts boston, mascac, no longer sponsors football]), `Primary Conference` (Example values: [merged into the university of massachusetts boston, mascac, little east (lec)])]\n", + "ori_query": "select `football conference` from `1-261927-2` where `location` = 'south boston, massachusetts'", + "amb_query": "SELECT \"football conference\" FROM \"1-261927-2\" WHERE location IN ('south boston, massachusetts, united states', 'south boston, massachusetts')" + }, + { + "db_id": "1-261927-2", + "question": "How many different types are allocated to the institution in Bridgewater, Massachusetts? ", + "evidence": "", + "schema_text_wo_content": "Table 1-261927-2, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Left, Football Conference, Primary Conference]\n", + "schema_text_with_content": "Table 1-261927-2, columns = [`Institution` (Example values: [boston state college, bridgewater state university, fitchburg state university]), `Location` (Example values: [boston in the state of massachusetts, bridgewater town, massachusetts, fitchburg, massachusetts]), `Founded` (Example values: [1872.0, 1840.0, 1894.0]), `Type` (Example values: [public, private]), `Enrollment` (Example values: [n/a, 12,127, 5,201]), `Nickname` (Example values: [beacons, bears, falcons]), `Joined` (Example values: [1972, 1965, 1985]), `Left` (Example values: [1982, 2013, 2001]), `Football Conference` (Example values: [merged into the university of massachusetts boston, mascac, no longer sponsors football]), `Primary Conference` (Example values: [merged into the university of massachusetts boston, mascac, little east (lec)])]\n", + "ori_query": "select count(`type`) from `1-261927-2` where `location` = 'bridgewater, massachusetts'", + "amb_query": "SELECT COUNT(\"type\") FROM \"1-261927-2\" WHERE location IN ('bridgewater, massachusetts', 'bridgewater town, massachusetts')" + }, + { + "db_id": "1-261927-2", + "question": "What is the enrollment for the institution in Westfield, Massachusetts? ", + "evidence": "", + "schema_text_wo_content": "Table 1-261927-2, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Left, Football Conference, Primary Conference]\n", + "schema_text_with_content": "Table 1-261927-2, columns = [`Institution` (Example values: [boston state college, bridgewater state university, fitchburg state university]), `Location` (Example values: [boston in the state of massachusetts, bridgewater town, massachusetts, fitchburg, massachusetts]), `Founded` (Example values: [1872.0, 1840.0, 1894.0]), `Type` (Example values: [public, private]), `Enrollment` (Example values: [n/a, 12,127, 5,201]), `Nickname` (Example values: [beacons, bears, falcons]), `Joined` (Example values: [1972, 1965, 1985]), `Left` (Example values: [1982, 2013, 2001]), `Football Conference` (Example values: [merged into the university of massachusetts boston, mascac, no longer sponsors football]), `Primary Conference` (Example values: [merged into the university of massachusetts boston, mascac, little east (lec)])]\n", + "ori_query": "select `enrollment` from `1-261927-2` where `location` = 'westfield, massachusetts'", + "amb_query": "SELECT \"enrollment\" FROM \"1-261927-2\" WHERE location IN ('westfield, massachusetts, usa', 'westfield, massachusetts')" + }, + { + "db_id": "1-261927-2", + "question": "What is the football conference for Henniker, New Hampshire>?", + "evidence": "", + "schema_text_wo_content": "Table 1-261927-2, columns = [Institution, Location, Founded, Type, Enrollment, Nickname, Joined, Left, Football Conference, Primary Conference]\n", + "schema_text_with_content": "Table 1-261927-2, columns = [`Institution` (Example values: [boston state college, bridgewater state university, fitchburg state university]), `Location` (Example values: [boston in the state of massachusetts, bridgewater town, massachusetts, fitchburg, massachusetts]), `Founded` (Example values: [1872.0, 1840.0, 1894.0]), `Type` (Example values: [public, private]), `Enrollment` (Example values: [n/a, 12,127, 5,201]), `Nickname` (Example values: [beacons, bears, falcons]), `Joined` (Example values: [1972, 1965, 1985]), `Left` (Example values: [1982, 2013, 2001]), `Football Conference` (Example values: [merged into the university of massachusetts boston, mascac, no longer sponsors football]), `Primary Conference` (Example values: [merged into the university of massachusetts boston, mascac, little east (lec)])]\n", + "ori_query": "select `football conference` from `1-261927-2` where `location` = 'henniker, new hampshire'", + "amb_query": "SELECT \"football conference\" FROM \"1-261927-2\" WHERE location IN ('henniker, new hampshire', 'henniker, new hampshire state')" + }, + { + "db_id": "1-2801442-1", + "question": "How many people lived in the district whose headquarters is in nuapada in 2001?", + "evidence": "", + "schema_text_wo_content": "Table 1-2801442-1, columns = [Code, District, Headquarters, Population (2001 Census), Population (2011 Census), Area (km²), Density in 2011 (/km²)]\n", + "schema_text_with_content": "Table 1-2801442-1, columns = [`Code` (Example values: [an, bd, bh]), `District` (Example values: [anugul, boudh (baudh), bhadrak]), `Headquarters` (Example values: [anugul, boudh, bhadrak]), `Population (2001 Census)` (Example values: [1140003.0, 373372.0, 1335749.0]), `Population (2011 Census)` (Example values: [1273821.0, 441162.0, 1506337.0]), `Area (km²)` (Example values: [6375.0, 3098.0, 2505.0]), `Density in 2011 (/km²)` (Example values: [199.8, 142.4, 601.3])]\n", + "ori_query": "select `population (2001 census)` from `1-2801442-1` where `headquarters` = 'nuapada'", + "amb_query": "SELECT \"population (2001 census)\" FROM \"1-2801442-1\" WHERE headquarters IN ('nuapada', 'district of nuapada')" + }, + { + "db_id": "1-2801442-1", + "question": "How many people lived in the district whose headquarters is in sundargarh in 2001?", + "evidence": "", + "schema_text_wo_content": "Table 1-2801442-1, columns = [Code, District, Headquarters, Population (2001 Census), Population (2011 Census), Area (km²), Density in 2011 (/km²)]\n", + "schema_text_with_content": "Table 1-2801442-1, columns = [`Code` (Example values: [an, bd, bh]), `District` (Example values: [anugul, boudh (baudh), bhadrak]), `Headquarters` (Example values: [anugul, boudh, bhadrak]), `Population (2001 Census)` (Example values: [1140003.0, 373372.0, 1335749.0]), `Population (2011 Census)` (Example values: [1273821.0, 441162.0, 1506337.0]), `Area (km²)` (Example values: [6375.0, 3098.0, 2505.0]), `Density in 2011 (/km²)` (Example values: [199.8, 142.4, 601.3])]\n", + "ori_query": "select `population (2001 census)` from `1-2801442-1` where `headquarters` = 'sundargarh'", + "amb_query": "SELECT \"population (2001 census)\" FROM \"1-2801442-1\" WHERE headquarters IN ('sundargarh, india', 'sundargarh')" + }, + { + "db_id": "1-2801442-1", + "question": "How many people lived in the district whose headquarters is in chhatrapur in 2001?", + "evidence": "", + "schema_text_wo_content": "Table 1-2801442-1, columns = [Code, District, Headquarters, Population (2001 Census), Population (2011 Census), Area (km²), Density in 2011 (/km²)]\n", + "schema_text_with_content": "Table 1-2801442-1, columns = [`Code` (Example values: [an, bd, bh]), `District` (Example values: [anugul, boudh (baudh), bhadrak]), `Headquarters` (Example values: [anugul, boudh, bhadrak]), `Population (2001 Census)` (Example values: [1140003.0, 373372.0, 1335749.0]), `Population (2011 Census)` (Example values: [1273821.0, 441162.0, 1506337.0]), `Area (km²)` (Example values: [6375.0, 3098.0, 2505.0]), `Density in 2011 (/km²)` (Example values: [199.8, 142.4, 601.3])]\n", + "ori_query": "select `population (2001 census)` from `1-2801442-1` where `headquarters` = 'chhatrapur'", + "amb_query": "SELECT \"population (2001 census)\" FROM \"1-2801442-1\" WHERE headquarters IN ('chhatrapur', 'chhatrapur area')" + }, + { + "db_id": "1-2801442-1", + "question": "How many people lived in the district whose headquarters is in Bhubaneswar in 2001?", + "evidence": "", + "schema_text_wo_content": "Table 1-2801442-1, columns = [Code, District, Headquarters, Population (2001 Census), Population (2011 Census), Area (km²), Density in 2011 (/km²)]\n", + "schema_text_with_content": "Table 1-2801442-1, columns = [`Code` (Example values: [an, bd, bh]), `District` (Example values: [anugul, boudh (baudh), bhadrak]), `Headquarters` (Example values: [anugul, boudh, bhadrak]), `Population (2001 Census)` (Example values: [1140003.0, 373372.0, 1335749.0]), `Population (2011 Census)` (Example values: [1273821.0, 441162.0, 1506337.0]), `Area (km²)` (Example values: [6375.0, 3098.0, 2505.0]), `Density in 2011 (/km²)` (Example values: [199.8, 142.4, 601.3])]\n", + "ori_query": "select `population (2001 census)` from `1-2801442-1` where `headquarters` = 'bhubaneswar'", + "amb_query": "SELECT \"population (2001 census)\" FROM \"1-2801442-1\" WHERE headquarters IN ('bhubaneswar city', 'bhubaneswar')" + }, + { + "db_id": "1-28885977-1", + "question": "Which stadium is located in mulgrave, victoria? ", + "evidence": "", + "schema_text_wo_content": "Table 1-28885977-1, columns = [Stadium, Location, Opened, Built for, Capacity at Construction]\n", + "schema_text_with_content": "Table 1-28885977-1, columns = [`Stadium` (Example values: [docklands stadium, football park, subiaco oval]), `Location` (Example values: [melbourne, victoria, adelaide, south australia, australia, perth, western australia]), `Opened` (Example values: [2000.0, 1971.0, 1908.0]), `Built for` (Example values: [australian football league, south australian national football league, subiaco football club]), `Capacity at Construction` (Example values: [53000.0, 52000.0, 43500.0])]\n", + "ori_query": "select `stadium` from `1-28885977-1` where `location` = 'mulgrave, victoria'", + "amb_query": "SELECT \"stadium\" FROM \"1-28885977-1\" WHERE location IN ('mulgrave, victoria', 'mulgrave area, victoria')" + }, + { + "db_id": "1-28885977-1", + "question": "What was the stadium in nauru built for? ", + "evidence": "", + "schema_text_wo_content": "Table 1-28885977-1, columns = [Stadium, Location, Opened, Built for, Capacity at Construction]\n", + "schema_text_with_content": "Table 1-28885977-1, columns = [`Stadium` (Example values: [docklands stadium, football park, subiaco oval]), `Location` (Example values: [melbourne, victoria, adelaide, south australia, australia, perth, western australia]), `Opened` (Example values: [2000.0, 1971.0, 1908.0]), `Built for` (Example values: [australian football league, south australian national football league, subiaco football club]), `Capacity at Construction` (Example values: [53000.0, 52000.0, 43500.0])]\n", + "ori_query": "select `built for` from `1-28885977-1` where `location` = 'nauru'", + "amb_query": "SELECT \"built for\" FROM \"1-28885977-1\" WHERE location IN ('nauru, micronesia', 'nauru')" + }, + { + "db_id": "1-28885977-1", + "question": "Which stadium is located in Adelaide, South Australia? ", + "evidence": "", + "schema_text_wo_content": "Table 1-28885977-1, columns = [Stadium, Location, Opened, Built for, Capacity at Construction]\n", + "schema_text_with_content": "Table 1-28885977-1, columns = [`Stadium` (Example values: [docklands stadium, football park, subiaco oval]), `Location` (Example values: [melbourne, victoria, adelaide, south australia, australia, perth, western australia]), `Opened` (Example values: [2000.0, 1971.0, 1908.0]), `Built for` (Example values: [australian football league, south australian national football league, subiaco football club]), `Capacity at Construction` (Example values: [53000.0, 52000.0, 43500.0])]\n", + "ori_query": "select `stadium` from `1-28885977-1` where `location` = 'adelaide, south australia'", + "amb_query": "SELECT \"stadium\" FROM \"1-28885977-1\" WHERE location IN ('adelaide, south australia, australia', 'adelaide, south australia')" + }, + { + "db_id": "1-28885977-1", + "question": "What was the stadium in Adelaide, South Australia built for? ", + "evidence": "", + "schema_text_wo_content": "Table 1-28885977-1, columns = [Stadium, Location, Opened, Built for, Capacity at Construction]\n", + "schema_text_with_content": "Table 1-28885977-1, columns = [`Stadium` (Example values: [docklands stadium, football park, subiaco oval]), `Location` (Example values: [melbourne, victoria, adelaide, south australia, australia, perth, western australia]), `Opened` (Example values: [2000.0, 1971.0, 1908.0]), `Built for` (Example values: [australian football league, south australian national football league, subiaco football club]), `Capacity at Construction` (Example values: [53000.0, 52000.0, 43500.0])]\n", + "ori_query": "select `built for` from `1-28885977-1` where `location` = 'adelaide, south australia'", + "amb_query": "SELECT \"built for\" FROM \"1-28885977-1\" WHERE location IN ('adelaide, south australia, australia', 'adelaide, south australia')" + }, + { + "db_id": "1-28885977-1", + "question": "What was the stadium in Moorabbin, Victoria built for?", + "evidence": "", + "schema_text_wo_content": "Table 1-28885977-1, columns = [Stadium, Location, Opened, Built for, Capacity at Construction]\n", + "schema_text_with_content": "Table 1-28885977-1, columns = [`Stadium` (Example values: [docklands stadium, football park, subiaco oval]), `Location` (Example values: [melbourne, victoria, adelaide, south australia, australia, perth, western australia]), `Opened` (Example values: [2000.0, 1971.0, 1908.0]), `Built for` (Example values: [australian football league, south australian national football league, subiaco football club]), `Capacity at Construction` (Example values: [53000.0, 52000.0, 43500.0])]\n", + "ori_query": "select `built for` from `1-28885977-1` where `location` = 'moorabbin, victoria'", + "amb_query": "SELECT \"built for\" FROM \"1-28885977-1\" WHERE location IN ('moorabbin, victoria', 'moorabbin, victoria region')" + }, + { + "db_id": "1-28885977-1", + "question": "What was the capacity at construction of the stadium in Gold Coast, Queensland? ", + "evidence": "", + "schema_text_wo_content": "Table 1-28885977-1, columns = [Stadium, Location, Opened, Built for, Capacity at Construction]\n", + "schema_text_with_content": "Table 1-28885977-1, columns = [`Stadium` (Example values: [docklands stadium, football park, subiaco oval]), `Location` (Example values: [melbourne, victoria, adelaide, south australia, australia, perth, western australia]), `Opened` (Example values: [2000.0, 1971.0, 1908.0]), `Built for` (Example values: [australian football league, south australian national football league, subiaco football club]), `Capacity at Construction` (Example values: [53000.0, 52000.0, 43500.0])]\n", + "ori_query": "select `capacity at construction` from `1-28885977-1` where `location` = 'gold coast, queensland'", + "amb_query": "SELECT \"capacity at construction\" FROM \"1-28885977-1\" WHERE location IN ('gold coast city', 'gold coast, queensland')" + }, + { + "db_id": "2-1028380-5", + "question": "Name the score for buenos aires, argentina 15 february 1971", + "evidence": "", + "schema_text_wo_content": "Table 2-1028380-5, columns = [Date, Location, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 2-1028380-5, columns = [`Date` (Example values: [15 february 1971, 26 april 1971, 21 august 1972]), `Location` (Example values: [moscow, ussr (union of soviet socialist republics), buenos aires city, orange, new jersey, usa]), `Surface` (Example values: [carpet (i), clay, grass]), `Opponent in the final` (Example values: [maria kull, anna-maria nasuelli, marina kroschina]), `Score in the final` (Example values: [6–1, 7–5, 6–3, 6–4, 6–2, 6–7, 7–5])]\n", + "ori_query": "select `score in the final` from `2-1028380-5` where `location` = 'buenos aires, argentina' and `date` = '15 february 1971'", + "amb_query": "SELECT \"score in the final\" FROM \"2-1028380-5\" WHERE location IN ('buenos aires, argentina', 'buenos aires city') AND \"date\" = '15 february 1971'" + }, + { + "db_id": "2-1028380-5", + "question": "Name the score for moscow, ussr 15 february 1971", + "evidence": "", + "schema_text_wo_content": "Table 2-1028380-5, columns = [Date, Location, Surface, Opponent in the final, Score in the final]\n", + "schema_text_with_content": "Table 2-1028380-5, columns = [`Date` (Example values: [15 february 1971, 26 april 1971, 21 august 1972]), `Location` (Example values: [moscow, ussr (union of soviet socialist republics), buenos aires city, orange, new jersey, usa]), `Surface` (Example values: [carpet (i), clay, grass]), `Opponent in the final` (Example values: [maria kull, anna-maria nasuelli, marina kroschina]), `Score in the final` (Example values: [6–1, 7–5, 6–3, 6–4, 6–2, 6–7, 7–5])]\n", + "ori_query": "select `score in the final` from `2-1028380-5` where `location` = 'moscow, ussr' and `date` = '15 february 1971'", + "amb_query": "SELECT \"score in the final\" FROM \"2-1028380-5\" WHERE location IN ('moscow, soviet union', 'moscow, ussr', 'moscow, ussr (union of soviet socialist republics)') AND \"date\" = '15 february 1971'" + }, + { + "db_id": "2-10242364-2", + "question": "Tell me the network for september 2013", + "evidence": "", + "schema_text_wo_content": "Table 2-10242364-2, columns = [Country/Region, Name, Host, Network, Premiere, Prize]\n", + "schema_text_with_content": "Table 2-10242364-2, columns = [`Country/Region` (Example values: [arab world, belgium, france]), `Name` (Example values: [مسابقة الجماهير musabaqet el jamahir, le grand quiz des belges, le plus grand quiz de france]), `Host` (Example values: [ashraf hamdi, jacques van den biggelaar, sandrine quétier]), `Network` (Example values: [mbc 1, rtl-tvi, tf1]), `Premiere` (Example values: [11 january 2011, 13th january 2009, 6 november 2009]), `Prize` (Example values: [sr 2.000.000, € 100.000, € 250.000 + € 10.000])]\n", + "ori_query": "select `network` from `2-10242364-2` where `premiere` = 'september 2013'", + "amb_query": "SELECT \"network\" FROM \"2-10242364-2\" WHERE premiere IN ('september 2013', '2013-09')" + }, + { + "db_id": "2-10242364-2", + "question": "Tell me the network for 13 january 2009", + "evidence": "", + "schema_text_wo_content": "Table 2-10242364-2, columns = [Country/Region, Name, Host, Network, Premiere, Prize]\n", + "schema_text_with_content": "Table 2-10242364-2, columns = [`Country/Region` (Example values: [arab world, belgium, france]), `Name` (Example values: [مسابقة الجماهير musabaqet el jamahir, le grand quiz des belges, le plus grand quiz de france]), `Host` (Example values: [ashraf hamdi, jacques van den biggelaar, sandrine quétier]), `Network` (Example values: [mbc 1, rtl-tvi, tf1]), `Premiere` (Example values: [11 january 2011, 13th january 2009, 6 november 2009]), `Prize` (Example values: [sr 2.000.000, € 100.000, € 250.000 + € 10.000])]\n", + "ori_query": "select `network` from `2-10242364-2` where `premiere` = '13 january 2009'", + "amb_query": "SELECT \"network\" FROM \"2-10242364-2\" WHERE premiere IN ('13th january 2009', '13 january 2009')" + }, + { + "db_id": "2-10242364-2", + "question": "Tell me the 13 january 2009 host", + "evidence": "", + "schema_text_wo_content": "Table 2-10242364-2, columns = [Country/Region, Name, Host, Network, Premiere, Prize]\n", + "schema_text_with_content": "Table 2-10242364-2, columns = [`Country/Region` (Example values: [arab world, belgium, france]), `Name` (Example values: [مسابقة الجماهير musabaqet el jamahir, le grand quiz des belges, le plus grand quiz de france]), `Host` (Example values: [ashraf hamdi, jacques van den biggelaar, sandrine quétier]), `Network` (Example values: [mbc 1, rtl-tvi, tf1]), `Premiere` (Example values: [11 january 2011, 13th january 2009, 6 november 2009]), `Prize` (Example values: [sr 2.000.000, € 100.000, € 250.000 + € 10.000])]\n", + "ori_query": "select `host` from `2-10242364-2` where `premiere` = '13 january 2009'", + "amb_query": "SELECT \"host\" FROM \"2-10242364-2\" WHERE premiere IN ('13th january 2009', '13 january 2009')" + }, + { + "db_id": "2-10325248-2", + "question": "Tell me the opponents for runner-up and surface of grass", + "evidence": "", + "schema_text_wo_content": "Table 2-10325248-2, columns = [Outcome, Date, Tournament, Surface, Partner, Opponents in the final]\n", + "schema_text_with_content": "Table 2-10325248-2, columns = [`Outcome` (Example values: [runner-up, winner]), `Date` (Example values: [1968.0, 1969.0, 1971.0]), `Tournament` (Example values: [barcelona , spain, london/queen's club , u.k., salisbury , u.s.]), `Surface` (Example values: [clay, grass court, carpet]), `Partner` (Example values: [josé mandarino, ove nils bengtson, clark graebner]), `Opponents in the final` (Example values: [carlos fernández patricio rodríguez, owen davidson dennis ralston, juan gisbert, sr. manuel orantes])]\n", + "ori_query": "select `opponents in the final` from `2-10325248-2` where `outcome` = 'runner-up' and `surface` = 'grass'", + "amb_query": "SELECT \"opponents in the final\" FROM \"2-10325248-2\" WHERE \"outcome\" = 'runner-up' AND surface IN ('grass court', 'grass')" + }, + { + "db_id": "2-1014206-1", + "question": "Which fleet launched on september 25, 1960?", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-1, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-1, columns = [`Shipyard` (Example values: [leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [december 20, 1958, september 30, 1959, march 26, 1960]), `Launched` (Example values: [may 12, 1960, september 25th, 1960, 07/30/1961]), `Commissioned` (Example values: [28th june 1961, december 16, 1961, december 28, 1961]), `Fleet` (Example values: [pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1985 for scrapping])]\n", + "ori_query": "select `fleet` from `2-1014206-1` where `launched` = 'september 25, 1960'", + "amb_query": "SELECT \"fleet\" FROM \"2-1014206-1\" WHERE launched IN ('september 25th, 1960', 'september 25, 1960')" + }, + { + "db_id": "2-1014206-1", + "question": "Which fleet launched on July 30, 1961?", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-1, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-1, columns = [`Shipyard` (Example values: [leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [december 20, 1958, september 30, 1959, march 26, 1960]), `Launched` (Example values: [may 12, 1960, september 25th, 1960, 07/30/1961]), `Commissioned` (Example values: [28th june 1961, december 16, 1961, december 28, 1961]), `Fleet` (Example values: [pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1985 for scrapping])]\n", + "ori_query": "select `fleet` from `2-1014206-1` where `launched` = 'july 30, 1961'", + "amb_query": "SELECT \"fleet\" FROM \"2-1014206-1\" WHERE launched IN ('07/30/1961', 'july 30, 1961')" + }, + { + "db_id": "2-1014206-1", + "question": "What is the status of the fleet that was commissioned on june 28, 1961?", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-1, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-1, columns = [`Shipyard` (Example values: [leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [december 20, 1958, september 30, 1959, march 26, 1960]), `Launched` (Example values: [may 12, 1960, september 25th, 1960, 07/30/1961]), `Commissioned` (Example values: [28th june 1961, december 16, 1961, december 28, 1961]), `Fleet` (Example values: [pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1985 for scrapping])]\n", + "ori_query": "select `status` from `2-1014206-1` where `commissioned` = 'june 28, 1961'", + "amb_query": "SELECT \"status\" FROM \"2-1014206-1\" WHERE commissioned IN ('june 28, 1961', '28th june 1961')" + }, + { + "db_id": "2-1014206-1", + "question": "What is the status of the fleet that was commissioned on July 28, 1963?", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-1, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-1, columns = [`Shipyard` (Example values: [leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [december 20, 1958, september 30, 1959, march 26, 1960]), `Launched` (Example values: [may 12, 1960, september 25th, 1960, 07/30/1961]), `Commissioned` (Example values: [28th june 1961, december 16, 1961, december 28, 1961]), `Fleet` (Example values: [pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1985 for scrapping])]\n", + "ori_query": "select `status` from `2-1014206-1` where `commissioned` = 'july 28, 1963'", + "amb_query": "SELECT \"status\" FROM \"2-1014206-1\" WHERE commissioned IN ('1963-07-28', 'july 28, 1963')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me the launched for october 29, 1965", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `launched` from `2-1014206-2` where `commissioned` = 'october 29, 1965'", + "amb_query": "SELECT \"launched\" FROM \"2-1014206-2\" WHERE commissioned IN ('october 29, 1965', 'october 29th, 1965')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me the launched for march 31, 1964", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `launched` from `2-1014206-2` where `commissioned` = 'march 31, 1964'", + "amb_query": "SELECT \"launched\" FROM \"2-1014206-2\" WHERE commissioned IN ('1964-03-31', 'march 31, 1964')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me the launched for october 31, 1965", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `launched` from `2-1014206-2` where `commissioned` = 'october 31, 1965'", + "amb_query": "SELECT \"launched\" FROM \"2-1014206-2\" WHERE commissioned IN ('october 31, 1965', '10/31/1965')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me the launched for august 31, 1964", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `launched` from `2-1014206-2` where `commissioned` = 'august 31, 1964'", + "amb_query": "SELECT \"launched\" FROM \"2-1014206-2\" WHERE commissioned IN ('august 31, 1964', '31st august 1964')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me what was commissioned february 10, 1964", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `commissioned` from `2-1014206-2` where `launched` = 'february 10, 1964'", + "amb_query": "SELECT \"commissioned\" FROM \"2-1014206-2\" WHERE launched IN ('february 10, 1964', '10-02-1964')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me what was commissioned august 26, 1966", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `commissioned` from `2-1014206-2` where `launched` = 'august 26, 1966'", + "amb_query": "SELECT \"commissioned\" FROM \"2-1014206-2\" WHERE launched IN ('26th august 1966', 'august 26, 1966')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me what was commissioned may 20, 1966", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `commissioned` from `2-1014206-2` where `launched` = 'may 20, 1966'", + "amb_query": "SELECT \"commissioned\" FROM \"2-1014206-2\" WHERE launched IN ('20th may 1966', 'may 20, 1966')" + }, + { + "db_id": "2-1014206-2", + "question": "Tell me what was commissioned december 30, 1965", + "evidence": "", + "schema_text_wo_content": "Table 2-1014206-2, columns = [Shipyard, Laid down, Launched, Commissioned, Fleet, Status]\n", + "schema_text_with_content": "Table 2-1014206-2, columns = [`Shipyard` (Example values: [sevmash, severodvinsk, leninskiy komsomol shipyard, komsomolsk-na-amure]), `Laid down` (Example values: [may 30, 1961, january 11, 1962, may 16, 1962]), `Launched` (Example values: [september 6, 1962, june 16, 1963, august 4, 1963]), `Commissioned` (Example values: [october 31, 1963, december 15, 1963, december 26, 1963]), `Fleet` (Example values: [northern, pacific]), `Status` (Example values: [decommissioned 1989 for scrapping, decommissioned 1990 for scrapping, decommissioned 1991 for scrapping])]\n", + "ori_query": "select `commissioned` from `2-1014206-2` where `launched` = 'december 30, 1965'", + "amb_query": "SELECT \"commissioned\" FROM \"2-1014206-2\" WHERE launched IN ('december 30, 1965', '30th december 1965')" + }, + { + "db_id": "2-1055707-1", + "question": "The color emerald is assigned to which Terminus?", + "evidence": "", + "schema_text_wo_content": "Table 2-1055707-1, columns = [Line, Color, Terminus, Length, Stations, Daily Ridership]\n", + "schema_text_with_content": "Table 2-1055707-1, columns = [`Line` (Example values: [line 7, line 8, line 9]), `Color` (Example values: [ruby, diamond color, emerald tone]), `Terminus` (Example values: [luz ↔ jundiaí, júlio prestes ↔ amador bueno, osasco ↔ grajaú]), `Length` (Example values: [kilometres (mi)]), `Stations` (Example values: [17 + 1 (under construction), 24, 18]), `Daily Ridership` (Example values: [386.0, 414.0, 266.0])]\n", + "ori_query": "select `terminus` from `2-1055707-1` where `color` = 'emerald'", + "amb_query": "SELECT \"terminus\" FROM \"2-1055707-1\" WHERE color IN ('emerald', 'emerald tone')" + }, + { + "db_id": "2-1055707-1", + "question": "The color diamond is assigned to which Terminus?", + "evidence": "", + "schema_text_wo_content": "Table 2-1055707-1, columns = [Line, Color, Terminus, Length, Stations, Daily Ridership]\n", + "schema_text_with_content": "Table 2-1055707-1, columns = [`Line` (Example values: [line 7, line 8, line 9]), `Color` (Example values: [ruby, diamond color, emerald tone]), `Terminus` (Example values: [luz ↔ jundiaí, júlio prestes ↔ amador bueno, osasco ↔ grajaú]), `Length` (Example values: [kilometres (mi)]), `Stations` (Example values: [17 + 1 (under construction), 24, 18]), `Daily Ridership` (Example values: [386.0, 414.0, 266.0])]\n", + "ori_query": "select `terminus` from `2-1055707-1` where `color` = 'diamond'", + "amb_query": "SELECT \"terminus\" FROM \"2-1055707-1\" WHERE color IN ('diamond', 'diamond color')" + }, + { + "db_id": "2-1055707-1", + "question": "The color sapphire is assigned to which Terminus?", + "evidence": "", + "schema_text_wo_content": "Table 2-1055707-1, columns = [Line, Color, Terminus, Length, Stations, Daily Ridership]\n", + "schema_text_with_content": "Table 2-1055707-1, columns = [`Line` (Example values: [line 7, line 8, line 9]), `Color` (Example values: [ruby, diamond color, emerald tone]), `Terminus` (Example values: [luz ↔ jundiaí, júlio prestes ↔ amador bueno, osasco ↔ grajaú]), `Length` (Example values: [kilometres (mi)]), `Stations` (Example values: [17 + 1 (under construction), 24, 18]), `Daily Ridership` (Example values: [386.0, 414.0, 266.0])]\n", + "ori_query": "select `terminus` from `2-1055707-1` where `color` = 'sapphire'", + "amb_query": "SELECT \"terminus\" FROM \"2-1055707-1\" WHERE color IN ('sapphire shade', 'sapphire')" + }, + { + "db_id": "2-10637415-8", + "question": "What was the result of the match that took place in leeds, featuring a score of 48-12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10637415-8, columns = [Date, Result, Score, Stadium, City, Crowd]\n", + "schema_text_with_content": "Table 2-10637415-8, columns = [`Date` (Example values: [18 july 1997, 19 july 1997, 20 july 1997]), `Result` (Example values: [penrith panthers def. warrington wolves, leeds rhinos def. adelaide rams, oldham bears def. north queensland cowboys]), `Score` (Example values: [48-12, 22-14, 20-16]), `Stadium` (Example values: [penrith oval, headlingley stadium, boundary park]), `City` (Example values: [penrith city, city of leeds, oldham]), `Crowd` (Example values: [5,642, 11,269, 2,961])]\n", + "ori_query": "select `result` from `2-10637415-8` where `score` = '48-12' and `city` = 'leeds'", + "amb_query": "SELECT \"result\" FROM \"2-10637415-8\" WHERE \"score\" = '48-12' AND city IN ('city of leeds', 'leeds')" + }, + { + "db_id": "2-10637415-8", + "question": "What was the result of the match in newcastle that featured a score of 48-12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10637415-8, columns = [Date, Result, Score, Stadium, City, Crowd]\n", + "schema_text_with_content": "Table 2-10637415-8, columns = [`Date` (Example values: [18 july 1997, 19 july 1997, 20 july 1997]), `Result` (Example values: [penrith panthers def. warrington wolves, leeds rhinos def. adelaide rams, oldham bears def. north queensland cowboys]), `Score` (Example values: [48-12, 22-14, 20-16]), `Stadium` (Example values: [penrith oval, headlingley stadium, boundary park]), `City` (Example values: [penrith city, city of leeds, oldham]), `Crowd` (Example values: [5,642, 11,269, 2,961])]\n", + "ori_query": "select `result` from `2-10637415-8` where `score` = '48-12' and `city` = 'newcastle'", + "amb_query": "SELECT \"result\" FROM \"2-10637415-8\" WHERE \"score\" = '48-12' AND city IN ('newcastle', 'newcastle city')" + }, + { + "db_id": "2-10637415-8", + "question": "What was the result of the match that took place in Perth, featuring a score of 48-12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10637415-8, columns = [Date, Result, Score, Stadium, City, Crowd]\n", + "schema_text_with_content": "Table 2-10637415-8, columns = [`Date` (Example values: [18 july 1997, 19 july 1997, 20 july 1997]), `Result` (Example values: [penrith panthers def. warrington wolves, leeds rhinos def. adelaide rams, oldham bears def. north queensland cowboys]), `Score` (Example values: [48-12, 22-14, 20-16]), `Stadium` (Example values: [penrith oval, headlingley stadium, boundary park]), `City` (Example values: [penrith city, city of leeds, oldham]), `Crowd` (Example values: [5,642, 11,269, 2,961])]\n", + "ori_query": "select `result` from `2-10637415-8` where `score` = '48-12' and `city` = 'perth'", + "amb_query": "SELECT \"result\" FROM \"2-10637415-8\" WHERE \"score\" = '48-12' AND city IN ('perth', 'city of perth')" + }, + { + "db_id": "2-10637415-8", + "question": "What was the result of the match in Penrith that featured a score of 48-12?", + "evidence": "", + "schema_text_wo_content": "Table 2-10637415-8, columns = [Date, Result, Score, Stadium, City, Crowd]\n", + "schema_text_with_content": "Table 2-10637415-8, columns = [`Date` (Example values: [18 july 1997, 19 july 1997, 20 july 1997]), `Result` (Example values: [penrith panthers def. warrington wolves, leeds rhinos def. adelaide rams, oldham bears def. north queensland cowboys]), `Score` (Example values: [48-12, 22-14, 20-16]), `Stadium` (Example values: [penrith oval, headlingley stadium, boundary park]), `City` (Example values: [penrith city, city of leeds, oldham]), `Crowd` (Example values: [5,642, 11,269, 2,961])]\n", + "ori_query": "select `result` from `2-10637415-8` where `score` = '48-12' and `city` = 'penrith'", + "amb_query": "SELECT \"result\" FROM \"2-10637415-8\" WHERE \"score\" = '48-12' AND city IN ('penrith city', 'penrith')" + }, + { + "db_id": "2-10637415-10", + "question": "What stadium is in leeds?", + "evidence": "", + "schema_text_wo_content": "Table 2-10637415-10, columns = [Date, Result, Score, Stadium, City, Crowd]\n", + "schema_text_with_content": "Table 2-10637415-10, columns = [`Date` (Example values: [1 august 1997, 2 august 1997, 3 august 1997]), `Result` (Example values: [perth reds def. paris-st germain, canterbury bulldogs def. london broncos, cronulla sharks def. bradford bulls]), `Score` (Example values: [18-8, 44-22, 40-12]), `Stadium` (Example values: [waca ground, the stoop, shark park]), `City` (Example values: [perth, london, sydney]), `Crowd` (Example values: [5,160, 6,923, 8,272])]\n", + "ori_query": "select `stadium` from `2-10637415-10` where `city` = 'leeds'", + "amb_query": "SELECT \"stadium\" FROM \"2-10637415-10\" WHERE city IN ('leeds, england', 'leeds')" + }, + { + "db_id": "2-10637415-10", + "question": "What stadium is in penrith?", + "evidence": "", + "schema_text_wo_content": "Table 2-10637415-10, columns = [Date, Result, Score, Stadium, City, Crowd]\n", + "schema_text_with_content": "Table 2-10637415-10, columns = [`Date` (Example values: [1 august 1997, 2 august 1997, 3 august 1997]), `Result` (Example values: [perth reds def. paris-st germain, canterbury bulldogs def. london broncos, cronulla sharks def. bradford bulls]), `Score` (Example values: [18-8, 44-22, 40-12]), `Stadium` (Example values: [waca ground, the stoop, shark park]), `City` (Example values: [perth, london, sydney]), `Crowd` (Example values: [5,160, 6,923, 8,272])]\n", + "ori_query": "select `stadium` from `2-10637415-10` where `city` = 'penrith'", + "amb_query": "SELECT \"stadium\" FROM \"2-10637415-10\" WHERE city IN ('penrith', 'penrith region')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the IATA code for malé?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `iata` from `2-10777895-2` where `city` = 'malé'", + "amb_query": "SELECT \"iata\" FROM \"2-10777895-2\" WHERE city IN ('malé, maldives city', 'malé')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the IATA code for guilin?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `iata` from `2-10777895-2` where `city` = 'guilin'", + "amb_query": "SELECT \"iata\" FROM \"2-10777895-2\" WHERE \"city\" = 'guilin'" + }, + { + "db_id": "2-10777895-2", + "question": "What is the IATA code for subic bay?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `iata` from `2-10777895-2` where `city` = 'subic bay'", + "amb_query": "SELECT \"iata\" FROM \"2-10777895-2\" WHERE city IN ('subic bay', 'subic bay freeport zone')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the IATA code for tianjin?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `iata` from `2-10777895-2` where `city` = 'tianjin'", + "amb_query": "SELECT \"iata\" FROM \"2-10777895-2\" WHERE city IN ('tianjin, china', 'tianjin')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the ICAO for the airport in penang?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `icao` from `2-10777895-2` where `city` = 'penang'", + "amb_query": "SELECT \"icao\" FROM \"2-10777895-2\" WHERE city IN ('penang', 'penang, malaysia')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the ICAO for the airport in dhaka?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `icao` from `2-10777895-2` where `city` = 'dhaka'", + "amb_query": "SELECT \"icao\" FROM \"2-10777895-2\" WHERE city IN ('dhaka', 'dhaka city')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the ICAO for the airport in shijiazhuang?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `icao` from `2-10777895-2` where `city` = 'shijiazhuang'", + "amb_query": "SELECT \"icao\" FROM \"2-10777895-2\" WHERE city IN ('shijiazhuang', 'shijiazhuang, china')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the IATA code for Delhi?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `iata` from `2-10777895-2` where `city` = 'delhi'", + "amb_query": "SELECT \"iata\" FROM \"2-10777895-2\" WHERE city IN ('national capital territory of delhi', 'delhi')" + }, + { + "db_id": "2-10777895-2", + "question": "What is the ICAO for the airport in Ningbo?", + "evidence": "", + "schema_text_wo_content": "Table 2-10777895-2, columns = [City, Country, IATA, ICAO, Airport]\n", + "schema_text_with_content": "Table 2-10777895-2, columns = [`City` (Example values: [bangkok, beijing, changsha]), `Country` (Example values: [thailand, china, india]), `IATA` (Example values: [bkk, pek, csx]), `ICAO` (Example values: [vtbs, zbaa, zgha]), `Airport` (Example values: [suvarnabhumi airport *, beijing capital international airport, changsha huanghua international airport [t]])]\n", + "ori_query": "select `icao` from `2-10777895-2` where `city` = 'ningbo'", + "amb_query": "SELECT \"icao\" FROM \"2-10777895-2\" WHERE city IN ('ningbo', 'ningbo, china')" + }, + { + "db_id": "2-14040750-2", + "question": "How many seasons took place in st. moritz, switzerland?", + "evidence": "", + "schema_text_wo_content": "Table 2-14040750-2, columns = [Season, Date, Location, Discipline, Place]\n", + "schema_text_with_content": "Table 2-14040750-2, columns = [`Season` (Example values: [2009.0, 2010.0, 2011.0]), `Date` (Example values: [20 nov 2008, 12 dec 2009, 27 nov 2010]), `Location` (Example values: [aspen , usa, åre , sweden, aspen, usa resort]), `Discipline` (Example values: [giant slalom]), `Place` (Example values: [1st, 3rd, 2nd])]\n", + "ori_query": "select count(`season`) from `2-14040750-2` where `location` = 'st. moritz, switzerland'", + "amb_query": "SELECT COUNT(\"season\") FROM \"2-14040750-2\" WHERE location IN ('st. moritz, switzerland', 'st. moritz, graubünden, switzerland')" + }, + { + "db_id": "2-14040750-2", + "question": "How many seasons took place in soldeu , andorra?", + "evidence": "", + "schema_text_wo_content": "Table 2-14040750-2, columns = [Season, Date, Location, Discipline, Place]\n", + "schema_text_with_content": "Table 2-14040750-2, columns = [`Season` (Example values: [2009.0, 2010.0, 2011.0]), `Date` (Example values: [20 nov 2008, 12 dec 2009, 27 nov 2010]), `Location` (Example values: [aspen , usa, åre , sweden, aspen, usa resort]), `Discipline` (Example values: [giant slalom]), `Place` (Example values: [1st, 3rd, 2nd])]\n", + "ori_query": "select count(`season`) from `2-14040750-2` where `location` = 'soldeu , andorra'", + "amb_query": "SELECT COUNT(\"season\") FROM \"2-14040750-2\" WHERE location IN ('soldeu , andorra', 'soldeu, andorra')" + }, + { + "db_id": "2-14040750-2", + "question": "How many seasons took place in aspen, usa?", + "evidence": "", + "schema_text_wo_content": "Table 2-14040750-2, columns = [Season, Date, Location, Discipline, Place]\n", + "schema_text_with_content": "Table 2-14040750-2, columns = [`Season` (Example values: [2009.0, 2010.0, 2011.0]), `Date` (Example values: [20 nov 2008, 12 dec 2009, 27 nov 2010]), `Location` (Example values: [aspen , usa, åre , sweden, aspen, usa resort]), `Discipline` (Example values: [giant slalom]), `Place` (Example values: [1st, 3rd, 2nd])]\n", + "ori_query": "select count(`season`) from `2-14040750-2` where `location` = 'aspen, usa'", + "amb_query": "SELECT COUNT(\"season\") FROM \"2-14040750-2\" WHERE location IN ('aspen, usa', 'aspen, usa resort')" + }, + { + "db_id": "2-15236220-4", + "question": "What is the Producer on january 8, 2006?", + "evidence": "", + "schema_text_wo_content": "Table 2-15236220-4, columns = [Year, Title, Role, Producer, Director]\n", + "schema_text_with_content": "Table 2-15236220-4, columns = [`Year` (Example values: [april 30, 2003, december 25, 2003, may 5, 2004]), `Title` (Example values: [till there was you, mano po 2: my home, i will survive]), `Role` (Example values: [joanna boborol, grace tan, mylene]), `Producer` (Example values: [star cinema, regal films, bas films/regal films]), `Director` (Example values: [joyce bernal, erik matti, joel lamangan])]\n", + "ori_query": "select `producer` from `2-15236220-4` where `year` = 'january 8, 2006'", + "amb_query": "SELECT \"producer\" FROM \"2-15236220-4\" WHERE year IN ('the 8th of january, 2006', 'january 8, 2006')" + }, + { + "db_id": "2-15236220-4", + "question": "What is the Producer on august 9, 2006?", + "evidence": "", + "schema_text_wo_content": "Table 2-15236220-4, columns = [Year, Title, Role, Producer, Director]\n", + "schema_text_with_content": "Table 2-15236220-4, columns = [`Year` (Example values: [april 30, 2003, december 25, 2003, may 5, 2004]), `Title` (Example values: [till there was you, mano po 2: my home, i will survive]), `Role` (Example values: [joanna boborol, grace tan, mylene]), `Producer` (Example values: [star cinema, regal films, bas films/regal films]), `Director` (Example values: [joyce bernal, erik matti, joel lamangan])]\n", + "ori_query": "select `producer` from `2-15236220-4` where `year` = 'august 9, 2006'", + "amb_query": "SELECT \"producer\" FROM \"2-15236220-4\" WHERE year IN ('the date august 9, 2006', 'august 9, 2006')" + }, + { + "db_id": "2-15236220-4", + "question": "What is the Producer on December 25, 2006?", + "evidence": "", + "schema_text_wo_content": "Table 2-15236220-4, columns = [Year, Title, Role, Producer, Director]\n", + "schema_text_with_content": "Table 2-15236220-4, columns = [`Year` (Example values: [april 30, 2003, december 25, 2003, may 5, 2004]), `Title` (Example values: [till there was you, mano po 2: my home, i will survive]), `Role` (Example values: [joanna boborol, grace tan, mylene]), `Producer` (Example values: [star cinema, regal films, bas films/regal films]), `Director` (Example values: [joyce bernal, erik matti, joel lamangan])]\n", + "ori_query": "select `producer` from `2-15236220-4` where `year` = 'december 25, 2006'", + "amb_query": "SELECT \"producer\" FROM \"2-15236220-4\" WHERE year IN ('december 25, 2006', '25th december 2006')" + }, + { + "db_id": "2-14160327-4", + "question": "what song is a genre of punk", + "evidence": "", + "schema_text_wo_content": "Table 2-14160327-4, columns = [Song title, Artist, Language, Decade, Genre, Exportable, Family Friendly]\n", + "schema_text_with_content": "Table 2-14160327-4, columns = [`Song title` (Example values: [\" beetlebum \", \"countdown to insanity\", \" hier kommt alex \"]), `Artist` (Example values: [blur, h-blockx, toten hosen die toten hosen]), `Language` (Example values: [english, german, french]), `Decade` (Example values: [1990s, 2000s, 1980s]), `Genre` (Example values: [alternative, rock, punk]), `Exportable` (Example values: [yes, rock band 2 only, no]), `Family Friendly` (Example values: [no, yes])]\n", + "ori_query": "select `song title` from `2-14160327-4` where `genre` = 'punk'", + "amb_query": "SELECT \"song title\" FROM \"2-14160327-4\" WHERE genre IN ('punk subculture', 'punk')" + }, + { + "db_id": "2-14160327-4", + "question": "what song is a genre of glam", + "evidence": "", + "schema_text_wo_content": "Table 2-14160327-4, columns = [Song title, Artist, Language, Decade, Genre, Exportable, Family Friendly]\n", + "schema_text_with_content": "Table 2-14160327-4, columns = [`Song title` (Example values: [\" beetlebum \", \"countdown to insanity\", \" hier kommt alex \"]), `Artist` (Example values: [blur, h-blockx, toten hosen die toten hosen]), `Language` (Example values: [english, german, french]), `Decade` (Example values: [1990s, 2000s, 1980s]), `Genre` (Example values: [alternative, rock, punk]), `Exportable` (Example values: [yes, rock band 2 only, no]), `Family Friendly` (Example values: [no, yes])]\n", + "ori_query": "select `song title` from `2-14160327-4` where `genre` = 'glam'", + "amb_query": "SELECT \"song title\" FROM \"2-14160327-4\" WHERE genre IN ('glam genre', 'glam')" + }, + { + "db_id": "2-14027795-2", + "question": "What is the total weight in normangee, texas?", + "evidence": "", + "schema_text_wo_content": "Table 2-14027795-2, columns = [Name, Number, Position, Weight*, Year, Hometown]\n", + "schema_text_with_content": "Table 2-14027795-2, columns = [`Name` (Example values: [davis, bryan, lewis, derreck, roland, derrick]), `Number` (Example values: [0.0, 2.0, 3.0]), `Position` (Example values: [f/c, g, c]), `Weight*` (Example values: [250.0, 197.0, 190.0]), `Year` (Example values: [so.-1l, fr., spm jr.-1l]), `Hometown` (Example values: [victory park, tulsa, oklahoma, usa, san antonio, texas])]\n", + "ori_query": "select sum(`weight*`) from `2-14027795-2` where `hometown` = 'normangee, texas'", + "amb_query": "SELECT SUM(\"weight*\") FROM \"2-14027795-2\" WHERE hometown IN ('normangee, tx', 'normangee, texas')" + }, + { + "db_id": "2-14027795-2", + "question": "What is the number with the f position in lufkin, texas?", + "evidence": "", + "schema_text_wo_content": "Table 2-14027795-2, columns = [Name, Number, Position, Weight*, Year, Hometown]\n", + "schema_text_with_content": "Table 2-14027795-2, columns = [`Name` (Example values: [davis, bryan, lewis, derreck, roland, derrick]), `Number` (Example values: [0.0, 2.0, 3.0]), `Position` (Example values: [f/c, g, c]), `Weight*` (Example values: [250.0, 197.0, 190.0]), `Year` (Example values: [so.-1l, fr., spm jr.-1l]), `Hometown` (Example values: [victory park, tulsa, oklahoma, usa, san antonio, texas])]\n", + "ori_query": "select count(`number`) from `2-14027795-2` where `position` = 'f' and `hometown` = 'lufkin, texas'", + "amb_query": "SELECT COUNT(\"number\") FROM \"2-14027795-2\" WHERE \"position\" = 'f' AND hometown IN ('lufkin city, texas', 'lufkin, texas')" + }, + { + "db_id": "2-14027795-2", + "question": "What is the total weight in Tulsa, Oklahoma?", + "evidence": "", + "schema_text_wo_content": "Table 2-14027795-2, columns = [Name, Number, Position, Weight*, Year, Hometown]\n", + "schema_text_with_content": "Table 2-14027795-2, columns = [`Name` (Example values: [davis, bryan, lewis, derreck, roland, derrick]), `Number` (Example values: [0.0, 2.0, 3.0]), `Position` (Example values: [f/c, g, c]), `Weight*` (Example values: [250.0, 197.0, 190.0]), `Year` (Example values: [so.-1l, fr., spm jr.-1l]), `Hometown` (Example values: [victory park, tulsa, oklahoma, usa, san antonio, texas])]\n", + "ori_query": "select sum(`weight*`) from `2-14027795-2` where `hometown` = 'tulsa, oklahoma'", + "amb_query": "SELECT SUM(\"weight*\") FROM \"2-14027795-2\" WHERE hometown IN ('tulsa, oklahoma, usa', 'tulsa, oklahoma')" + }, + { + "db_id": "2-14027795-2", + "question": "What is the number with the f position in Dallas, Texas?", + "evidence": "", + "schema_text_wo_content": "Table 2-14027795-2, columns = [Name, Number, Position, Weight*, Year, Hometown]\n", + "schema_text_with_content": "Table 2-14027795-2, columns = [`Name` (Example values: [davis, bryan, lewis, derreck, roland, derrick]), `Number` (Example values: [0.0, 2.0, 3.0]), `Position` (Example values: [f/c, g, c]), `Weight*` (Example values: [250.0, 197.0, 190.0]), `Year` (Example values: [so.-1l, fr., spm jr.-1l]), `Hometown` (Example values: [victory park, tulsa, oklahoma, usa, san antonio, texas])]\n", + "ori_query": "select count(`number`) from `2-14027795-2` where `position` = 'f' and `hometown` = 'dallas, texas'", + "amb_query": "SELECT COUNT(\"number\") FROM \"2-14027795-2\" WHERE \"position\" = 'f' AND hometown IN ('victory park', 'dallas, texas metropolitan area', 'dallas, texas')" + }, + { + "db_id": "2-14176339-3", + "question": "Which Opposition has a Year smaller than 1977, and a City of holbeck?", + "evidence": "", + "schema_text_wo_content": "Table 2-14176339-3, columns = [Score, Opposition, Venue, City, Year]\n", + "schema_text_with_content": "Table 2-14176339-3, columns = [`Score` (Example values: [25.0, 27.0, 28.0]), `Opposition` (Example values: [derbyshire, surrey, australians]), `Venue` (Example values: [old trafford, aigburth, recreation ground]), `City` (Example values: [manchester, uk, manchester, england, liverpool]), `Year` (Example values: [1871.0, 1958.0, 1896.0])]\n", + "ori_query": "select `opposition` from `2-14176339-3` where `year` < 1977 and `city` = 'holbeck'", + "amb_query": "SELECT \"opposition\" FROM \"2-14176339-3\" WHERE \"year\" < 1977 AND city IN ('holbeck', 'holbeck, leeds')" + }, + { + "db_id": "2-14176339-3", + "question": "Which Opposition has a Year smaller than 1977, and a City of manchester?", + "evidence": "", + "schema_text_wo_content": "Table 2-14176339-3, columns = [Score, Opposition, Venue, City, Year]\n", + "schema_text_with_content": "Table 2-14176339-3, columns = [`Score` (Example values: [25.0, 27.0, 28.0]), `Opposition` (Example values: [derbyshire, surrey, australians]), `Venue` (Example values: [old trafford, aigburth, recreation ground]), `City` (Example values: [manchester, uk, manchester, england, liverpool]), `Year` (Example values: [1871.0, 1958.0, 1896.0])]\n", + "ori_query": "select `opposition` from `2-14176339-3` where `year` < 1977 and `city` = 'manchester'", + "amb_query": "SELECT \"opposition\" FROM \"2-14176339-3\" WHERE \"year\" < 1977 AND city IN ('manchester, england', 'manchester, uk', 'manchester')" + }, + { + "db_id": "2-14837173-3", + "question": "What is the average total with a nation of brunei with a gold smaller than 17?", + "evidence": "", + "schema_text_wo_content": "Table 2-14837173-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14837173-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [thailand, land of smiles, vietnam, indonesia]), `Gold` (Example values: [17.0, 8.0, 7.0]), `Silver` (Example values: [19.0, 4.0, 7.0]), `Bronze` (Example values: [9.0, 5.0, 1.0]), `Total` (Example values: [45.0, 17.0, 19.0])]\n", + "ori_query": "select avg(`total`) from `2-14837173-3` where `nation` = 'brunei' and `gold` < 17", + "amb_query": "SELECT AVG(\"total\") FROM \"2-14837173-3\" WHERE nation IN ('brunei', 'brunei, southeast asia') AND \"gold\" < 17" + }, + { + "db_id": "2-14837173-3", + "question": "What is the average total with a nation of thailand with a gold smaller than 17?", + "evidence": "", + "schema_text_wo_content": "Table 2-14837173-3, columns = [Rank, Nation, Gold, Silver, Bronze, Total]\n", + "schema_text_with_content": "Table 2-14837173-3, columns = [`Rank` (Example values: [1, 2, 3]), `Nation` (Example values: [thailand, land of smiles, vietnam, indonesia]), `Gold` (Example values: [17.0, 8.0, 7.0]), `Silver` (Example values: [19.0, 4.0, 7.0]), `Bronze` (Example values: [9.0, 5.0, 1.0]), `Total` (Example values: [45.0, 17.0, 19.0])]\n", + "ori_query": "select avg(`total`) from `2-14837173-3` where `nation` = 'thailand' and `gold` < 17", + "amb_query": "SELECT AVG(\"total\") FROM \"2-14837173-3\" WHERE nation IN ('thailand', 'thailand, land of smiles') AND \"gold\" < 17" + }, + { + "db_id": "2-13986492-12", + "question": "What school is located in frankfort?", + "evidence": "", + "schema_text_wo_content": "Table 2-13986492-12, columns = [School, Location, Mascot, Enrollment, IHSAA Class, # / County]\n", + "schema_text_with_content": "Table 2-13986492-12, columns = [`School` (Example values: [carroll, clinton central, clinton prairie]), `Location` (Example values: [flora, michigantown, frankfort city]), `Mascot` (Example values: [cougars, bulldogs, gophers]), `Enrollment` (Example values: [337.0, 342.0, 286.0]), `IHSAA Class` (Example values: [aa, a]), `# / County` (Example values: [08 carroll, 12 clinton, 80 tipton])]\n", + "ori_query": "select `school` from `2-13986492-12` where `location` = 'frankfort'", + "amb_query": "SELECT \"school\" FROM \"2-13986492-12\" WHERE location IN ('frankfort city', 'frankfort')" + }, + { + "db_id": "2-13986492-12", + "question": "What school is located in rossville?", + "evidence": "", + "schema_text_wo_content": "Table 2-13986492-12, columns = [School, Location, Mascot, Enrollment, IHSAA Class, # / County]\n", + "schema_text_with_content": "Table 2-13986492-12, columns = [`School` (Example values: [carroll, clinton central, clinton prairie]), `Location` (Example values: [flora, michigantown, frankfort city]), `Mascot` (Example values: [cougars, bulldogs, gophers]), `Enrollment` (Example values: [337.0, 342.0, 286.0]), `IHSAA Class` (Example values: [aa, a]), `# / County` (Example values: [08 carroll, 12 clinton, 80 tipton])]\n", + "ori_query": "select `school` from `2-13986492-12` where `location` = 'rossville'", + "amb_query": "SELECT \"school\" FROM \"2-13986492-12\" WHERE location IN ('rossville area', 'rossville')" + }, + { + "db_id": "2-143433-1", + "question": "Which TV season finale was showing on may 23, 2000?", + "evidence": "", + "schema_text_wo_content": "Table 2-143433-1, columns = [Season, Timeslot, Season premiere, Season finale, TV season, Ranking, Viewers (in millions)]\n", + "schema_text_with_content": "Table 2-143433-1, columns = [`Season` (Example values: [1st, 2nd, 3rd]), `Timeslot` (Example values: [tuesday 9:00 pm, monday 9:00 pm, sunday 9:00 pm wednesday 9:00 pm]), `Season premiere` (Example values: [october 5, 1999, september 26, 2000, september 24, 2001]), `Season finale` (Example values: [23rd may 2000, 05/22/2001, may 20, 2002]), `TV season` (Example values: [1999–2000, 2000–2001, 2001–2002]), `Ranking` (Example values: [#123, #125, #127]), `Viewers (in millions)` (Example values: [4.9, 4.1, 4.4])]\n", + "ori_query": "select `tv season` from `2-143433-1` where `season finale` = 'may 23, 2000'", + "amb_query": "SELECT \"tv season\" FROM \"2-143433-1\" WHERE season finale IN ('23rd may 2000', 'may 23, 2000')" + }, + { + "db_id": "2-143433-1", + "question": "Which TV season finale was showing on may 22, 2001?", + "evidence": "", + "schema_text_wo_content": "Table 2-143433-1, columns = [Season, Timeslot, Season premiere, Season finale, TV season, Ranking, Viewers (in millions)]\n", + "schema_text_with_content": "Table 2-143433-1, columns = [`Season` (Example values: [1st, 2nd, 3rd]), `Timeslot` (Example values: [tuesday 9:00 pm, monday 9:00 pm, sunday 9:00 pm wednesday 9:00 pm]), `Season premiere` (Example values: [october 5, 1999, september 26, 2000, september 24, 2001]), `Season finale` (Example values: [23rd may 2000, 05/22/2001, may 20, 2002]), `TV season` (Example values: [1999–2000, 2000–2001, 2001–2002]), `Ranking` (Example values: [#123, #125, #127]), `Viewers (in millions)` (Example values: [4.9, 4.1, 4.4])]\n", + "ori_query": "select `tv season` from `2-143433-1` where `season finale` = 'may 22, 2001'", + "amb_query": "SELECT \"tv season\" FROM \"2-143433-1\" WHERE season finale IN ('may 22, 2001', '05/22/2001')" + }, + { + "db_id": "2-15273269-4", + "question": "Which first was born on 28 march 1986?", + "evidence": "", + "schema_text_wo_content": "Table 2-15273269-4, columns = [Surname, First, D.O.B., Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-15273269-4, columns = [`Surname` (Example values: [paewai, naylor, mowday]), `First` (Example values: [riki, drew, chris]), `D.O.B.` (Example values: [1986-03-28, 31 may 1986, 24 august 1981]), `Bats` (Example values: [r, l, s]), `Throws` (Example values: [r, l]), `Position` (Example values: [p, c, c/if])]\n", + "ori_query": "select `first` from `2-15273269-4` where `d.o.b.` = '28 march 1986'", + "amb_query": "SELECT \"first\" FROM \"2-15273269-4\" WHERE d.o.b. IN ('28 march 1986', '1986-03-28')" + }, + { + "db_id": "2-15273269-4", + "question": "Which first was born on 17 july 1986?", + "evidence": "", + "schema_text_wo_content": "Table 2-15273269-4, columns = [Surname, First, D.O.B., Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-15273269-4, columns = [`Surname` (Example values: [paewai, naylor, mowday]), `First` (Example values: [riki, drew, chris]), `D.O.B.` (Example values: [1986-03-28, 31 may 1986, 24 august 1981]), `Bats` (Example values: [r, l, s]), `Throws` (Example values: [r, l]), `Position` (Example values: [p, c, c/if])]\n", + "ori_query": "select `first` from `2-15273269-4` where `d.o.b.` = '17 july 1986'", + "amb_query": "SELECT \"first\" FROM \"2-15273269-4\" WHERE d.o.b. IN ('17 july 1986', 'july 17, 1986')" + }, + { + "db_id": "2-15273269-4", + "question": "Which Surname has Throws of r, and a Position of p, and a DOB of 11 may 1982?", + "evidence": "", + "schema_text_wo_content": "Table 2-15273269-4, columns = [Surname, First, D.O.B., Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-15273269-4, columns = [`Surname` (Example values: [paewai, naylor, mowday]), `First` (Example values: [riki, drew, chris]), `D.O.B.` (Example values: [1986-03-28, 31 may 1986, 24 august 1981]), `Bats` (Example values: [r, l, s]), `Throws` (Example values: [r, l]), `Position` (Example values: [p, c, c/if])]\n", + "ori_query": "select `surname` from `2-15273269-4` where `throws` = 'r' and `position` = 'p' and `d.o.b.` = '11 may 1982'", + "amb_query": "SELECT \"surname\" FROM \"2-15273269-4\" WHERE \"throws\" = 'r' AND \"position\" = 'p' AND d.o.b. IN ('may 11, 1982', '11 may 1982')" + }, + { + "db_id": "2-15273269-4", + "question": "Which Surname has Throws of r, and a Position of p, and a DOB of 14 december 1969?", + "evidence": "", + "schema_text_wo_content": "Table 2-15273269-4, columns = [Surname, First, D.O.B., Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-15273269-4, columns = [`Surname` (Example values: [paewai, naylor, mowday]), `First` (Example values: [riki, drew, chris]), `D.O.B.` (Example values: [1986-03-28, 31 may 1986, 24 august 1981]), `Bats` (Example values: [r, l, s]), `Throws` (Example values: [r, l]), `Position` (Example values: [p, c, c/if])]\n", + "ori_query": "select `surname` from `2-15273269-4` where `throws` = 'r' and `position` = 'p' and `d.o.b.` = '14 december 1969'", + "amb_query": "SELECT \"surname\" FROM \"2-15273269-4\" WHERE \"throws\" = 'r' AND \"position\" = 'p' AND d.o.b. IN ('14 december 1969', '1969-12-14')" + }, + { + "db_id": "2-15273269-4", + "question": "Which first was born on 5 february 1979?", + "evidence": "", + "schema_text_wo_content": "Table 2-15273269-4, columns = [Surname, First, D.O.B., Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-15273269-4, columns = [`Surname` (Example values: [paewai, naylor, mowday]), `First` (Example values: [riki, drew, chris]), `D.O.B.` (Example values: [1986-03-28, 31 may 1986, 24 august 1981]), `Bats` (Example values: [r, l, s]), `Throws` (Example values: [r, l]), `Position` (Example values: [p, c, c/if])]\n", + "ori_query": "select `first` from `2-15273269-4` where `d.o.b.` = '5 february 1979'", + "amb_query": "SELECT \"first\" FROM \"2-15273269-4\" WHERE d.o.b. IN ('5 february 1979', 'february 5th, 1979')" + }, + { + "db_id": "2-15273269-4", + "question": "Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?", + "evidence": "", + "schema_text_wo_content": "Table 2-15273269-4, columns = [Surname, First, D.O.B., Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-15273269-4, columns = [`Surname` (Example values: [paewai, naylor, mowday]), `First` (Example values: [riki, drew, chris]), `D.O.B.` (Example values: [1986-03-28, 31 may 1986, 24 august 1981]), `Bats` (Example values: [r, l, s]), `Throws` (Example values: [r, l]), `Position` (Example values: [p, c, c/if])]\n", + "ori_query": "select `surname` from `2-15273269-4` where `throws` = 'r' and `position` = 'p' and `d.o.b.` = '26 april 1989'", + "amb_query": "SELECT \"surname\" FROM \"2-15273269-4\" WHERE \"throws\" = 'r' AND \"position\" = 'p' AND d.o.b. IN ('1989-04-26', '26 april 1989')" + }, + { + "db_id": "2-14415326-2", + "question": "What is the position of the player from overland park, ks?", + "evidence": "", + "schema_text_wo_content": "Table 2-14415326-2, columns = [Name, Position, Height, Weight, Year, Home Town]\n", + "schema_text_with_content": "Table 2-14415326-2, columns = [`Name` (Example values: [darrell arthur, brennan bechard, jeremy case]), `Position` (Example values: [forward, guard, center]), `Height` (Example values: [6–9, 6–0, 6–1]), `Weight` (Example values: [230.0, 183.0, 182.0]), `Year` (Example values: [freshman, sophomore, junior]), `Home Town` (Example values: [dallas, tx, lawrence, ks, mcalester, ok])]\n", + "ori_query": "select `position` from `2-14415326-2` where `home town` = 'overland park, ks'", + "amb_query": "SELECT \"position\" FROM \"2-14415326-2\" WHERE home town IN ('overland park, ks', 'overland park, kansas')" + }, + { + "db_id": "2-14415326-2", + "question": "What is the position of the player from humboldt, ks?", + "evidence": "", + "schema_text_wo_content": "Table 2-14415326-2, columns = [Name, Position, Height, Weight, Year, Home Town]\n", + "schema_text_with_content": "Table 2-14415326-2, columns = [`Name` (Example values: [darrell arthur, brennan bechard, jeremy case]), `Position` (Example values: [forward, guard, center]), `Height` (Example values: [6–9, 6–0, 6–1]), `Weight` (Example values: [230.0, 183.0, 182.0]), `Year` (Example values: [freshman, sophomore, junior]), `Home Town` (Example values: [dallas, tx, lawrence, ks, mcalester, ok])]\n", + "ori_query": "select `position` from `2-14415326-2` where `home town` = 'humboldt, ks'", + "amb_query": "SELECT \"position\" FROM \"2-14415326-2\" WHERE home town IN ('humboldt, ks', 'humboldt, kansas')" + }, + { + "db_id": "2-14415326-2", + "question": "What is the position of the player from New York City, NY?", + "evidence": "", + "schema_text_wo_content": "Table 2-14415326-2, columns = [Name, Position, Height, Weight, Year, Home Town]\n", + "schema_text_with_content": "Table 2-14415326-2, columns = [`Name` (Example values: [darrell arthur, brennan bechard, jeremy case]), `Position` (Example values: [forward, guard, center]), `Height` (Example values: [6–9, 6–0, 6–1]), `Weight` (Example values: [230.0, 183.0, 182.0]), `Year` (Example values: [freshman, sophomore, junior]), `Home Town` (Example values: [dallas, tx, lawrence, ks, mcalester, ok])]\n", + "ori_query": "select `position` from `2-14415326-2` where `home town` = 'new york city, ny'", + "amb_query": "SELECT \"position\" FROM \"2-14415326-2\" WHERE home town IN ('new york city, ny', 'new york city, new york')" + }, + { + "db_id": "2-13975482-1", + "question": "What call sign is licensed in lockwood, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-13975482-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-13975482-1, columns = [`Call sign` (Example values: [k206cc, k205bn, k257be]), `Frequency MHz` (Example values: [89.1, 88.9, 99.3]), `City of license` (Example values: [lockwood, ca, los gatos, california, city of monterey, california]), `ERP W` (Example values: [10.0, 77.0, 74.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `call sign` from `2-13975482-1` where `city of license` = 'lockwood, california'", + "amb_query": "SELECT \"call sign\" FROM \"2-13975482-1\" WHERE city of license IN ('lockwood, california', 'lockwood, ca')" + }, + { + "db_id": "2-13975482-1", + "question": "What is the MHZ frequency in monterey, california with an ERP W over 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-13975482-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-13975482-1, columns = [`Call sign` (Example values: [k206cc, k205bn, k257be]), `Frequency MHz` (Example values: [89.1, 88.9, 99.3]), `City of license` (Example values: [lockwood, ca, los gatos, california, city of monterey, california]), `ERP W` (Example values: [10.0, 77.0, 74.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select avg(`frequency mhz`) from `2-13975482-1` where `city of license` = 'monterey, california' and `erp w` > 10", + "amb_query": "SELECT AVG(\"frequency mhz\") FROM \"2-13975482-1\" WHERE city of license IN ('monterey, california', 'city of monterey, california') AND \"erp w\" > 10" + }, + { + "db_id": "2-13975482-1", + "question": "What call sign is licensed in soledad, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-13975482-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-13975482-1, columns = [`Call sign` (Example values: [k206cc, k205bn, k257be]), `Frequency MHz` (Example values: [89.1, 88.9, 99.3]), `City of license` (Example values: [lockwood, ca, los gatos, california, city of monterey, california]), `ERP W` (Example values: [10.0, 77.0, 74.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `call sign` from `2-13975482-1` where `city of license` = 'soledad, california'", + "amb_query": "SELECT \"call sign\" FROM \"2-13975482-1\" WHERE city of license IN ('soledad, california', 'soledad, california, united states')" + }, + { + "db_id": "2-13975482-1", + "question": "What is the MHZ frequency in carmel, california with an ERP W over 10?", + "evidence": "", + "schema_text_wo_content": "Table 2-13975482-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-13975482-1, columns = [`Call sign` (Example values: [k206cc, k205bn, k257be]), `Frequency MHz` (Example values: [89.1, 88.9, 99.3]), `City of license` (Example values: [lockwood, ca, los gatos, california, city of monterey, california]), `ERP W` (Example values: [10.0, 77.0, 74.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select avg(`frequency mhz`) from `2-13975482-1` where `city of license` = 'carmel, california' and `erp w` > 10", + "amb_query": "SELECT AVG(\"frequency mhz\") FROM \"2-13975482-1\" WHERE city of license IN ('carmel, california', 'carmel, california, usa') AND \"erp w\" > 10" + }, + { + "db_id": "2-13975482-1", + "question": "What class has a MHZ frequency under 103.1 licensed in morro bay, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-13975482-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-13975482-1, columns = [`Call sign` (Example values: [k206cc, k205bn, k257be]), `Frequency MHz` (Example values: [89.1, 88.9, 99.3]), `City of license` (Example values: [lockwood, ca, los gatos, california, city of monterey, california]), `ERP W` (Example values: [10.0, 77.0, 74.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `class` from `2-13975482-1` where `frequency mhz` < 103.1 and `city of license` = 'morro bay, california'", + "amb_query": "SELECT \"class\" FROM \"2-13975482-1\" WHERE \"frequency mhz\" < 103.1 AND city of license IN ('morro bay, california', 'morro bay, california, usa')" + }, + { + "db_id": "2-140665-1", + "question": "What is the Profit / (Loss) Before Tax (€m) that has a Revenue (€m) larger than 1,115.8, and on 31 december 2001?", + "evidence": "", + "schema_text_wo_content": "Table 2-140665-1, columns = [Year Ended, Passengers Flown, Passenger Load Factor (%), Revenue (€m), Profit / (Loss) Before Tax (€m), Net Profit / (Loss) (€m)]\n", + "schema_text_with_content": "Table 2-140665-1, columns = [`Year Ended` (Example values: [31st december 2012, 31 december 2011, 31 december 2010]), `Passengers Flown` (Example values: [10,800,000, 9,513,000, 9,346,000]), `Passenger Load Factor (%)` (Example values: [77.7, 75.6, 76.1]), `Revenue (€m)` (Example values: [1,393.3, 1,288.3, 1,215.6]), `Profit / (Loss) Before Tax (€m)` (Example values: [40.6, 37.2, (31.0)]), `Net Profit / (Loss) (€m)` (Example values: [69.1, 49.1, 52.5])]\n", + "ori_query": "select `profit / (loss) before tax (€m)` from `2-140665-1` where `revenue (€m)` > 1,115.8 and `year ended` = '31 december 2001'", + "amb_query": "SELECT \"class\" FROM \"2-13975482-1\" WHERE \"frequency mhz\" < 103.1 AND city of license IN ('morro bay, california', 'morro bay, california, usa')" + }, + { + "db_id": "2-140665-1", + "question": "What is the Profit / (Loss) Before Tax (€m) that has a Revenue (€m) larger than 1,115.8, and on 31 december 2006?", + "evidence": "", + "schema_text_wo_content": "Table 2-140665-1, columns = [Year Ended, Passengers Flown, Passenger Load Factor (%), Revenue (€m), Profit / (Loss) Before Tax (€m), Net Profit / (Loss) (€m)]\n", + "schema_text_with_content": "Table 2-140665-1, columns = [`Year Ended` (Example values: [31st december 2012, 31 december 2011, 31 december 2010]), `Passengers Flown` (Example values: [10,800,000, 9,513,000, 9,346,000]), `Passenger Load Factor (%)` (Example values: [77.7, 75.6, 76.1]), `Revenue (€m)` (Example values: [1,393.3, 1,288.3, 1,215.6]), `Profit / (Loss) Before Tax (€m)` (Example values: [40.6, 37.2, (31.0)]), `Net Profit / (Loss) (€m)` (Example values: [69.1, 49.1, 52.5])]\n", + "ori_query": "select `profit / (loss) before tax (€m)` from `2-140665-1` where `revenue (€m)` > 1,115.8 and `year ended` = '31 december 2006'", + "amb_query": "SELECT \"class\" FROM \"2-13975482-1\" WHERE \"frequency mhz\" < 103.1 AND city of license IN ('morro bay, california', 'morro bay, california, usa')" + }, + { + "db_id": "2-140665-1", + "question": "What is the Profit / (Loss) Before Tax (€m) that has a Revenue (€m) larger than 1,115.8, and on 31 december 2012?", + "evidence": "", + "schema_text_wo_content": "Table 2-140665-1, columns = [Year Ended, Passengers Flown, Passenger Load Factor (%), Revenue (€m), Profit / (Loss) Before Tax (€m), Net Profit / (Loss) (€m)]\n", + "schema_text_with_content": "Table 2-140665-1, columns = [`Year Ended` (Example values: [31st december 2012, 31 december 2011, 31 december 2010]), `Passengers Flown` (Example values: [10,800,000, 9,513,000, 9,346,000]), `Passenger Load Factor (%)` (Example values: [77.7, 75.6, 76.1]), `Revenue (€m)` (Example values: [1,393.3, 1,288.3, 1,215.6]), `Profit / (Loss) Before Tax (€m)` (Example values: [40.6, 37.2, (31.0)]), `Net Profit / (Loss) (€m)` (Example values: [69.1, 49.1, 52.5])]\n", + "ori_query": "select `profit / (loss) before tax (€m)` from `2-140665-1` where `revenue (€m)` > 1,115.8 and `year ended` = '31 december 2012'", + "amb_query": "SELECT \"class\" FROM \"2-13975482-1\" WHERE \"frequency mhz\" < 103.1 AND city of license IN ('morro bay, california', 'morro bay, california, usa')" + }, + { + "db_id": "2-14638077-2", + "question": "What is the name of the race in fontana, california?", + "evidence": "", + "schema_text_wo_content": "Table 2-14638077-2, columns = [Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report]\n", + "schema_text_with_content": "Table 2-14638077-2, columns = [`Race Name` (Example values: [marlboro grand prix of miami presented by toyota, sunbelt indycarnival australia, toyota grand prix of long beach]), `Circuit` (Example values: [homestead-miami speedway, surfers paradise street circuit, streets of long beach]), `City/Location` (Example values: [homestead, florida, surfers paradise , australia, long beach, california]), `Date` (Example values: [march 2, april 6, april 13]), `Pole position` (Example values: [alex zanardi, gil de ferran, paul tracy]), `Fastest lap` (Example values: [michael andretti, alex zanardi, paul tracy]), `Winning driver` (Example values: [michael andretti, scott pruett, alex zanardi]), `Winning team` (Example values: [newman/haas racing, patrick racing, target chip ganassi]), `Report` (Example values: [report])]\n", + "ori_query": "select `race name` from `2-14638077-2` where `city/location` = 'fontana, california'", + "amb_query": "SELECT \"race name\" FROM \"2-14638077-2\" WHERE city/location IN ('fontana, california', 'fontana, california, usa')" + }, + { + "db_id": "2-14638077-2", + "question": "What is the name of the race in madison, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-14638077-2, columns = [Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report]\n", + "schema_text_with_content": "Table 2-14638077-2, columns = [`Race Name` (Example values: [marlboro grand prix of miami presented by toyota, sunbelt indycarnival australia, toyota grand prix of long beach]), `Circuit` (Example values: [homestead-miami speedway, surfers paradise street circuit, streets of long beach]), `City/Location` (Example values: [homestead, florida, surfers paradise , australia, long beach, california]), `Date` (Example values: [march 2, april 6, april 13]), `Pole position` (Example values: [alex zanardi, gil de ferran, paul tracy]), `Fastest lap` (Example values: [michael andretti, alex zanardi, paul tracy]), `Winning driver` (Example values: [michael andretti, scott pruett, alex zanardi]), `Winning team` (Example values: [newman/haas racing, patrick racing, target chip ganassi]), `Report` (Example values: [report])]\n", + "ori_query": "select `race name` from `2-14638077-2` where `city/location` = 'madison, illinois'", + "amb_query": "SELECT \"race name\" FROM \"2-14638077-2\" WHERE city/location IN ('city of madison, illinois', 'madison, illinois')" + }, + { + "db_id": "2-14638077-2", + "question": "What is the name of the race in Cleveland, Ohio?", + "evidence": "", + "schema_text_wo_content": "Table 2-14638077-2, columns = [Race Name, Circuit, City/Location, Date, Pole position, Fastest lap, Winning driver, Winning team, Report]\n", + "schema_text_with_content": "Table 2-14638077-2, columns = [`Race Name` (Example values: [marlboro grand prix of miami presented by toyota, sunbelt indycarnival australia, toyota grand prix of long beach]), `Circuit` (Example values: [homestead-miami speedway, surfers paradise street circuit, streets of long beach]), `City/Location` (Example values: [homestead, florida, surfers paradise , australia, long beach, california]), `Date` (Example values: [march 2, april 6, april 13]), `Pole position` (Example values: [alex zanardi, gil de ferran, paul tracy]), `Fastest lap` (Example values: [michael andretti, alex zanardi, paul tracy]), `Winning driver` (Example values: [michael andretti, scott pruett, alex zanardi]), `Winning team` (Example values: [newman/haas racing, patrick racing, target chip ganassi]), `Report` (Example values: [report])]\n", + "ori_query": "select `race name` from `2-14638077-2` where `city/location` = 'cleveland, ohio'", + "amb_query": "SELECT \"race name\" FROM \"2-14638077-2\" WHERE city/location IN ('cleveland in the state of ohio', 'cleveland, ohio')" + }, + { + "db_id": "2-14331545-5", + "question": "What was the lowest week in the month of may against Andrew Combs?", + "evidence": "", + "schema_text_wo_content": "Table 2-14331545-5, columns = [Month, Week, Offensive, Defensive, Goalkeeper, Rookie]\n", + "schema_text_with_content": "Table 2-14331545-5, columns = [`Month` (Example values: [month of may, june, july]), `Week` (Example values: [1.0, 2.0, 3.0]), `Offensive` (Example values: [jeff zywicki, john grant, jr., kyle dixon]), `Defensive` (Example values: [geoff snider, j.j. morrissey, peter vlahakis]), `Goalkeeper` (Example values: [mike gabel, brian dougherty, mickey jarboe]), `Rookie` (Example values: [n/a, mike leveille, mike podgajny])]\n", + "ori_query": "select min(`week`) from `2-14331545-5` where `month` = 'may' and `offensive` = 'andrew combs'", + "amb_query": "SELECT MIN(\"week\") FROM \"2-14331545-5\" WHERE month IN ('month of may', 'may') AND \"offensive\" = 'andrew combs'" + }, + { + "db_id": "2-14331545-5", + "question": "What was the lowest week in the month of August against Andrew Combs?", + "evidence": "", + "schema_text_wo_content": "Table 2-14331545-5, columns = [Month, Week, Offensive, Defensive, Goalkeeper, Rookie]\n", + "schema_text_with_content": "Table 2-14331545-5, columns = [`Month` (Example values: [month of may, june, july]), `Week` (Example values: [1.0, 2.0, 3.0]), `Offensive` (Example values: [jeff zywicki, john grant, jr., kyle dixon]), `Defensive` (Example values: [geoff snider, j.j. morrissey, peter vlahakis]), `Goalkeeper` (Example values: [mike gabel, brian dougherty, mickey jarboe]), `Rookie` (Example values: [n/a, mike leveille, mike podgajny])]\n", + "ori_query": "select min(`week`) from `2-14331545-5` where `month` = 'august' and `offensive` = 'andrew combs'", + "amb_query": "SELECT MIN(\"week\") FROM \"2-14331545-5\" WHERE month IN ('august month', 'august', 'aug') AND \"offensive\" = 'andrew combs'" + }, + { + "db_id": "2-13849334-2", + "question": "Which duchess was born on birth?", + "evidence": "", + "schema_text_wo_content": "Table 2-13849334-2, columns = [Image, Father, Birth, Ceased to be Duchess, Death, Husband]\n", + "schema_text_with_content": "Table 2-13849334-2, columns = [`Image` (Example values: [kunigunde of austria, marie of baden-sponheim, anne of austria]), `Father` (Example values: [frederick iii, holy roman emperor ( habsburg ), philip i, margrave of baden ( baden ), ferdinand i, holy roman emperor ( habsburg )]), `Birth` (Example values: [16 march 1465, 25 june 1507, 7 july 1528]), `Ceased to be Duchess` (Example values: [18 march 1508 husband's death, 7 march 1550 husband's death, 24 october 1579 husband's death]), `Death` (Example values: [6 august 1520, 16 november 1580, 16 october 1590]), `Husband` (Example values: [albert iv, william iv, albert v])]\n", + "ori_query": "select `ceased to be duchess` from `2-13849334-2` where `birth` = 'birth'", + "amb_query": "SELECT \"ceased to be duchess\" FROM \"2-13849334-2\" WHERE birth IN ('birth', 'birth event')" + }, + { + "db_id": "2-13849334-2", + "question": "Which duchess was born on 9 october 1574?", + "evidence": "", + "schema_text_wo_content": "Table 2-13849334-2, columns = [Image, Father, Birth, Ceased to be Duchess, Death, Husband]\n", + "schema_text_with_content": "Table 2-13849334-2, columns = [`Image` (Example values: [kunigunde of austria, marie of baden-sponheim, anne of austria]), `Father` (Example values: [frederick iii, holy roman emperor ( habsburg ), philip i, margrave of baden ( baden ), ferdinand i, holy roman emperor ( habsburg )]), `Birth` (Example values: [16 march 1465, 25 june 1507, 7 july 1528]), `Ceased to be Duchess` (Example values: [18 march 1508 husband's death, 7 march 1550 husband's death, 24 october 1579 husband's death]), `Death` (Example values: [6 august 1520, 16 november 1580, 16 october 1590]), `Husband` (Example values: [albert iv, william iv, albert v])]\n", + "ori_query": "select `ceased to be duchess` from `2-13849334-2` where `birth` = '9 october 1574'", + "amb_query": "SELECT \"ceased to be duchess\" FROM \"2-13849334-2\" WHERE birth IN ('9 october 1574', '9th october 1574')" + }, + { + "db_id": "2-14155268-3", + "question": "When was the person who died on 30 october 1892 born?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-3, columns = [Name, Birth, Marriage, Became Queen, Ceased to be Queen, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-3, columns = [`Name` (Example values: [charlotte, princess royal, catherine pavlovna of russia, pauline therese of württemberg]), `Birth` (Example values: [september 29th, 1766, may 10th, 1788, 4-09-1800]), `Marriage` (Example values: [18 may 1797, 24 january 1816, 15 april 1820]), `Became Queen` (Example values: [1 january 1806 elevated from electress, 30 october 1816 husband's accession, 15 april 1820]), `Ceased to be Queen` (Example values: [30 october 1816 husband's death, 19 january 1819, 25 june 1864 husband's death]), `Death` (Example values: [5 october 1828, 19 january 1819, 10 may 1873]), `Spouse` (Example values: [frederick i, william i, charles i])]\n", + "ori_query": "select `birth` from `2-14155268-3` where `death` = '30 october 1892'", + "amb_query": "SELECT \"birth\" FROM \"2-14155268-3\" WHERE death IN ('october 30, 1892', '30 october 1892')" + }, + { + "db_id": "2-14155268-3", + "question": "When was the person who died on 16 July 1946 born?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-3, columns = [Name, Birth, Marriage, Became Queen, Ceased to be Queen, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-3, columns = [`Name` (Example values: [charlotte, princess royal, catherine pavlovna of russia, pauline therese of württemberg]), `Birth` (Example values: [september 29th, 1766, may 10th, 1788, 4-09-1800]), `Marriage` (Example values: [18 may 1797, 24 january 1816, 15 april 1820]), `Became Queen` (Example values: [1 january 1806 elevated from electress, 30 october 1816 husband's accession, 15 april 1820]), `Ceased to be Queen` (Example values: [30 october 1816 husband's death, 19 january 1819, 25 june 1864 husband's death]), `Death` (Example values: [5 october 1828, 19 january 1819, 10 may 1873]), `Spouse` (Example values: [frederick i, william i, charles i])]\n", + "ori_query": "select `birth` from `2-14155268-3` where `death` = '16 july 1946'", + "amb_query": "SELECT \"birth\" FROM \"2-14155268-3\" WHERE death IN ('16th of july, 1946', '16 july 1946')" + }, + { + "db_id": "2-14155268-3", + "question": "Who is the spouse of the person born on 4 september 1800?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-3, columns = [Name, Birth, Marriage, Became Queen, Ceased to be Queen, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-3, columns = [`Name` (Example values: [charlotte, princess royal, catherine pavlovna of russia, pauline therese of württemberg]), `Birth` (Example values: [september 29th, 1766, may 10th, 1788, 4-09-1800]), `Marriage` (Example values: [18 may 1797, 24 january 1816, 15 april 1820]), `Became Queen` (Example values: [1 january 1806 elevated from electress, 30 october 1816 husband's accession, 15 april 1820]), `Ceased to be Queen` (Example values: [30 october 1816 husband's death, 19 january 1819, 25 june 1864 husband's death]), `Death` (Example values: [5 october 1828, 19 january 1819, 10 may 1873]), `Spouse` (Example values: [frederick i, william i, charles i])]\n", + "ori_query": "select `spouse` from `2-14155268-3` where `birth` = '4 september 1800'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-3\" WHERE birth IN ('4 september 1800', '4-09-1800')" + }, + { + "db_id": "2-14155268-3", + "question": "Who is the spouse of the person born on 29 September 1766?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-3, columns = [Name, Birth, Marriage, Became Queen, Ceased to be Queen, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-3, columns = [`Name` (Example values: [charlotte, princess royal, catherine pavlovna of russia, pauline therese of württemberg]), `Birth` (Example values: [september 29th, 1766, may 10th, 1788, 4-09-1800]), `Marriage` (Example values: [18 may 1797, 24 january 1816, 15 april 1820]), `Became Queen` (Example values: [1 january 1806 elevated from electress, 30 october 1816 husband's accession, 15 april 1820]), `Ceased to be Queen` (Example values: [30 october 1816 husband's death, 19 january 1819, 25 june 1864 husband's death]), `Death` (Example values: [5 october 1828, 19 january 1819, 10 may 1873]), `Spouse` (Example values: [frederick i, william i, charles i])]\n", + "ori_query": "select `spouse` from `2-14155268-3` where `birth` = '29 september 1766'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-3\" WHERE birth IN ('september 29th, 1766', '29 september 1766')" + }, + { + "db_id": "2-14155268-3", + "question": "Who is born on 29 September 1766?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-3, columns = [Name, Birth, Marriage, Became Queen, Ceased to be Queen, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-3, columns = [`Name` (Example values: [charlotte, princess royal, catherine pavlovna of russia, pauline therese of württemberg]), `Birth` (Example values: [september 29th, 1766, may 10th, 1788, 4-09-1800]), `Marriage` (Example values: [18 may 1797, 24 january 1816, 15 april 1820]), `Became Queen` (Example values: [1 january 1806 elevated from electress, 30 october 1816 husband's accession, 15 april 1820]), `Ceased to be Queen` (Example values: [30 october 1816 husband's death, 19 january 1819, 25 june 1864 husband's death]), `Death` (Example values: [5 october 1828, 19 january 1819, 10 may 1873]), `Spouse` (Example values: [frederick i, william i, charles i])]\n", + "ori_query": "select `name` from `2-14155268-3` where `birth` = '29 september 1766'", + "amb_query": "SELECT \"name\" FROM \"2-14155268-3\" WHERE birth IN ('september 29th, 1766', '29 september 1766')" + }, + { + "db_id": "2-14155268-3", + "question": "Who was born on 10 May 1788 that ceased to be queen?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-3, columns = [Name, Birth, Marriage, Became Queen, Ceased to be Queen, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-3, columns = [`Name` (Example values: [charlotte, princess royal, catherine pavlovna of russia, pauline therese of württemberg]), `Birth` (Example values: [september 29th, 1766, may 10th, 1788, 4-09-1800]), `Marriage` (Example values: [18 may 1797, 24 january 1816, 15 april 1820]), `Became Queen` (Example values: [1 january 1806 elevated from electress, 30 october 1816 husband's accession, 15 april 1820]), `Ceased to be Queen` (Example values: [30 october 1816 husband's death, 19 january 1819, 25 june 1864 husband's death]), `Death` (Example values: [5 october 1828, 19 january 1819, 10 may 1873]), `Spouse` (Example values: [frederick i, william i, charles i])]\n", + "ori_query": "select `ceased to be queen` from `2-14155268-3` where `birth` = '10 may 1788'", + "amb_query": "SELECT \"ceased to be queen\" FROM \"2-14155268-3\" WHERE birth IN ('10 may 1788', 'may 10th, 1788')" + }, + { + "db_id": "2-14431362-3", + "question": "Which throw number had a DOB of 10/06/81?", + "evidence": "", + "schema_text_wo_content": "Table 2-14431362-3, columns = [Surname, First, D.O.B., Uni#, Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-14431362-3, columns = [`Surname` (Example values: [bennett, fingleson, blight]), `First` (Example values: [matthew, gavin, adam]), `D.O.B.` (Example values: [19/10/1981, 5/08/76, 24/02/1980]), `Uni#` (Example values: [1.0, 4.0, 6.0]), `Bats` (Example values: [l, s, r]), `Throws` (Example values: [l, r]), `Position` (Example values: [lhp, if, inf])]\n", + "ori_query": "select `throws` from `2-14431362-3` where `d.o.b.` = '10/06/81'", + "amb_query": "SELECT \"throws\" FROM \"2-14431362-3\" WHERE d.o.b. IN ('june 10, 1981', '10/06/81')" + }, + { + "db_id": "2-14431362-3", + "question": "Which throw number had a DOB of 24/02/80?", + "evidence": "", + "schema_text_wo_content": "Table 2-14431362-3, columns = [Surname, First, D.O.B., Uni#, Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-14431362-3, columns = [`Surname` (Example values: [bennett, fingleson, blight]), `First` (Example values: [matthew, gavin, adam]), `D.O.B.` (Example values: [19/10/1981, 5/08/76, 24/02/1980]), `Uni#` (Example values: [1.0, 4.0, 6.0]), `Bats` (Example values: [l, s, r]), `Throws` (Example values: [l, r]), `Position` (Example values: [lhp, if, inf])]\n", + "ori_query": "select `throws` from `2-14431362-3` where `d.o.b.` = '24/02/80'", + "amb_query": "SELECT \"throws\" FROM \"2-14431362-3\" WHERE d.o.b. IN ('24/02/80', '24/02/1980')" + }, + { + "db_id": "2-14431362-3", + "question": "Which throw number had a DOB of 19/10/81?", + "evidence": "", + "schema_text_wo_content": "Table 2-14431362-3, columns = [Surname, First, D.O.B., Uni#, Bats, Throws, Position]\n", + "schema_text_with_content": "Table 2-14431362-3, columns = [`Surname` (Example values: [bennett, fingleson, blight]), `First` (Example values: [matthew, gavin, adam]), `D.O.B.` (Example values: [19/10/1981, 5/08/76, 24/02/1980]), `Uni#` (Example values: [1.0, 4.0, 6.0]), `Bats` (Example values: [l, s, r]), `Throws` (Example values: [l, r]), `Position` (Example values: [lhp, if, inf])]\n", + "ori_query": "select `throws` from `2-14431362-3` where `d.o.b.` = '19/10/81'", + "amb_query": "SELECT \"throws\" FROM \"2-14431362-3\" WHERE d.o.b. IN ('19/10/81', '19/10/1981')" + }, + { + "db_id": "2-14617-2", + "question": "Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in may 2011?", + "evidence": "", + "schema_text_wo_content": "Table 2-14617-2, columns = [Model, Codename, Capacities (GB), NAND type, Interface, Form factor, Controller, Seq. read/write MB/s, Rnd 4KB read/write IOPS (K), Introduced]\n", + "schema_text_with_content": "Table 2-14617-2, columns = [`Model` (Example values: [x18-m/x25-m, x25-e, x18-m g2 / x25-m g2]), `Codename` (Example values: [ephraim, postville, glenbrook]), `Capacities (GB)` (Example values: [80/160, 32/64, 80/120/160]), `NAND type` (Example values: [50nm mlc, 50nm slc, 34nm mlc]), `Interface` (Example values: [sata 3 gbit/s, sata 6 gbit/s, pcie 2.0 × 8]), `Form factor` (Example values: [1.8\"/2.5\", 2.5\", msata]), `Controller` (Example values: [intel, marvell, sandforce]), `Seq. read/write MB/s` (Example values: [250 / 70, 250 / 170, 250 / 100]), `Rnd 4KB read/write IOPS (K)` (Example values: [35 / 3.300–0.35, 35 / 3.3, 35 / 6.6–0.3]), `Introduced` (Example values: [sept 2008 (now eol ), oct 2008, july 2009])]\n", + "ori_query": "select `form factor` from `2-14617-2` where `controller` = 'sandforce' and `capacities (gb)` = '80/120/180/240/360/480' and `introduced` = 'may 2011'", + "amb_query": "SELECT \"form factor\" FROM \"2-14617-2\" WHERE \"controller\" = 'sandforce' AND \"capacities (gb)\" = '80/120/180/240/360/480' AND introduced IN ('may 2011', '05/2011')" + }, + { + "db_id": "2-14617-2", + "question": "Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in january 2013?", + "evidence": "", + "schema_text_wo_content": "Table 2-14617-2, columns = [Model, Codename, Capacities (GB), NAND type, Interface, Form factor, Controller, Seq. read/write MB/s, Rnd 4KB read/write IOPS (K), Introduced]\n", + "schema_text_with_content": "Table 2-14617-2, columns = [`Model` (Example values: [x18-m/x25-m, x25-e, x18-m g2 / x25-m g2]), `Codename` (Example values: [ephraim, postville, glenbrook]), `Capacities (GB)` (Example values: [80/160, 32/64, 80/120/160]), `NAND type` (Example values: [50nm mlc, 50nm slc, 34nm mlc]), `Interface` (Example values: [sata 3 gbit/s, sata 6 gbit/s, pcie 2.0 × 8]), `Form factor` (Example values: [1.8\"/2.5\", 2.5\", msata]), `Controller` (Example values: [intel, marvell, sandforce]), `Seq. read/write MB/s` (Example values: [250 / 70, 250 / 170, 250 / 100]), `Rnd 4KB read/write IOPS (K)` (Example values: [35 / 3.300–0.35, 35 / 3.3, 35 / 6.6–0.3]), `Introduced` (Example values: [sept 2008 (now eol ), oct 2008, july 2009])]\n", + "ori_query": "select `form factor` from `2-14617-2` where `controller` = 'sandforce' and `capacities (gb)` = '80/120/180/240/360/480' and `introduced` = 'january 2013'", + "amb_query": "SELECT \"form factor\" FROM \"2-14617-2\" WHERE \"controller\" = 'sandforce' AND \"capacities (gb)\" = '80/120/180/240/360/480' AND introduced IN ('january 2013', 'jan 2013')" + }, + { + "db_id": "2-14617-2", + "question": "Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in July 2013?", + "evidence": "", + "schema_text_wo_content": "Table 2-14617-2, columns = [Model, Codename, Capacities (GB), NAND type, Interface, Form factor, Controller, Seq. read/write MB/s, Rnd 4KB read/write IOPS (K), Introduced]\n", + "schema_text_with_content": "Table 2-14617-2, columns = [`Model` (Example values: [x18-m/x25-m, x25-e, x18-m g2 / x25-m g2]), `Codename` (Example values: [ephraim, postville, glenbrook]), `Capacities (GB)` (Example values: [80/160, 32/64, 80/120/160]), `NAND type` (Example values: [50nm mlc, 50nm slc, 34nm mlc]), `Interface` (Example values: [sata 3 gbit/s, sata 6 gbit/s, pcie 2.0 × 8]), `Form factor` (Example values: [1.8\"/2.5\", 2.5\", msata]), `Controller` (Example values: [intel, marvell, sandforce]), `Seq. read/write MB/s` (Example values: [250 / 70, 250 / 170, 250 / 100]), `Rnd 4KB read/write IOPS (K)` (Example values: [35 / 3.300–0.35, 35 / 3.3, 35 / 6.6–0.3]), `Introduced` (Example values: [sept 2008 (now eol ), oct 2008, july 2009])]\n", + "ori_query": "select `form factor` from `2-14617-2` where `controller` = 'sandforce' and `capacities (gb)` = '80/120/180/240/360/480' and `introduced` = 'july 2013'", + "amb_query": "SELECT \"form factor\" FROM \"2-14617-2\" WHERE \"controller\" = 'sandforce' AND \"capacities (gb)\" = '80/120/180/240/360/480' AND introduced IN ('2013-07', 'july 2013')" + }, + { + "db_id": "2-14155268-1", + "question": "Who is the Spouse of the Duchess that has a Birth on 29 december 1639?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `spouse` from `2-14155268-1` where `birth` = '29 december 1639'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-1\" WHERE birth IN ('29th december 1639', '29 december 1639')" + }, + { + "db_id": "2-14155268-1", + "question": "Who is the Spouse of the Duchess that has a Birth on 27 january 1614?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `spouse` from `2-14155268-1` where `birth` = '27 january 1614'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-1\" WHERE birth IN ('27/01/1614', '27 january 1614')" + }, + { + "db_id": "2-14155268-1", + "question": "Who is the Spouse of the Duchess that has a Birth on 29 october 1451?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `spouse` from `2-14155268-1` where `birth` = '29 october 1451'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-1\" WHERE birth IN ('october 29th, 1451', '29 october 1451')" + }, + { + "db_id": "2-14155268-1", + "question": "WHo Became Duchess that has a Death of 11 august 1712?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `became duchess` from `2-14155268-1` where `death` = '11 august 1712'", + "amb_query": "SELECT \"became duchess\" FROM \"2-14155268-1\" WHERE death IN ('11 august 1712', 'august 11th, 1712')" + }, + { + "db_id": "2-14155268-1", + "question": "WHo Became Duchess that has a Death of 28 march 1524?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `became duchess` from `2-14155268-1` where `death` = '28 march 1524'", + "amb_query": "SELECT \"became duchess\" FROM \"2-14155268-1\" WHERE death IN ('28 march 1524', 'march 28th, 1524')" + }, + { + "db_id": "2-14155268-1", + "question": "What is the Spouse of the Duchess that has a Death on 9 march 1798?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `spouse` from `2-14155268-1` where `death` = '9 march 1798'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-1\" WHERE death IN ('9 march 1798', 'march 9th, 1798')" + }, + { + "db_id": "2-14155268-1", + "question": "What is the Spouse of the Duchess that has a Death on württemberg annexed by austria 1519–1534.?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `spouse` from `2-14155268-1` where `death` = 'württemberg annexed by austria 1519–1534.'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-1\" WHERE death IN ('württemberg annexed by austria 1519–1534.', 'württemberg annexed by austria from 1519 to 1534')" + }, + { + "db_id": "2-14155268-1", + "question": "WHo Became Duchess that has a Death of 26 october 1614?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `became duchess` from `2-14155268-1` where `death` = '26 october 1614'", + "amb_query": "SELECT \"became duchess\" FROM \"2-14155268-1\" WHERE death IN ('26th october 1614', '26 october 1614')" + }, + { + "db_id": "2-14155268-1", + "question": "What is the Spouse of the Duchess that has a Death on 6 april 1780?", + "evidence": "", + "schema_text_wo_content": "Table 2-14155268-1, columns = [Birth, Marriage, Became Duchess, Ceased to be Duchess, Death, Spouse]\n", + "schema_text_with_content": "Table 2-14155268-1, columns = [`Birth` (Example values: [11 december 1455, october 29th, 1451, 24 april 1492]), `Marriage` (Example values: [4 june 1474, april/may 1467, 2 march 1511]), `Became Duchess` (Example values: [21 july 1495 created duchess, 24 february 1496 husband's accession, 2 march 1511]), `Ceased to be Duchess` (Example values: [24 february 1496 husband's death, 11 june 1498 husband's death, january 1519 husband's desposition]), `Death` (Example values: [30 may 1503, march 28th, 1524, 30 august 1564]), `Spouse` (Example values: [eberhard i, eberhard ii, ulrich])]\n", + "ori_query": "select `spouse` from `2-14155268-1` where `death` = '6 april 1780'", + "amb_query": "SELECT \"spouse\" FROM \"2-14155268-1\" WHERE death IN ('1780-04-06', '6 april 1780')" + }, + { + "db_id": "2-14305653-31", + "question": "Who was the opponent in brussels , belgium and had a result of 5:2?", + "evidence": "", + "schema_text_wo_content": "Table 2-14305653-31, columns = [Date, City, Opponent, Results¹, Type of game]\n", + "schema_text_with_content": "Table 2-14305653-31, columns = [`Date` (Example values: [january 16, may 9, may 14]), `City` (Example values: [cairo , egypt, belgrade city, city of brussels, belgium]), `Opponent` (Example values: [egypt, greece, belgium]), `Results¹` (Example values: [3:1, 1:0, 5:2]), `Type of game` (Example values: [friendly, 1954 wcq])]\n", + "ori_query": "select `opponent` from `2-14305653-31` where `city` = 'brussels , belgium' and `results¹` = '5:2'", + "amb_query": "SELECT \"opponent\" FROM \"2-14305653-31\" WHERE city IN ('city of brussels, belgium', 'brussels , belgium') AND \"results¹\" = '5:2'" + }, + { + "db_id": "2-14305653-31", + "question": "Who was the opponent in Belgrade and had a result of 5:2?", + "evidence": "", + "schema_text_wo_content": "Table 2-14305653-31, columns = [Date, City, Opponent, Results¹, Type of game]\n", + "schema_text_with_content": "Table 2-14305653-31, columns = [`Date` (Example values: [january 16, may 9, may 14]), `City` (Example values: [cairo , egypt, belgrade city, city of brussels, belgium]), `Opponent` (Example values: [egypt, greece, belgium]), `Results¹` (Example values: [3:1, 1:0, 5:2]), `Type of game` (Example values: [friendly, 1954 wcq])]\n", + "ori_query": "select `opponent` from `2-14305653-31` where `city` = 'belgrade' and `results¹` = '5:2'", + "amb_query": "SELECT \"opponent\" FROM \"2-14305653-31\" WHERE city IN ('belgrade city', 'belgrade, yugoslavia', 'belgrade') AND \"results¹\" = '5:2'" + }, + { + "db_id": "2-14305653-31", + "question": "What were the results against the game against Skoplje?", + "evidence": "", + "schema_text_wo_content": "Table 2-14305653-31, columns = [Date, City, Opponent, Results¹, Type of game]\n", + "schema_text_with_content": "Table 2-14305653-31, columns = [`Date` (Example values: [january 16, may 9, may 14]), `City` (Example values: [cairo , egypt, belgrade city, city of brussels, belgium]), `Opponent` (Example values: [egypt, greece, belgium]), `Results¹` (Example values: [3:1, 1:0, 5:2]), `Type of game` (Example values: [friendly, 1954 wcq])]\n", + "ori_query": "select `results¹` from `2-14305653-31` where `city` = 'skoplje'", + "amb_query": "SELECT \"results¹\" FROM \"2-14305653-31\" WHERE city IN ('skoplje', 'skopje city')" + }, + { + "db_id": "2-1364210-1", + "question": "Which memeber has tas as the state?", + "evidence": "", + "schema_text_wo_content": "Table 2-1364210-1, columns = [Member, Party, Electorate, State, First elected]\n", + "schema_text_with_content": "Table 2-1364210-1, columns = [`Member` (Example values: [evan adermann, rt hon doug anthony, john armitage]), `Party` (Example values: [country, alp, liberal]), `Electorate` (Example values: [fisher, richmond, chifley]), `State` (Example values: [qld state, nsw region, new south wales]), `First elected` (Example values: [1972, 1957, 1961–1963, 1969])]\n", + "ori_query": "select `member` from `2-1364210-1` where `state` = 'tas'", + "amb_query": "SELECT \"member\" FROM \"2-1364210-1\" WHERE state IN ('tasmania', 'tas, australia', 'tas')" + }, + { + "db_id": "2-1364210-1", + "question": "Which memeber has nt as the state?", + "evidence": "", + "schema_text_wo_content": "Table 2-1364210-1, columns = [Member, Party, Electorate, State, First elected]\n", + "schema_text_with_content": "Table 2-1364210-1, columns = [`Member` (Example values: [evan adermann, rt hon doug anthony, john armitage]), `Party` (Example values: [country, alp, liberal]), `Electorate` (Example values: [fisher, richmond, chifley]), `State` (Example values: [qld state, nsw region, new south wales]), `First elected` (Example values: [1972, 1957, 1961–1963, 1969])]\n", + "ori_query": "select `member` from `2-1364210-1` where `state` = 'nt'", + "amb_query": "SELECT \"member\" FROM \"2-1364210-1\" WHERE state IN ('nt territory', 'nt')" + }, + { + "db_id": "2-1364210-1", + "question": "Which memeber has nsw as the state, a first elected of 1952, and alp as the party?", + "evidence": "", + "schema_text_wo_content": "Table 2-1364210-1, columns = [Member, Party, Electorate, State, First elected]\n", + "schema_text_with_content": "Table 2-1364210-1, columns = [`Member` (Example values: [evan adermann, rt hon doug anthony, john armitage]), `Party` (Example values: [country, alp, liberal]), `Electorate` (Example values: [fisher, richmond, chifley]), `State` (Example values: [qld state, nsw region, new south wales]), `First elected` (Example values: [1972, 1957, 1961–1963, 1969])]\n", + "ori_query": "select `member` from `2-1364210-1` where `state` = 'nsw' and `first elected` = '1952' and `party` = 'alp'", + "amb_query": "SELECT \"member\" FROM \"2-1364210-1\" WHERE state IN ('nsw region', 'state of new south wales', 'nsw', 'new south wales') AND \"first elected\" = '1952' AND \"party\" = 'alp'" + }, + { + "db_id": "2-1364210-1", + "question": "Which party has wa as the state, and hon victor garland as the memeber?", + "evidence": "", + "schema_text_wo_content": "Table 2-1364210-1, columns = [Member, Party, Electorate, State, First elected]\n", + "schema_text_with_content": "Table 2-1364210-1, columns = [`Member` (Example values: [evan adermann, rt hon doug anthony, john armitage]), `Party` (Example values: [country, alp, liberal]), `Electorate` (Example values: [fisher, richmond, chifley]), `State` (Example values: [qld state, nsw region, new south wales]), `First elected` (Example values: [1972, 1957, 1961–1963, 1969])]\n", + "ori_query": "select `party` from `2-1364210-1` where `state` = 'wa' and `member` = 'hon victor garland'", + "amb_query": "SELECT \"party\" FROM \"2-1364210-1\" WHERE state IN ('western australia region', 'wa', 'western australia', 'wa, australia') AND \"member\" = 'hon victor garland'" + }, + { + "db_id": "2-1364210-1", + "question": "Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member?", + "evidence": "", + "schema_text_wo_content": "Table 2-1364210-1, columns = [Member, Party, Electorate, State, First elected]\n", + "schema_text_with_content": "Table 2-1364210-1, columns = [`Member` (Example values: [evan adermann, rt hon doug anthony, john armitage]), `Party` (Example values: [country, alp, liberal]), `Electorate` (Example values: [fisher, richmond, chifley]), `State` (Example values: [qld state, nsw region, new south wales]), `First elected` (Example values: [1972, 1957, 1961–1963, 1969])]\n", + "ori_query": "select `party` from `2-1364210-1` where `first elected` = '1966' and `state` = 'qld' and `member` = 'donald milner cameron'", + "amb_query": "SELECT \"party\" FROM \"2-1364210-1\" WHERE \"first elected\" = '1966' AND state IN ('qld', 'qld region', 'queensland', 'qld state') AND \"member\" = 'donald milner cameron'" + }, + { + "db_id": "2-1364210-1", + "question": "Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand?", + "evidence": "", + "schema_text_wo_content": "Table 2-1364210-1, columns = [Member, Party, Electorate, State, First elected]\n", + "schema_text_with_content": "Table 2-1364210-1, columns = [`Member` (Example values: [evan adermann, rt hon doug anthony, john armitage]), `Party` (Example values: [country, alp, liberal]), `Electorate` (Example values: [fisher, richmond, chifley]), `State` (Example values: [qld state, nsw region, new south wales]), `First elected` (Example values: [1972, 1957, 1961–1963, 1969])]\n", + "ori_query": "select `member` from `2-1364210-1` where `first elected` = '1972' and `party` = 'alp' and `state` = 'vic' and `electorate` = 'gellibrand'", + "amb_query": "SELECT \"member\" FROM \"2-1364210-1\" WHERE \"first elected\" = '1972' AND \"party\" = 'alp' AND state IN ('vic', 'victoria', 'vic, australia') AND \"electorate\" = 'gellibrand'" + }, + { + "db_id": "2-15715109-22", + "question": "What is the sum of Weight for the person born in roanoke, virginia?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-22, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1997–1998 Team]\n", + "schema_text_with_content": "Table 2-15715109-22, columns = [`Position` (Example values: [g, d, lw]), `Name` (Example values: [garth snow, tim thomas, greg brown]), `Height (cm)` (Example values: [191.0, 180.0, 183.0]), `Weight (kg)` (Example values: [91.0, 92.0, 94.0]), `Birthdate` (Example values: [july 28, 1969, april 15, 1974, march 7, 1968]), `Birthplace` (Example values: [wrentham, massachusetts, davison, michigan, southborough, massachusetts]), `1997–1998 Team` (Example values: [vancouver canucks, hifk ( sm-liiga ), ev landshut ( esbg )])]\n", + "ori_query": "select sum(`weight (kg)`) from `2-15715109-22` where `birthplace` = 'roanoke, virginia'", + "amb_query": "SELECT SUM(\"weight (kg)\") FROM \"2-15715109-22\" WHERE birthplace IN ('roanoke, virginia', 'roanoke, virginia state')" + }, + { + "db_id": "2-15715109-22", + "question": "What is the sum of Weight for the person born in richfield, minnesota?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-22, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1997–1998 Team]\n", + "schema_text_with_content": "Table 2-15715109-22, columns = [`Position` (Example values: [g, d, lw]), `Name` (Example values: [garth snow, tim thomas, greg brown]), `Height (cm)` (Example values: [191.0, 180.0, 183.0]), `Weight (kg)` (Example values: [91.0, 92.0, 94.0]), `Birthdate` (Example values: [july 28, 1969, april 15, 1974, march 7, 1968]), `Birthplace` (Example values: [wrentham, massachusetts, davison, michigan, southborough, massachusetts]), `1997–1998 Team` (Example values: [vancouver canucks, hifk ( sm-liiga ), ev landshut ( esbg )])]\n", + "ori_query": "select sum(`weight (kg)`) from `2-15715109-22` where `birthplace` = 'richfield, minnesota'", + "amb_query": "SELECT SUM(\"weight (kg)\") FROM \"2-15715109-22\" WHERE birthplace IN ('richfield, minnesota', 'richfield city, minnesota')" + }, + { + "db_id": "2-15715109-22", + "question": "What is the Position with a height of less than 183, and a weight of less than 91 kg and born in chicago, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-22, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1997–1998 Team]\n", + "schema_text_with_content": "Table 2-15715109-22, columns = [`Position` (Example values: [g, d, lw]), `Name` (Example values: [garth snow, tim thomas, greg brown]), `Height (cm)` (Example values: [191.0, 180.0, 183.0]), `Weight (kg)` (Example values: [91.0, 92.0, 94.0]), `Birthdate` (Example values: [july 28, 1969, april 15, 1974, march 7, 1968]), `Birthplace` (Example values: [wrentham, massachusetts, davison, michigan, southborough, massachusetts]), `1997–1998 Team` (Example values: [vancouver canucks, hifk ( sm-liiga ), ev landshut ( esbg )])]\n", + "ori_query": "select `position` from `2-15715109-22` where `height (cm)` < 183 and `weight (kg)` < 91 and `birthplace` = 'chicago, illinois'", + "amb_query": "SELECT \"position\" FROM \"2-15715109-22\" WHERE \"height (cm)\" < 183 AND \"weight (kg)\" < 91 AND birthplace IN ('chicago, illinois', 'chicago, cook county, illinois')" + }, + { + "db_id": "2-15715109-22", + "question": "What is the Position with a height of less than 183, and a weight of less than 91 kg and born in farmington hills, michigan?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-22, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1997–1998 Team]\n", + "schema_text_with_content": "Table 2-15715109-22, columns = [`Position` (Example values: [g, d, lw]), `Name` (Example values: [garth snow, tim thomas, greg brown]), `Height (cm)` (Example values: [191.0, 180.0, 183.0]), `Weight (kg)` (Example values: [91.0, 92.0, 94.0]), `Birthdate` (Example values: [july 28, 1969, april 15, 1974, march 7, 1968]), `Birthplace` (Example values: [wrentham, massachusetts, davison, michigan, southborough, massachusetts]), `1997–1998 Team` (Example values: [vancouver canucks, hifk ( sm-liiga ), ev landshut ( esbg )])]\n", + "ori_query": "select `position` from `2-15715109-22` where `height (cm)` < 183 and `weight (kg)` < 91 and `birthplace` = 'farmington hills, michigan'", + "amb_query": "SELECT \"position\" FROM \"2-15715109-22\" WHERE \"height (cm)\" < 183 AND \"weight (kg)\" < 91 AND birthplace IN ('farmington hills, mi, usa', 'farmington hills, michigan')" + }, + { + "db_id": "2-15715109-22", + "question": "What is the sum of Weight for the person born in virginia, minnesota?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-22, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1997–1998 Team]\n", + "schema_text_with_content": "Table 2-15715109-22, columns = [`Position` (Example values: [g, d, lw]), `Name` (Example values: [garth snow, tim thomas, greg brown]), `Height (cm)` (Example values: [191.0, 180.0, 183.0]), `Weight (kg)` (Example values: [91.0, 92.0, 94.0]), `Birthdate` (Example values: [july 28, 1969, april 15, 1974, march 7, 1968]), `Birthplace` (Example values: [wrentham, massachusetts, davison, michigan, southborough, massachusetts]), `1997–1998 Team` (Example values: [vancouver canucks, hifk ( sm-liiga ), ev landshut ( esbg )])]\n", + "ori_query": "select sum(`weight (kg)`) from `2-15715109-22` where `birthplace` = 'virginia, minnesota'", + "amb_query": "SELECT SUM(\"weight (kg)\") FROM \"2-15715109-22\" WHERE birthplace IN ('virginia, minnesota', 'virginia, minnesota, usa')" + }, + { + "db_id": "2-15715109-22", + "question": "What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-22, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1997–1998 Team]\n", + "schema_text_with_content": "Table 2-15715109-22, columns = [`Position` (Example values: [g, d, lw]), `Name` (Example values: [garth snow, tim thomas, greg brown]), `Height (cm)` (Example values: [191.0, 180.0, 183.0]), `Weight (kg)` (Example values: [91.0, 92.0, 94.0]), `Birthdate` (Example values: [july 28, 1969, april 15, 1974, march 7, 1968]), `Birthplace` (Example values: [wrentham, massachusetts, davison, michigan, southborough, massachusetts]), `1997–1998 Team` (Example values: [vancouver canucks, hifk ( sm-liiga ), ev landshut ( esbg )])]\n", + "ori_query": "select `position` from `2-15715109-22` where `height (cm)` < 183 and `weight (kg)` < 91 and `birthplace` = 'bloomington, minnesota'", + "amb_query": "SELECT \"position\" FROM \"2-15715109-22\" WHERE \"height (cm)\" < 183 AND \"weight (kg)\" < 91 AND birthplace IN ('city of bloomington, minnesota', 'bloomington, mn', 'bloomington, minnesota')" + }, + { + "db_id": "2-156618-3", + "question": "What is the lowest population for the neighborhood with the color yellow that commenced its construction before 1987?", + "evidence": "", + "schema_text_wo_content": "Table 2-156618-3, columns = [Number on map, Name, Colour, Construction commenced, Population]\n", + "schema_text_with_content": "Table 2-156618-3, columns = [`Number on map` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [langley green, northgate, pound hill]), `Colour` (Example values: [grey, dark green, orange]), `Construction commenced` (Example values: [1952.0, 1951.0, 1953.0]), `Population` (Example values: [7,286, 4,407, 14,716])]\n", + "ori_query": "select min(`population`) from `2-156618-3` where `colour` = 'yellow' and `construction commenced` < 1987", + "amb_query": "SELECT MIN(\"population\") FROM \"2-156618-3\" WHERE colour IN ('yellow', 'yellow color') AND \"construction commenced\" < 1987" + }, + { + "db_id": "2-156618-3", + "question": "What is the lowest population for the neighborhood with the color purple that commenced its construction before 1987?", + "evidence": "", + "schema_text_wo_content": "Table 2-156618-3, columns = [Number on map, Name, Colour, Construction commenced, Population]\n", + "schema_text_with_content": "Table 2-156618-3, columns = [`Number on map` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [langley green, northgate, pound hill]), `Colour` (Example values: [grey, dark green, orange]), `Construction commenced` (Example values: [1952.0, 1951.0, 1953.0]), `Population` (Example values: [7,286, 4,407, 14,716])]\n", + "ori_query": "select min(`population`) from `2-156618-3` where `colour` = 'purple' and `construction commenced` < 1987", + "amb_query": "SELECT MIN(\"population\") FROM \"2-156618-3\" WHERE colour IN ('purple hue', 'purple') AND \"construction commenced\" < 1987" + }, + { + "db_id": "2-156618-3", + "question": "What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987?", + "evidence": "", + "schema_text_wo_content": "Table 2-156618-3, columns = [Number on map, Name, Colour, Construction commenced, Population]\n", + "schema_text_with_content": "Table 2-156618-3, columns = [`Number on map` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [langley green, northgate, pound hill]), `Colour` (Example values: [grey, dark green, orange]), `Construction commenced` (Example values: [1952.0, 1951.0, 1953.0]), `Population` (Example values: [7,286, 4,407, 14,716])]\n", + "ori_query": "select min(`population`) from `2-156618-3` where `colour` = 'blue' and `construction commenced` < 1987", + "amb_query": "SELECT MIN(\"population\") FROM \"2-156618-3\" WHERE colour IN ('blue', 'blue tone') AND \"construction commenced\" < 1987" + }, + { + "db_id": "2-16079809-1", + "question": "What is the Enrollment at arcadia?", + "evidence": "", + "schema_text_wo_content": "Table 2-16079809-1, columns = [Institution, Location, Affiliation, Enrollment, Mascot, Colors]\n", + "schema_text_with_content": "Table 2-16079809-1, columns = [`Institution` (Example values: [arcadia, black river falls, gale-ettrick-trempealeau]), `Location` (Example values: [arcadia city, black river falls, usa, galesville, usa]), `Affiliation` (Example values: [public, private]), `Enrollment` (Example values: [312.0, 557.0, 449.0]), `Mascot` (Example values: [raiders, tigers, red hawks]), `Colors` (Example values: [red and black, black and orange, red and blue])]\n", + "ori_query": "select max(`enrollment`) from `2-16079809-1` where `location` = 'arcadia'", + "amb_query": "SELECT MAX(\"enrollment\") FROM \"2-16079809-1\" WHERE location IN ('arcadia city', 'arcadia')" + }, + { + "db_id": "2-16079809-1", + "question": "What Public Institution is in galesville?", + "evidence": "", + "schema_text_wo_content": "Table 2-16079809-1, columns = [Institution, Location, Affiliation, Enrollment, Mascot, Colors]\n", + "schema_text_with_content": "Table 2-16079809-1, columns = [`Institution` (Example values: [arcadia, black river falls, gale-ettrick-trempealeau]), `Location` (Example values: [arcadia city, black river falls, usa, galesville, usa]), `Affiliation` (Example values: [public, private]), `Enrollment` (Example values: [312.0, 557.0, 449.0]), `Mascot` (Example values: [raiders, tigers, red hawks]), `Colors` (Example values: [red and black, black and orange, red and blue])]\n", + "ori_query": "select `institution` from `2-16079809-1` where `affiliation` = 'public' and `location` = 'galesville'", + "amb_query": "SELECT \"institution\" FROM \"2-16079809-1\" WHERE \"affiliation\" = 'public' AND location IN ('galesville', 'galesville, usa')" + }, + { + "db_id": "2-16079809-1", + "question": "What is the Enrollment at Onalaska?", + "evidence": "", + "schema_text_wo_content": "Table 2-16079809-1, columns = [Institution, Location, Affiliation, Enrollment, Mascot, Colors]\n", + "schema_text_with_content": "Table 2-16079809-1, columns = [`Institution` (Example values: [arcadia, black river falls, gale-ettrick-trempealeau]), `Location` (Example values: [arcadia city, black river falls, usa, galesville, usa]), `Affiliation` (Example values: [public, private]), `Enrollment` (Example values: [312.0, 557.0, 449.0]), `Mascot` (Example values: [raiders, tigers, red hawks]), `Colors` (Example values: [red and black, black and orange, red and blue])]\n", + "ori_query": "select max(`enrollment`) from `2-16079809-1` where `location` = 'onalaska'", + "amb_query": "SELECT MAX(\"enrollment\") FROM \"2-16079809-1\" WHERE location IN ('onalaska, wisconsin', 'onalaska')" + }, + { + "db_id": "2-16079809-1", + "question": "What Public Institution is in Black River Falls?", + "evidence": "", + "schema_text_wo_content": "Table 2-16079809-1, columns = [Institution, Location, Affiliation, Enrollment, Mascot, Colors]\n", + "schema_text_with_content": "Table 2-16079809-1, columns = [`Institution` (Example values: [arcadia, black river falls, gale-ettrick-trempealeau]), `Location` (Example values: [arcadia city, black river falls, usa, galesville, usa]), `Affiliation` (Example values: [public, private]), `Enrollment` (Example values: [312.0, 557.0, 449.0]), `Mascot` (Example values: [raiders, tigers, red hawks]), `Colors` (Example values: [red and black, black and orange, red and blue])]\n", + "ori_query": "select `institution` from `2-16079809-1` where `affiliation` = 'public' and `location` = 'black river falls'", + "amb_query": "SELECT \"institution\" FROM \"2-16079809-1\" WHERE \"affiliation\" = 'public' AND location IN ('black river falls, usa', 'black river falls')" + }, + { + "db_id": "2-15525566-1", + "question": "What is the frequency of the call sign licensed in coxsackie (town), new york?", + "evidence": "", + "schema_text_wo_content": "Table 2-15525566-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-15525566-1, columns = [`Call sign` (Example values: [w244bg, w234al, w248ax]), `Frequency MHz` (Example values: [96.7, 94.7, 97.5]), `City of license` (Example values: [lanesborough, massachusetts, north adams, massachusetts, albany, new york state]), `ERP W` (Example values: [1.0, 50.0, 100.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `frequency mhz` from `2-15525566-1` where `city of license` = 'coxsackie (town), new york'", + "amb_query": "SELECT \"frequency mhz\" FROM \"2-15525566-1\" WHERE city of license IN ('coxsackie, new york', 'coxsackie (town), new york')" + }, + { + "db_id": "2-15525566-1", + "question": "What is the frequency of the call sign licensed in tupper lake, new york?", + "evidence": "", + "schema_text_wo_content": "Table 2-15525566-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-15525566-1, columns = [`Call sign` (Example values: [w244bg, w234al, w248ax]), `Frequency MHz` (Example values: [96.7, 94.7, 97.5]), `City of license` (Example values: [lanesborough, massachusetts, north adams, massachusetts, albany, new york state]), `ERP W` (Example values: [1.0, 50.0, 100.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `frequency mhz` from `2-15525566-1` where `city of license` = 'tupper lake, new york'", + "amb_query": "SELECT \"frequency mhz\" FROM \"2-15525566-1\" WHERE city of license IN ('tupper lake in the state of new york', 'tupper lake, new york')" + }, + { + "db_id": "2-15525566-1", + "question": "What is the frequency of the call sign licensed in Albany, New York?", + "evidence": "", + "schema_text_wo_content": "Table 2-15525566-1, columns = [Call sign, Frequency MHz, City of license, ERP W, Class, FCC info]\n", + "schema_text_with_content": "Table 2-15525566-1, columns = [`Call sign` (Example values: [w244bg, w234al, w248ax]), `Frequency MHz` (Example values: [96.7, 94.7, 97.5]), `City of license` (Example values: [lanesborough, massachusetts, north adams, massachusetts, albany, new york state]), `ERP W` (Example values: [1.0, 50.0, 100.0]), `Class` (Example values: [d]), `FCC info` (Example values: [fcc])]\n", + "ori_query": "select `frequency mhz` from `2-15525566-1` where `city of license` = 'albany, new york'", + "amb_query": "SELECT \"frequency mhz\" FROM \"2-15525566-1\" WHERE city of license IN ('albany, new york state', 'albany, new york')" + }, + { + "db_id": "2-15582798-2", + "question": "Which Chart peak was Recorded on 6/23/68?", + "evidence": "", + "schema_text_wo_content": "Table 2-15582798-2, columns = [Track, Recorded, Catalogue, Release date, Chart peak, Song title, Writer(s), Time]\n", + "schema_text_with_content": "Table 2-15582798-2, columns = [`Track` (Example values: [1.0, 2.0, 3.0]), `Recorded` (Example values: [1/22/69, 2-19-69, 1/20/69]), `Catalogue` (Example values: [47-9764, 47-9791, 47-9741]), `Release date` (Example values: [8/26/69, 1/29/70, 4/14/69]), `Chart peak` (Example values: [#1, #16, #3]), `Song title` (Example values: [suspicious minds, kentucky rain, in the ghetto]), `Writer(s)` (Example values: [mark james, eddie rabbitt and dick heard, mac davis]), `Time` (Example values: [3:28, 3:14, 2:45])]\n", + "ori_query": "select `chart peak` from `2-15582798-2` where `recorded` = '6/23/68'", + "amb_query": "SELECT \"chart peak\" FROM \"2-15582798-2\" WHERE recorded IN ('6/23/68', 'june 23, 1968')" + }, + { + "db_id": "2-15582798-2", + "question": "Which Chart peak was Recorded on 2/19/69?", + "evidence": "", + "schema_text_wo_content": "Table 2-15582798-2, columns = [Track, Recorded, Catalogue, Release date, Chart peak, Song title, Writer(s), Time]\n", + "schema_text_with_content": "Table 2-15582798-2, columns = [`Track` (Example values: [1.0, 2.0, 3.0]), `Recorded` (Example values: [1/22/69, 2-19-69, 1/20/69]), `Catalogue` (Example values: [47-9764, 47-9791, 47-9741]), `Release date` (Example values: [8/26/69, 1/29/70, 4/14/69]), `Chart peak` (Example values: [#1, #16, #3]), `Song title` (Example values: [suspicious minds, kentucky rain, in the ghetto]), `Writer(s)` (Example values: [mark james, eddie rabbitt and dick heard, mac davis]), `Time` (Example values: [3:28, 3:14, 2:45])]\n", + "ori_query": "select `chart peak` from `2-15582798-2` where `recorded` = '2/19/69'", + "amb_query": "SELECT \"chart peak\" FROM \"2-15582798-2\" WHERE recorded IN ('2/19/69', '2-19-69')" + }, + { + "db_id": "2-15715109-12", + "question": "Which Name has a Height (cm) of 175 and a Birthplace of anoka, minnesota", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-12, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, Previous Club/Team]\n", + "schema_text_with_content": "Table 2-15715109-12, columns = [`Position` (Example values: [g, d, f]), `Name` (Example values: [blane comstock, jim warden, robert harris]), `Height (cm)` (Example values: [178.0, 191.0, 183.0]), `Weight (kg)` (Example values: [73.0, 86.0, 82.0]), `Birthdate` (Example values: [3 november 1949, 22 june 1954, december 4, 1953]), `Birthplace` (Example values: [roseau, minnesota, detroit, mi, omaha, nebraska]), `Previous Club/Team` (Example values: [warroad lakers, salt lake golden eagles ( chl ), university of minnesota])]\n", + "ori_query": "select `name` from `2-15715109-12` where `height (cm)` = 175 and `birthplace` = 'anoka, minnesota'", + "amb_query": "SELECT \"name\" FROM \"2-15715109-12\" WHERE \"height (cm)\" = 175 AND birthplace IN ('anoka, minnesota', 'anoka city, minnesota')" + }, + { + "db_id": "2-15715109-12", + "question": "Which Name has a Height (cm) of 175 and a Birthplace of babbitt, minnesota", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-12, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, Previous Club/Team]\n", + "schema_text_with_content": "Table 2-15715109-12, columns = [`Position` (Example values: [g, d, f]), `Name` (Example values: [blane comstock, jim warden, robert harris]), `Height (cm)` (Example values: [178.0, 191.0, 183.0]), `Weight (kg)` (Example values: [73.0, 86.0, 82.0]), `Birthdate` (Example values: [3 november 1949, 22 june 1954, december 4, 1953]), `Birthplace` (Example values: [roseau, minnesota, detroit, mi, omaha, nebraska]), `Previous Club/Team` (Example values: [warroad lakers, salt lake golden eagles ( chl ), university of minnesota])]\n", + "ori_query": "select `name` from `2-15715109-12` where `height (cm)` = 175 and `birthplace` = 'babbitt, minnesota'", + "amb_query": "SELECT \"name\" FROM \"2-15715109-12\" WHERE \"height (cm)\" = 175 AND birthplace IN ('babbitt, minnesota, usa', 'babbitt, minnesota')" + }, + { + "db_id": "2-15715109-12", + "question": "Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-12, columns = [Position, Name, Height (cm), Weight (kg), Birthdate, Birthplace, Previous Club/Team]\n", + "schema_text_with_content": "Table 2-15715109-12, columns = [`Position` (Example values: [g, d, f]), `Name` (Example values: [blane comstock, jim warden, robert harris]), `Height (cm)` (Example values: [178.0, 191.0, 183.0]), `Weight (kg)` (Example values: [73.0, 86.0, 82.0]), `Birthdate` (Example values: [3 november 1949, 22 june 1954, december 4, 1953]), `Birthplace` (Example values: [roseau, minnesota, detroit, mi, omaha, nebraska]), `Previous Club/Team` (Example values: [warroad lakers, salt lake golden eagles ( chl ), university of minnesota])]\n", + "ori_query": "select `name` from `2-15715109-12` where `height (cm)` = 175 and `birthplace` = 'detroit, michigan'", + "amb_query": "SELECT \"name\" FROM \"2-15715109-12\" WHERE \"height (cm)\" = 175 AND birthplace IN ('detroit, michigan', 'detroit, mi', 'city of detroit, michigan')" + }, + { + "db_id": "2-15715109-40", + "question": "What is the lowest jersey # that has new brunswick, new jersey as the birthplace, with a weight (km) greater than 86?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-40, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1983–1984 Team]\n", + "schema_text_with_content": "Table 2-15715109-40, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [31.0, 1.0, 21.0]), `Name` (Example values: [tom barrasso, glenn resch, chris chelios]), `Height (cm)` (Example values: [190.0, 175.0, 185.0]), `Weight (kg)` (Example values: [95.0, 88.0, 86.0]), `Birthdate` (Example values: [march 31, 1965, july 10, 1948, january 25, 1962]), `Birthplace` (Example values: [boston, massachusetts, moose jaw, saskatchewan , canada, evergreen park, il]), `1983–1984 Team` (Example values: [buffalo sabres, new jersey devils, montreal canadiens])]\n", + "ori_query": "select min(`jersey #`) from `2-15715109-40` where `birthplace` = 'new brunswick, new jersey' and `weight (kg)` > 86", + "amb_query": "SELECT MIN(\"jersey #\") FROM \"2-15715109-40\" WHERE birthplace IN ('new brunswick, new jersey', 'new brunswick, usa') AND \"weight (kg)\" > 86" + }, + { + "db_id": "2-15715109-40", + "question": "What is the lowest jersey # that has melrose, massachusetts as the birthplace, with a weight (km) greater than 86?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-40, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1983–1984 Team]\n", + "schema_text_with_content": "Table 2-15715109-40, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [31.0, 1.0, 21.0]), `Name` (Example values: [tom barrasso, glenn resch, chris chelios]), `Height (cm)` (Example values: [190.0, 175.0, 185.0]), `Weight (kg)` (Example values: [95.0, 88.0, 86.0]), `Birthdate` (Example values: [march 31, 1965, july 10, 1948, january 25, 1962]), `Birthplace` (Example values: [boston, massachusetts, moose jaw, saskatchewan , canada, evergreen park, il]), `1983–1984 Team` (Example values: [buffalo sabres, new jersey devils, montreal canadiens])]\n", + "ori_query": "select min(`jersey #`) from `2-15715109-40` where `birthplace` = 'melrose, massachusetts' and `weight (kg)` > 86", + "amb_query": "SELECT MIN(\"jersey #\") FROM \"2-15715109-40\" WHERE birthplace IN ('melrose, massachusetts', 'melrose, ma') AND \"weight (kg)\" > 86" + }, + { + "db_id": "2-15715109-40", + "question": "What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-40, columns = [Position, Jersey #, Name, Height (cm), Weight (kg), Birthdate, Birthplace, 1983–1984 Team]\n", + "schema_text_with_content": "Table 2-15715109-40, columns = [`Position` (Example values: [g, d, f]), `Jersey #` (Example values: [31.0, 1.0, 21.0]), `Name` (Example values: [tom barrasso, glenn resch, chris chelios]), `Height (cm)` (Example values: [190.0, 175.0, 185.0]), `Weight (kg)` (Example values: [95.0, 88.0, 86.0]), `Birthdate` (Example values: [march 31, 1965, july 10, 1948, january 25, 1962]), `Birthplace` (Example values: [boston, massachusetts, moose jaw, saskatchewan , canada, evergreen park, il]), `1983–1984 Team` (Example values: [buffalo sabres, new jersey devils, montreal canadiens])]\n", + "ori_query": "select min(`jersey #`) from `2-15715109-40` where `birthplace` = 'evergreen park, illinois' and `weight (kg)` > 86", + "amb_query": "SELECT MIN(\"jersey #\") FROM \"2-15715109-40\" WHERE birthplace IN ('evergreen park, illinois', 'evergreen park, il') AND \"weight (kg)\" > 86" + }, + { + "db_id": "2-15715109-1", + "question": "What is the Position of the person with a birthplace of melrose, massachusetts?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-1, columns = [Position, Name, Birthdate, Birthplace, Team]\n", + "schema_text_with_content": "Table 2-15715109-1, columns = [`Position` (Example values: [g, d, rover]), `Name` (Example values: [raymond bonney, cyril weidenborner, edward fitzgerald]), `Birthdate` (Example values: [2 april 1892, 30 march 1895, 3 august 1890]), `Birthplace` (Example values: [phoenix, new york, usa, saint paul, minnesota, northfield, minnesota, united states]), `Team` (Example values: [st. paul a.c., boston aa, pittsburgh aa])]\n", + "ori_query": "select `position` from `2-15715109-1` where `birthplace` = 'melrose, massachusetts'", + "amb_query": "SELECT \"position\" FROM \"2-15715109-1\" WHERE birthplace IN ('melrose, massachusetts', 'melrose, a city in massachusetts')" + }, + { + "db_id": "2-15715109-1", + "question": "What is the Team for the player born in buckingham, quebec?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-1, columns = [Position, Name, Birthdate, Birthplace, Team]\n", + "schema_text_with_content": "Table 2-15715109-1, columns = [`Position` (Example values: [g, d, rover]), `Name` (Example values: [raymond bonney, cyril weidenborner, edward fitzgerald]), `Birthdate` (Example values: [2 april 1892, 30 march 1895, 3 august 1890]), `Birthplace` (Example values: [phoenix, new york, usa, saint paul, minnesota, northfield, minnesota, united states]), `Team` (Example values: [st. paul a.c., boston aa, pittsburgh aa])]\n", + "ori_query": "select `team` from `2-15715109-1` where `birthplace` = 'buckingham, quebec'", + "amb_query": "SELECT \"team\" FROM \"2-15715109-1\" WHERE birthplace IN ('buckingham, quebec', 'buckingham, quebec province')" + }, + { + "db_id": "2-15715109-1", + "question": "What is the Team for the player born in northfield, minnesota?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-1, columns = [Position, Name, Birthdate, Birthplace, Team]\n", + "schema_text_with_content": "Table 2-15715109-1, columns = [`Position` (Example values: [g, d, rover]), `Name` (Example values: [raymond bonney, cyril weidenborner, edward fitzgerald]), `Birthdate` (Example values: [2 april 1892, 30 march 1895, 3 august 1890]), `Birthplace` (Example values: [phoenix, new york, usa, saint paul, minnesota, northfield, minnesota, united states]), `Team` (Example values: [st. paul a.c., boston aa, pittsburgh aa])]\n", + "ori_query": "select `team` from `2-15715109-1` where `birthplace` = 'northfield, minnesota'", + "amb_query": "SELECT \"team\" FROM \"2-15715109-1\" WHERE birthplace IN ('northfield, minnesota', 'northfield, minnesota, united states')" + }, + { + "db_id": "2-15715109-1", + "question": "What is the Position of the person with a birthplace of phoenix, new york?", + "evidence": "", + "schema_text_wo_content": "Table 2-15715109-1, columns = [Position, Name, Birthdate, Birthplace, Team]\n", + "schema_text_with_content": "Table 2-15715109-1, columns = [`Position` (Example values: [g, d, rover]), `Name` (Example values: [raymond bonney, cyril weidenborner, edward fitzgerald]), `Birthdate` (Example values: [2 april 1892, 30 march 1895, 3 august 1890]), `Birthplace` (Example values: [phoenix, new york, usa, saint paul, minnesota, northfield, minnesota, united states]), `Team` (Example values: [st. paul a.c., boston aa, pittsburgh aa])]\n", + "ori_query": "select `position` from `2-15715109-1` where `birthplace` = 'phoenix, new york'", + "amb_query": "SELECT \"position\" FROM \"2-15715109-1\" WHERE birthplace IN ('phoenix, new york, usa', 'phoenix, new york')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 5 meetings that has w 5 as the current streak, and 11/29/2008 as the last meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 5 meetings` from `2-15740666-6` where `current streak` = 'w 5' and `last meeting` = '11/29/2008'", + "amb_query": "SELECT \"last 5 meetings\" FROM \"2-15740666-6\" WHERE \"current streak\" = 'w 5' AND last meeting IN ('11.29.2008', '11/29/2008')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 5 meetings that has w 5 as the current streak, and 12/3/2010 as the last meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 5 meetings` from `2-15740666-6` where `current streak` = 'w 5' and `last meeting` = '12/3/2010'", + "amb_query": "SELECT \"last 5 meetings\" FROM \"2-15740666-6\" WHERE \"current streak\" = 'w 5' AND last meeting IN ('12/3/2010', '2010-12-03')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 5 meetings that has w 5 as the current streak, and 3/28/1994 as the last meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 5 meetings` from `2-15740666-6` where `current streak` = 'w 5' and `last meeting` = '3/28/1994'", + "amb_query": "SELECT \"last 5 meetings\" FROM \"2-15740666-6\" WHERE \"current streak\" = 'w 5' AND last meeting IN ('1994-03-28', '3/28/1994')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 10 meetings that have 12/2/2000 as the lasr meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 10 meetings` from `2-15740666-6` where `last meeting` = '12/2/2000'", + "amb_query": "SELECT \"last 10 meetings\" FROM \"2-15740666-6\" WHERE last meeting IN ('12/2/2000', '12-02-2000')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 10 meetings that have 3/19/2011 as the lasr meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 10 meetings` from `2-15740666-6` where `last meeting` = '3/19/2011'", + "amb_query": "SELECT \"last 10 meetings\" FROM \"2-15740666-6\" WHERE last meeting IN ('3/19/2011', 'march 19, 2011')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 10 meetings that have 12/8/1984 as the lasr meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 10 meetings` from `2-15740666-6` where `last meeting` = '12/8/1984'", + "amb_query": "SELECT \"last 10 meetings\" FROM \"2-15740666-6\" WHERE last meeting IN ('8th december 1984', '12/8/1984')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 5 meetings that has w 5 as the current streak, and 3/18/2010 as the last meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 5 meetings` from `2-15740666-6` where `current streak` = 'w 5' and `last meeting` = '3/18/2010'", + "amb_query": "SELECT \"last 5 meetings\" FROM \"2-15740666-6\" WHERE \"current streak\" = 'w 5' AND last meeting IN ('march 18, 2010', '3/18/2010')" + }, + { + "db_id": "2-15740666-6", + "question": "What is the last 10 meetings that have 11/26/1988 as the lasr meeting?", + "evidence": "", + "schema_text_wo_content": "Table 2-15740666-6, columns = [Kansas State vs., Games played, Overall Record, Last 5 Meetings, Last 10 Meetings, Current Streak, Last Meeting]\n", + "schema_text_with_content": "Table 2-15740666-6, columns = [`Kansas State vs.` (Example values: [wichita state, indiana, drake]), `Games played` (Example values: [31, 26, 17]), `Overall Record` (Example values: [ksu, 20-11, iu, 19-12, ksu, 20-6]), `Last 5 Meetings` (Example values: [ksu, 3-2, iu, 5-0, ksu, 4-1]), `Last 10 Meetings` (Example values: [ksu, 6-4, iu, 9-1, ksu, 8-2]), `Current Streak` (Example values: [w 2, l 9, w 1]), `Last Meeting` (Example values: [12/10/2003, 11/23/1998, 12/18/1956])]\n", + "ori_query": "select `last 10 meetings` from `2-15740666-6` where `last meeting` = '11/26/1988'", + "amb_query": "SELECT \"last 10 meetings\" FROM \"2-15740666-6\" WHERE last meeting IN ('11/26/1988', '11-26-88')" + }, + { + "db_id": "2-16304368-1", + "question": "Who is the runner-up from medford, or?", + "evidence": "", + "schema_text_wo_content": "Table 2-16304368-1, columns = [Date, Event, City, Oil Pattern, Winner (Title #), Runner-up, Score]\n", + "schema_text_with_content": "Table 2-16304368-1, columns = [`Date` (Example values: [sep. 26, oct. 28, nov. 5]), `Event` (Example values: [dydo japan cup, usbc masters, motor city classic]), `City` (Example values: [tokyo, milwaukee, united states, taylor, mi]), `Oil Pattern` (Example values: [standard, cheetah, shark]), `Winner (Title #)` (Example values: [walter ray williams jr. (42), doug kent (9), tony reyes (1)]), `Runner-up` (Example values: [pete weber, jack jurek, wes malott]), `Score` (Example values: [289-236, 277-230, 255-238])]\n", + "ori_query": "select `runner-up` from `2-16304368-1` where `city` = 'medford, or'", + "amb_query": "SELECT \"runner-up\" FROM \"2-16304368-1\" WHERE city IN ('medford, or', 'city of medford, oregon')" + }, + { + "db_id": "2-16304368-1", + "question": "Who is the runner-up from baltimore, md?", + "evidence": "", + "schema_text_wo_content": "Table 2-16304368-1, columns = [Date, Event, City, Oil Pattern, Winner (Title #), Runner-up, Score]\n", + "schema_text_with_content": "Table 2-16304368-1, columns = [`Date` (Example values: [sep. 26, oct. 28, nov. 5]), `Event` (Example values: [dydo japan cup, usbc masters, motor city classic]), `City` (Example values: [tokyo, milwaukee, united states, taylor, mi]), `Oil Pattern` (Example values: [standard, cheetah, shark]), `Winner (Title #)` (Example values: [walter ray williams jr. (42), doug kent (9), tony reyes (1)]), `Runner-up` (Example values: [pete weber, jack jurek, wes malott]), `Score` (Example values: [289-236, 277-230, 255-238])]\n", + "ori_query": "select `runner-up` from `2-16304368-1` where `city` = 'baltimore, md'", + "amb_query": "SELECT \"runner-up\" FROM \"2-16304368-1\" WHERE city IN ('baltimore, md', 'baltimore, maryland')" + }, + { + "db_id": "2-16304368-1", + "question": "Who is the runner-up from Milwaukee?", + "evidence": "", + "schema_text_wo_content": "Table 2-16304368-1, columns = [Date, Event, City, Oil Pattern, Winner (Title #), Runner-up, Score]\n", + "schema_text_with_content": "Table 2-16304368-1, columns = [`Date` (Example values: [sep. 26, oct. 28, nov. 5]), `Event` (Example values: [dydo japan cup, usbc masters, motor city classic]), `City` (Example values: [tokyo, milwaukee, united states, taylor, mi]), `Oil Pattern` (Example values: [standard, cheetah, shark]), `Winner (Title #)` (Example values: [walter ray williams jr. (42), doug kent (9), tony reyes (1)]), `Runner-up` (Example values: [pete weber, jack jurek, wes malott]), `Score` (Example values: [289-236, 277-230, 255-238])]\n", + "ori_query": "select `runner-up` from `2-16304368-1` where `city` = 'milwaukee'", + "amb_query": "SELECT \"runner-up\" FROM \"2-16304368-1\" WHERE city IN ('milwaukee', 'milwaukee, united states')" + }, + { + "db_id": "2-17520230-1", + "question": "Which Date has a Location of davos, and a Time of 45.7?", + "evidence": "", + "schema_text_wo_content": "Table 2-17520230-1, columns = [Distance, Time, Date, Location, Notes]\n", + "schema_text_with_content": "Table 2-17520230-1, columns = [`Distance` (Example values: [men's speed skating, distance, 500 m]), `Time` (Example values: [men's speed skating, time, 45.7]), `Date` (Example values: [men's speed skating, date, 1931-02-01]), `Location` (Example values: [men's speed skating, location, davos, switzerland]), `Notes` (Example values: [men's speed skating, notes, davos eisstadion])]\n", + "ori_query": "select `date` from `2-17520230-1` where `location` = 'davos' and `time` = '45.7'", + "amb_query": "SELECT \"date\" FROM \"2-17520230-1\" WHERE location IN ('davos', 'davos ski resort', 'davos, switzerland') AND \"time\" = '45.7'" + }, + { + "db_id": "2-17297775-1", + "question": "What is Ship, when Nationality is \"mandatory palestine\", and when Date is \"26 June 1943\", and when Tonnage is \"80\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-17297775-1, columns = [Date, Ship, Nationality, Tonnage, Fate]\n", + "schema_text_with_content": "Table 2-17297775-1, columns = [`Date` (Example values: [9 september 1941, 10 september 1941, 13 november 1941]), `Ship` (Example values: [empire springbuck, sally mærsk, hmsark royal]), `Nationality` (Example values: [uk, egypt, france]), `Tonnage` (Example values: [5,591, 3,252, 22,600]), `Fate` (Example values: [sunk, damaged, total loss])]\n", + "ori_query": "select `ship` from `2-17297775-1` where `nationality` = 'mandatory palestine' and `date` = '26 june 1943' and `tonnage` = 80", + "amb_query": "SELECT \"ship\" FROM \"2-17297775-1\" WHERE nationality IN ('mandatory palestine', 'british mandate of palestine') AND \"date\" = '26 june 1943' AND \"tonnage\" = 80" + }, + { + "db_id": "2-17297775-1", + "question": "What is Ship, when Nationality is \"Syria\", and when Date is \"26 June 1943\", and when Tonnage is \"80\"?", + "evidence": "", + "schema_text_wo_content": "Table 2-17297775-1, columns = [Date, Ship, Nationality, Tonnage, Fate]\n", + "schema_text_with_content": "Table 2-17297775-1, columns = [`Date` (Example values: [9 september 1941, 10 september 1941, 13 november 1941]), `Ship` (Example values: [empire springbuck, sally mærsk, hmsark royal]), `Nationality` (Example values: [uk, egypt, france]), `Tonnage` (Example values: [5,591, 3,252, 22,600]), `Fate` (Example values: [sunk, damaged, total loss])]\n", + "ori_query": "select `ship` from `2-17297775-1` where `nationality` = 'syria' and `date` = '26 june 1943' and `tonnage` = 80", + "amb_query": "SELECT \"ship\" FROM \"2-17297775-1\" WHERE nationality IN ('syria', 'syria country', 'the country of syria') AND \"date\" = '26 june 1943' AND \"tonnage\" = 80" + }, + { + "db_id": "2-17540670-1", + "question": "In what region was Degeneration released in 12\" format on 19 July 2008?", + "evidence": "", + "schema_text_wo_content": "Table 2-17540670-1, columns = [Date, Label, Region, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17540670-1, columns = [`Date` (Example values: [early july 2008, 19 july 2008, 18 august 2008]), `Label` (Example values: [polydor]), `Region` (Example values: [belgium, switzerland, france, belgium, france, switzerland]), `Format` (Example values: [digital release, digital media, cd maxi]), `Catalog` (Example values: [—, 5310110, 5310111])]\n", + "ori_query": "select `region` from `2-17540670-1` where `format` = '12\"' and `date` = '19 july 2008'", + "amb_query": "SELECT \"region\" FROM \"2-17540670-1\" WHERE format IN ('12\"', '12\" format') AND \"date\" = '19 july 2008'" + }, + { + "db_id": "2-17540670-1", + "question": "In what region was Degeneration released in digital format on 19 July 2008?", + "evidence": "", + "schema_text_wo_content": "Table 2-17540670-1, columns = [Date, Label, Region, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17540670-1, columns = [`Date` (Example values: [early july 2008, 19 july 2008, 18 august 2008]), `Label` (Example values: [polydor]), `Region` (Example values: [belgium, switzerland, france, belgium, france, switzerland]), `Format` (Example values: [digital release, digital media, cd maxi]), `Catalog` (Example values: [—, 5310110, 5310111])]\n", + "ori_query": "select `region` from `2-17540670-1` where `format` = 'digital' and `date` = '19 july 2008'", + "amb_query": "SELECT \"region\" FROM \"2-17540670-1\" WHERE format IN ('digital', 'digital release', 'digital media') AND \"date\" = '19 july 2008'" + }, + { + "db_id": "2-16198456-2", + "question": "who is the home team when attendance is basingstoke town won 5–4 on penalties and the away team is exeter city?", + "evidence": "", + "schema_text_wo_content": "Table 2-16198456-2, columns = [Tie no, Home team, Score, Away team, Attendance]\n", + "schema_text_with_content": "Table 2-16198456-2, columns = [`Tie no` (Example values: [1, 2, 3]), `Home team` (Example values: [blackpool, chester city, chesterfield]), `Score` (Example values: [4–3, 2–1, 1–0]), `Away team` (Example values: [blyth spartans, winsford united, northwich victoria]), `Attendance` (Example values: [15 november 1997, 26 november 1997, darlington won 4–2 on penalties])]\n", + "ori_query": "select `home team` from `2-16198456-2` where `attendance` = 'basingstoke town won 5–4 on penalties' and `away team` = 'exeter city'", + "amb_query": "SELECT \"home team\" FROM \"2-16198456-2\" WHERE attendance IN ('basingstoke town 5–4 on penalty shootout', 'basingstoke town won 5–4 on penalties') AND \"away team\" = 'exeter city'" + }, + { + "db_id": "2-16198456-2", + "question": "who is the home team when attendance is 25 november 1997 and the away team is exeter city?", + "evidence": "", + "schema_text_wo_content": "Table 2-16198456-2, columns = [Tie no, Home team, Score, Away team, Attendance]\n", + "schema_text_with_content": "Table 2-16198456-2, columns = [`Tie no` (Example values: [1, 2, 3]), `Home team` (Example values: [blackpool, chester city, chesterfield]), `Score` (Example values: [4–3, 2–1, 1–0]), `Away team` (Example values: [blyth spartans, winsford united, northwich victoria]), `Attendance` (Example values: [15 november 1997, 26 november 1997, darlington won 4–2 on penalties])]\n", + "ori_query": "select `home team` from `2-16198456-2` where `attendance` = '25 november 1997' and `away team` = 'exeter city'", + "amb_query": "SELECT \"home team\" FROM \"2-16198456-2\" WHERE attendance IN ('25 november 1997', '25th november 1997', '1997-11-25', '25/11/1997') AND \"away team\" = 'exeter city'" + }, + { + "db_id": "2-16660922-1", + "question": "What was the Attendance when the Result was t 31–31?", + "evidence": "", + "schema_text_wo_content": "Table 2-16660922-1, columns = [Week, Date, Opponent, Result, Attendance]\n", + "schema_text_with_content": "Table 2-16660922-1, columns = [`Week` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [september 25, 1960, october 2, 1960, october 9, 1960]), `Opponent` (Example values: [at san francisco 49ers, at st. louis cardinals, at pittsburgh steelers]), `Result` (Example values: [w 21–19, w 35–14, w 19–17]), `Attendance` (Example values: [44,598, 26,089, 40,323])]\n", + "ori_query": "select `attendance` from `2-16660922-1` where `result` = 't 31–31'", + "amb_query": "SELECT \"attendance\" FROM \"2-16660922-1\" WHERE result IN ('t 31–31', 'tied game 31-31')" + }, + { + "db_id": "2-16660922-1", + "question": "What was the Attendance when the Result was w 17–3?", + "evidence": "", + "schema_text_wo_content": "Table 2-16660922-1, columns = [Week, Date, Opponent, Result, Attendance]\n", + "schema_text_with_content": "Table 2-16660922-1, columns = [`Week` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [september 25, 1960, october 2, 1960, october 9, 1960]), `Opponent` (Example values: [at san francisco 49ers, at st. louis cardinals, at pittsburgh steelers]), `Result` (Example values: [w 21–19, w 35–14, w 19–17]), `Attendance` (Example values: [44,598, 26,089, 40,323])]\n", + "ori_query": "select `attendance` from `2-16660922-1` where `result` = 'w 17–3'", + "amb_query": "SELECT \"attendance\" FROM \"2-16660922-1\" WHERE result IN ('w 17–3', 'win 17 to 3')" + }, + { + "db_id": "2-16660922-1", + "question": "What was the Attendance when the Result was L 31–23?", + "evidence": "", + "schema_text_wo_content": "Table 2-16660922-1, columns = [Week, Date, Opponent, Result, Attendance]\n", + "schema_text_with_content": "Table 2-16660922-1, columns = [`Week` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [september 25, 1960, october 2, 1960, october 9, 1960]), `Opponent` (Example values: [at san francisco 49ers, at st. louis cardinals, at pittsburgh steelers]), `Result` (Example values: [w 21–19, w 35–14, w 19–17]), `Attendance` (Example values: [44,598, 26,089, 40,323])]\n", + "ori_query": "select `attendance` from `2-16660922-1` where `result` = 'l 31–23'", + "amb_query": "SELECT \"attendance\" FROM \"2-16660922-1\" WHERE result IN ('l 31 vs 23', 'l 31–23')" + }, + { + "db_id": "2-17206737-3", + "question": "What record has detroit, mi as the location, with boston bruins as the visitor?", + "evidence": "", + "schema_text_wo_content": "Table 2-17206737-3, columns = [Date, Visitor, Score, Home, Location, In goal, Record]\n", + "schema_text_with_content": "Table 2-17206737-3, columns = [`Date` (Example values: [september 22, september 23, september 24]), `Visitor` (Example values: [montreal canadiens, buffalo sabres, ottawa senators]), `Score` (Example values: [3–8, 2–3, 3–2 so]), `Home` (Example values: [boston bruins, montreal canadiens, detroit red wings]), `Location` (Example values: [halifax , ns, roberval, quebec, detroit, michigan, united states]), `In goal` (Example values: [halak , denis, denis, price , desjardins]), `Record` (Example values: [0–1–0, 1–1–0, 2–1–0])]\n", + "ori_query": "select `record` from `2-17206737-3` where `location` = 'detroit, mi' and `visitor` = 'boston bruins'", + "amb_query": "SELECT \"record\" FROM \"2-17206737-3\" WHERE location IN ('detroit, mi', 'detroit, michigan, united states') AND \"visitor\" = 'boston bruins'" + }, + { + "db_id": "2-17206737-3", + "question": "What record has montreal, qc as the location, with boston bruins as the visitor?", + "evidence": "", + "schema_text_wo_content": "Table 2-17206737-3, columns = [Date, Visitor, Score, Home, Location, In goal, Record]\n", + "schema_text_with_content": "Table 2-17206737-3, columns = [`Date` (Example values: [september 22, september 23, september 24]), `Visitor` (Example values: [montreal canadiens, buffalo sabres, ottawa senators]), `Score` (Example values: [3–8, 2–3, 3–2 so]), `Home` (Example values: [boston bruins, montreal canadiens, detroit red wings]), `Location` (Example values: [halifax , ns, roberval, quebec, detroit, michigan, united states]), `In goal` (Example values: [halak , denis, denis, price , desjardins]), `Record` (Example values: [0–1–0, 1–1–0, 2–1–0])]\n", + "ori_query": "select `record` from `2-17206737-3` where `location` = 'montreal, qc' and `visitor` = 'boston bruins'", + "amb_query": "SELECT \"record\" FROM \"2-17206737-3\" WHERE location IN ('city of montreal, qc', 'montreal, qc', 'montreal, quebec') AND \"visitor\" = 'boston bruins'" + }, + { + "db_id": "2-16275828-7", + "question": "What is the length of the track located in byron, illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-16275828-7, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 2-16275828-7, columns = [`Track Name` (Example values: [belleville enduro team, motosports park, lincoln trail motosports]), `Location` (Example values: [belleville, illinois, byron, illinois, usa, casey, illinois]), `Length` (Example values: [multiple tracks]), `Sanction` (Example values: [ama]), `Program` (Example values: [various programs throughout the year])]\n", + "ori_query": "select `length` from `2-16275828-7` where `location` = 'byron, illinois'", + "amb_query": "SELECT \"length\" FROM \"2-16275828-7\" WHERE location IN ('byron, illinois, usa', 'byron, illinois')" + }, + { + "db_id": "2-16275828-7", + "question": "What is the length of the track located in Taylorville, Illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-16275828-7, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 2-16275828-7, columns = [`Track Name` (Example values: [belleville enduro team, motosports park, lincoln trail motosports]), `Location` (Example values: [belleville, illinois, byron, illinois, usa, casey, illinois]), `Length` (Example values: [multiple tracks]), `Sanction` (Example values: [ama]), `Program` (Example values: [various programs throughout the year])]\n", + "ori_query": "select `length` from `2-16275828-7` where `location` = 'taylorville, illinois'", + "amb_query": "SELECT \"length\" FROM \"2-16275828-7\" WHERE location IN ('taylorville, illinois, usa', 'taylorville, illinois')" + }, + { + "db_id": "2-16275828-7", + "question": "What was the sanction of the event at Nashville, Illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-16275828-7, columns = [Track Name, Location, Length, Sanction, Program]\n", + "schema_text_with_content": "Table 2-16275828-7, columns = [`Track Name` (Example values: [belleville enduro team, motosports park, lincoln trail motosports]), `Location` (Example values: [belleville, illinois, byron, illinois, usa, casey, illinois]), `Length` (Example values: [multiple tracks]), `Sanction` (Example values: [ama]), `Program` (Example values: [various programs throughout the year])]\n", + "ori_query": "select `sanction` from `2-16275828-7` where `location` = 'nashville, illinois'", + "amb_query": "SELECT \"sanction\" FROM \"2-16275828-7\" WHERE location IN ('nashville, illinois state', 'nashville, illinois')" + }, + { + "db_id": "2-16394033-1", + "question": "What was the school type for jakarta, indonesia?", + "evidence": "", + "schema_text_wo_content": "Table 2-16394033-1, columns = [Grade, Dates, School, Location, Type]\n", + "schema_text_with_content": "Table 2-16394033-1, columns = [`Grade` (Example values: [kindergarten, 1st-3rd grade, 4th grade]), `Dates` (Example values: [1966–1967, 1968–1970, 1970–1971]), `School` (Example values: [noelani elementary school, st. francis assisi, state elementary school menteng 01]), `Location` (Example values: [hawaii, jakarta, the capital of indonesia, jakarta, indonesia]), `Type` (Example values: [public, private catholic, private])]\n", + "ori_query": "select `type` from `2-16394033-1` where `location` = 'jakarta, indonesia'", + "amb_query": "SELECT \"type\" FROM \"2-16394033-1\" WHERE location IN ('jakarta, indonesia', 'jakarta, the capital of indonesia')" + }, + { + "db_id": "2-16394033-1", + "question": "What was the school type for Los Angeles, California?", + "evidence": "", + "schema_text_wo_content": "Table 2-16394033-1, columns = [Grade, Dates, School, Location, Type]\n", + "schema_text_with_content": "Table 2-16394033-1, columns = [`Grade` (Example values: [kindergarten, 1st-3rd grade, 4th grade]), `Dates` (Example values: [1966–1967, 1968–1970, 1970–1971]), `School` (Example values: [noelani elementary school, st. francis assisi, state elementary school menteng 01]), `Location` (Example values: [hawaii, jakarta, the capital of indonesia, jakarta, indonesia]), `Type` (Example values: [public, private catholic, private])]\n", + "ori_query": "select `type` from `2-16394033-1` where `location` = 'los angeles, california'", + "amb_query": "SELECT \"type\" FROM \"2-16394033-1\" WHERE location IN ('los angeles metropolitan area', 'los angeles, california')" + }, + { + "db_id": "2-16394033-1", + "question": "What were the dates for Honolulu, Hawaii in Kindergarten?", + "evidence": "", + "schema_text_wo_content": "Table 2-16394033-1, columns = [Grade, Dates, School, Location, Type]\n", + "schema_text_with_content": "Table 2-16394033-1, columns = [`Grade` (Example values: [kindergarten, 1st-3rd grade, 4th grade]), `Dates` (Example values: [1966–1967, 1968–1970, 1970–1971]), `School` (Example values: [noelani elementary school, st. francis assisi, state elementary school menteng 01]), `Location` (Example values: [hawaii, jakarta, the capital of indonesia, jakarta, indonesia]), `Type` (Example values: [public, private catholic, private])]\n", + "ori_query": "select `dates` from `2-16394033-1` where `location` = 'honolulu, hawaii' and `grade` = 'kindergarten'", + "amb_query": "SELECT \"dates\" FROM \"2-16394033-1\" WHERE location IN ('honolulu, hawaii', 'hawaii') AND \"grade\" = 'kindergarten'" + }, + { + "db_id": "2-16271198-1", + "question": "What was the order of succession for the department of state?", + "evidence": "", + "schema_text_wo_content": "Table 2-16271198-1, columns = [Department, Creation, Order of succession, 2007 Budget in billions of dollars, Employees (2007)]\n", + "schema_text_with_content": "Table 2-16271198-1, columns = [`Department` (Example values: [u.s. state department, treasury, defense]), `Creation` (Example values: [1789, 1947, 1870]), `Order of succession` (Example values: [1, 2, 3]), `2007 Budget in billions of dollars` (Example values: [9.96, 11.1, 439.3]), `Employees (2007)` (Example values: [30,266, 115,897, 3,000,000])]\n", + "ori_query": "select `order of succession` from `2-16271198-1` where `department` = 'state'", + "amb_query": "SELECT \"order of succession\" FROM \"2-16271198-1\" WHERE department IN ('state', 'u.s. state department')" + }, + { + "db_id": "2-16271198-1", + "question": "What was the order of succession for the department of agriculture?", + "evidence": "", + "schema_text_wo_content": "Table 2-16271198-1, columns = [Department, Creation, Order of succession, 2007 Budget in billions of dollars, Employees (2007)]\n", + "schema_text_with_content": "Table 2-16271198-1, columns = [`Department` (Example values: [u.s. state department, treasury, defense]), `Creation` (Example values: [1789, 1947, 1870]), `Order of succession` (Example values: [1, 2, 3]), `2007 Budget in billions of dollars` (Example values: [9.96, 11.1, 439.3]), `Employees (2007)` (Example values: [30,266, 115,897, 3,000,000])]\n", + "ori_query": "select `order of succession` from `2-16271198-1` where `department` = 'agriculture'", + "amb_query": "SELECT \"order of succession\" FROM \"2-16271198-1\" WHERE department IN ('agricultural department', 'agriculture')" + }, + { + "db_id": "2-16271198-1", + "question": "What was the order of succession for the department of education?", + "evidence": "", + "schema_text_wo_content": "Table 2-16271198-1, columns = [Department, Creation, Order of succession, 2007 Budget in billions of dollars, Employees (2007)]\n", + "schema_text_with_content": "Table 2-16271198-1, columns = [`Department` (Example values: [u.s. state department, treasury, defense]), `Creation` (Example values: [1789, 1947, 1870]), `Order of succession` (Example values: [1, 2, 3]), `2007 Budget in billions of dollars` (Example values: [9.96, 11.1, 439.3]), `Employees (2007)` (Example values: [30,266, 115,897, 3,000,000])]\n", + "ori_query": "select `order of succession` from `2-16271198-1` where `department` = 'education'", + "amb_query": "SELECT \"order of succession\" FROM \"2-16271198-1\" WHERE department IN ('education', 'department of education')" + }, + { + "db_id": "2-17396-1", + "question": "Which Year has a Returned On of may 3, 2010?", + "evidence": "", + "schema_text_wo_content": "Table 2-17396-1, columns = [Year, Ship, Departed From, Departed On, Returned On]\n", + "schema_text_with_content": "Table 2-17396-1, columns = [`Year` (Example values: [2010.0, 2011.0, 2012.0]), `Ship` (Example values: [carnival inspiration, carnival triumph, carnival destiny]), `Departed From` (Example values: [tampa, fl, new orleans, la, miami, fl]), `Departed On` (Example values: [april 29, 2010, april 7, 2011, april 26, 2012]), `Returned On` (Example values: [5/3/2010, april 11, 2011, april 30, 2012])]\n", + "ori_query": "select avg(`year`) from `2-17396-1` where `returned on` = 'may 3, 2010'", + "amb_query": "SELECT AVG(\"year\") FROM \"2-17396-1\" WHERE returned on IN ('5/3/2010', 'may 3, 2010')" + }, + { + "db_id": "2-17396-1", + "question": "Which Year has a Returned On of march 10, 2013?", + "evidence": "", + "schema_text_wo_content": "Table 2-17396-1, columns = [Year, Ship, Departed From, Departed On, Returned On]\n", + "schema_text_with_content": "Table 2-17396-1, columns = [`Year` (Example values: [2010.0, 2011.0, 2012.0]), `Ship` (Example values: [carnival inspiration, carnival triumph, carnival destiny]), `Departed From` (Example values: [tampa, fl, new orleans, la, miami, fl]), `Departed On` (Example values: [april 29, 2010, april 7, 2011, april 26, 2012]), `Returned On` (Example values: [5/3/2010, april 11, 2011, april 30, 2012])]\n", + "ori_query": "select avg(`year`) from `2-17396-1` where `returned on` = 'march 10, 2013'", + "amb_query": "SELECT AVG(\"year\") FROM \"2-17396-1\" WHERE returned on IN ('march 10th, 2013', 'march 10, 2013')" + }, + { + "db_id": "2-17304621-5", + "question": "What is the upstream with a 80 gb monthly cap?", + "evidence": "", + "schema_text_wo_content": "Table 2-17304621-5, columns = [Plan, Downstream, Upstream, Up:Down Ratio, Monthly Cap, Price]\n", + "schema_text_with_content": "Table 2-17304621-5, columns = [`Plan` (Example values: [internet popular, 1 mega, 10 mega]), `Downstream` (Example values: [512 kb/s, 1 mbit/s, 10 mbit/s]), `Upstream` (Example values: [256 kbit/s, 500 kbit/s, 1 mbit/s]), `Up:Down Ratio` (Example values: [0.5, 0.3, 0.08]), `Monthly Cap` (Example values: [10 gb, 20 gb, 80 gb monthly cap]), `Price` (Example values: [r$ 29,80, r$ 39,90, r$ 59,90])]\n", + "ori_query": "select `upstream` from `2-17304621-5` where `monthly cap` = '80 gb'", + "amb_query": "SELECT \"upstream\" FROM \"2-17304621-5\" WHERE monthly cap IN ('80 gb monthly cap', '80 gb')" + }, + { + "db_id": "2-17304621-5", + "question": "What is the upstream with an up:down ratio of 0.03 and a 100 gb monthly cap?", + "evidence": "", + "schema_text_wo_content": "Table 2-17304621-5, columns = [Plan, Downstream, Upstream, Up:Down Ratio, Monthly Cap, Price]\n", + "schema_text_with_content": "Table 2-17304621-5, columns = [`Plan` (Example values: [internet popular, 1 mega, 10 mega]), `Downstream` (Example values: [512 kb/s, 1 mbit/s, 10 mbit/s]), `Upstream` (Example values: [256 kbit/s, 500 kbit/s, 1 mbit/s]), `Up:Down Ratio` (Example values: [0.5, 0.3, 0.08]), `Monthly Cap` (Example values: [10 gb, 20 gb, 80 gb monthly cap]), `Price` (Example values: [r$ 29,80, r$ 39,90, r$ 59,90])]\n", + "ori_query": "select `upstream` from `2-17304621-5` where `up:down ratio` = 0.03 and `monthly cap` = '100 gb'", + "amb_query": "SELECT \"upstream\" FROM \"2-17304621-5\" WHERE \"up:down ratio\" = 0.03 AND monthly cap IN ('monthly cap of 100 gb', '100 gb')" + }, + { + "db_id": "2-17304621-5", + "question": "What is the upstream with a 150 gb monthly cap?", + "evidence": "", + "schema_text_wo_content": "Table 2-17304621-5, columns = [Plan, Downstream, Upstream, Up:Down Ratio, Monthly Cap, Price]\n", + "schema_text_with_content": "Table 2-17304621-5, columns = [`Plan` (Example values: [internet popular, 1 mega, 10 mega]), `Downstream` (Example values: [512 kb/s, 1 mbit/s, 10 mbit/s]), `Upstream` (Example values: [256 kbit/s, 500 kbit/s, 1 mbit/s]), `Up:Down Ratio` (Example values: [0.5, 0.3, 0.08]), `Monthly Cap` (Example values: [10 gb, 20 gb, 80 gb monthly cap]), `Price` (Example values: [r$ 29,80, r$ 39,90, r$ 59,90])]\n", + "ori_query": "select `upstream` from `2-17304621-5` where `monthly cap` = '150 gb'", + "amb_query": "SELECT \"upstream\" FROM \"2-17304621-5\" WHERE monthly cap IN ('150 gb', '150 gb monthly cap')" + }, + { + "db_id": "2-17304621-5", + "question": "What is the upstream with an up:down ratio of 0.03 and a 150 gb monthly cap?", + "evidence": "", + "schema_text_wo_content": "Table 2-17304621-5, columns = [Plan, Downstream, Upstream, Up:Down Ratio, Monthly Cap, Price]\n", + "schema_text_with_content": "Table 2-17304621-5, columns = [`Plan` (Example values: [internet popular, 1 mega, 10 mega]), `Downstream` (Example values: [512 kb/s, 1 mbit/s, 10 mbit/s]), `Upstream` (Example values: [256 kbit/s, 500 kbit/s, 1 mbit/s]), `Up:Down Ratio` (Example values: [0.5, 0.3, 0.08]), `Monthly Cap` (Example values: [10 gb, 20 gb, 80 gb monthly cap]), `Price` (Example values: [r$ 29,80, r$ 39,90, r$ 59,90])]\n", + "ori_query": "select `upstream` from `2-17304621-5` where `up:down ratio` = 0.03 and `monthly cap` = '150 gb'", + "amb_query": "SELECT \"upstream\" FROM \"2-17304621-5\" WHERE \"up:down ratio\" = 0.03 AND monthly cap IN ('150 gb', '150 gb monthly cap')" + }, + { + "db_id": "2-16642294-1", + "question": "What name was proposed on 10/15/1984 in rockingham county with a CERCLIS ID of nhd062004569?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `proposed` = '10/15/1984' and `county` = 'rockingham' and `cerclis id` = 'nhd062004569'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE proposed IN ('10/15/1984', '10-15-1984') AND \"county\" = 'rockingham' AND \"cerclis id\" = 'nhd062004569'" + }, + { + "db_id": "2-16642294-1", + "question": "What name was proposed on 05/11/2000 in hillsborough county?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `county` = 'hillsborough' and `proposed` = '05/11/2000'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE \"county\" = 'hillsborough' AND proposed IN ('05/11/2000', 'november 5, 2000')" + }, + { + "db_id": "2-16642294-1", + "question": "What name was proposed on 12/30/1982 in rockingham county with a CERCLIS ID of nhd062004569?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `proposed` = '12/30/1982' and `county` = 'rockingham' and `cerclis id` = 'nhd062004569'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE proposed IN ('12/30/1982', '1982-12-30', 'december 30, 1982', '12.30.1982') AND \"county\" = 'rockingham' AND \"cerclis id\" = 'nhd062004569'" + }, + { + "db_id": "2-16642294-1", + "question": "What name was proposed on 09/08/1983 in hillsborough county?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `county` = 'hillsborough' and `proposed` = '09/08/1983'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE \"county\" = 'hillsborough' AND proposed IN ('september 8, 1983', '09/08/1983')" + }, + { + "db_id": "2-16642294-1", + "question": "What name completed construction on 09/12/2006?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `construction completed` = '09/12/2006'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE construction completed IN ('09/12/2006', 'september 12, 2006')" + }, + { + "db_id": "2-16642294-1", + "question": "What name completed construction on 09/30/1993?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `construction completed` = '09/30/1993'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE construction completed IN ('30/09/1993', '09/30/1993')" + }, + { + "db_id": "2-16642294-1", + "question": "What name completed construction on 09/19/2008?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `name` from `2-16642294-1` where `construction completed` = '09/19/2008'", + "amb_query": "SELECT \"name\" FROM \"2-16642294-1\" WHERE construction completed IN ('september 19, 2008', '09/19/2008')" + }, + { + "db_id": "2-16642294-1", + "question": "When was the site listed 12/23/1996 in rockingham county proposed?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `proposed` from `2-16642294-1` where `listed` = '12/23/1996' and `county` = 'rockingham'", + "amb_query": "SELECT \"proposed\" FROM \"2-16642294-1\" WHERE listed IN ('1996-12-23', '12/23/1996') AND \"county\" = 'rockingham'" + }, + { + "db_id": "2-16642294-1", + "question": "What CERCLIS ID was listed 09/08/1983?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `cerclis id` from `2-16642294-1` where `listed` = '09/08/1983'", + "amb_query": "SELECT \"cerclis id\" FROM \"2-16642294-1\" WHERE listed IN ('09-08-1983', 'september 8, 1983', '09/08/1983')" + }, + { + "db_id": "2-16642294-1", + "question": "When was the site listed 03/31/1989 in rockingham county proposed?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `proposed` from `2-16642294-1` where `listed` = '03/31/1989' and `county` = 'rockingham'", + "amb_query": "SELECT \"proposed\" FROM \"2-16642294-1\" WHERE listed IN ('march 31st, 1989', '03/31/1989', 'march 31, 1989') AND \"county\" = 'rockingham'" + }, + { + "db_id": "2-16642294-1", + "question": "What CERCLIS ID was listed 10/14/1992?", + "evidence": "", + "schema_text_wo_content": "Table 2-16642294-1, columns = [CERCLIS ID, Name, County, Proposed, Listed, Construction completed, Partially deleted]\n", + "schema_text_with_content": "Table 2-16642294-1, columns = [`CERCLIS ID` (Example values: [nhd980520217, nhn000103313, nhd001079649]), `Name` (Example values: [troy mills landfill, chlor-alkali facility (former), fletcher's paint works & storage]), `County` (Example values: [cheshire, coos, hillsborough]), `Proposed` (Example values: [04/30/2003, 04/27/2005, 06/24/1988]), `Listed` (Example values: [09/29/2003, 09/14/2005, march 31, 1989]), `Construction completed` (Example values: [09/30/2005, –, 09/28/2006]), `Partially deleted` (Example values: [–])]\n", + "ori_query": "select `cerclis id` from `2-16642294-1` where `listed` = '10/14/1992'", + "amb_query": "SELECT \"cerclis id\" FROM \"2-16642294-1\" WHERE listed IN ('10/14/1992', '10-14-1992')" + }, + { + "db_id": "2-167235-6", + "question": "Which Name has a Term end of prime ministers 1943 - 1944?", + "evidence": "", + "schema_text_wo_content": "Table 2-167235-6, columns = [Name, Born-Died, Term start, Term end, Political Party]\n", + "schema_text_with_content": "Table 2-167235-6, columns = [`Name` (Example values: [prime ministers 1943 - 1944, mehdi bej frashëri (2nd time), rexhep bej mitrovica]), `Born-Died` (Example values: [prime ministers 1943 - 1944, 1872–1963, 1888–1967]), `Term start` (Example values: [prime ministers 1943 - 1944, october 24, 1943, 4th of november, 1943]), `Term end` (Example values: [prime ministers term end 1943 - 1944, 3 november 1943, 18th of july, 1944]), `Political Party` (Example values: [prime ministers 1943 - 1944, balli kombëtar])]\n", + "ori_query": "select `name` from `2-167235-6` where `term end` = 'prime ministers 1943 - 1944'", + "amb_query": "SELECT \"name\" FROM \"2-167235-6\" WHERE term end IN ('prime ministers 1943 - 1944', 'prime ministers term end 1943 - 1944')" + }, + { + "db_id": "2-167235-6", + "question": "Which Name has a Term end of 18 july 1944?", + "evidence": "", + "schema_text_wo_content": "Table 2-167235-6, columns = [Name, Born-Died, Term start, Term end, Political Party]\n", + "schema_text_with_content": "Table 2-167235-6, columns = [`Name` (Example values: [prime ministers 1943 - 1944, mehdi bej frashëri (2nd time), rexhep bej mitrovica]), `Born-Died` (Example values: [prime ministers 1943 - 1944, 1872–1963, 1888–1967]), `Term start` (Example values: [prime ministers 1943 - 1944, october 24, 1943, 4th of november, 1943]), `Term end` (Example values: [prime ministers term end 1943 - 1944, 3 november 1943, 18th of july, 1944]), `Political Party` (Example values: [prime ministers 1943 - 1944, balli kombëtar])]\n", + "ori_query": "select `name` from `2-167235-6` where `term end` = '18 july 1944'", + "amb_query": "SELECT \"name\" FROM \"2-167235-6\" WHERE term end IN ('18 july 1944', '18th of july, 1944')" + }, + { + "db_id": "2-167235-6", + "question": "Which Born-Died has a Term start of 24 october 1943?", + "evidence": "", + "schema_text_wo_content": "Table 2-167235-6, columns = [Name, Born-Died, Term start, Term end, Political Party]\n", + "schema_text_with_content": "Table 2-167235-6, columns = [`Name` (Example values: [prime ministers 1943 - 1944, mehdi bej frashëri (2nd time), rexhep bej mitrovica]), `Born-Died` (Example values: [prime ministers 1943 - 1944, 1872–1963, 1888–1967]), `Term start` (Example values: [prime ministers 1943 - 1944, october 24, 1943, 4th of november, 1943]), `Term end` (Example values: [prime ministers term end 1943 - 1944, 3 november 1943, 18th of july, 1944]), `Political Party` (Example values: [prime ministers 1943 - 1944, balli kombëtar])]\n", + "ori_query": "select `born-died` from `2-167235-6` where `term start` = '24 october 1943'", + "amb_query": "SELECT \"born-died\" FROM \"2-167235-6\" WHERE term start IN ('24 october 1943', 'october 24, 1943')" + }, + { + "db_id": "2-167235-6", + "question": "Which Born-Died has a Term start of 4 november 1943?", + "evidence": "", + "schema_text_wo_content": "Table 2-167235-6, columns = [Name, Born-Died, Term start, Term end, Political Party]\n", + "schema_text_with_content": "Table 2-167235-6, columns = [`Name` (Example values: [prime ministers 1943 - 1944, mehdi bej frashëri (2nd time), rexhep bej mitrovica]), `Born-Died` (Example values: [prime ministers 1943 - 1944, 1872–1963, 1888–1967]), `Term start` (Example values: [prime ministers 1943 - 1944, october 24, 1943, 4th of november, 1943]), `Term end` (Example values: [prime ministers term end 1943 - 1944, 3 november 1943, 18th of july, 1944]), `Political Party` (Example values: [prime ministers 1943 - 1944, balli kombëtar])]\n", + "ori_query": "select `born-died` from `2-167235-6` where `term start` = '4 november 1943'", + "amb_query": "SELECT \"born-died\" FROM \"2-167235-6\" WHERE term start IN ('4th of november, 1943', '4 november 1943')" + }, + { + "db_id": "2-17419587-1", + "question": "What is the maximum rank that has greater than 662 1995-96, and cairns , queensland as a location?", + "evidence": "", + "schema_text_wo_content": "Table 2-17419587-1, columns = [Rank, Airport, Location, IATA, 1985–86, 1990–91, 1995–96, 2000–01, 2005–06, 2007–08, 2009–10, 2010-11]\n", + "schema_text_with_content": "Table 2-17419587-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Airport` (Example values: [sydney airport, melbourne airport, brisbane airport]), `Location` (Example values: [sydney , new south wales, melbourne, victoria, australia, brisbane , queensland]), `IATA` (Example values: [syd, mel, bne]), `1985–86` (Example values: [9,497, 6,476, 3,457]), `1990–91` (Example values: [12,361, 8,346, 5,246]), `1995–96` (Example values: [19,878, 12,972, 9,236]), `2000–01` (Example values: [25,814, 16,881, 12,467]), `2005–06` (Example values: [28,996, 21,041, 16,016]), `2007–08` (Example values: [32,701, 23,943, 18,298]), `2009–10` (Example values: [34,458, 25,918, 18,889]), `2010-11` (Example values: [36,624, 27,607, 20,278])]\n", + "ori_query": "select max(`rank`) from `2-17419587-1` where `1995–96` > 662 and `location` = 'cairns , queensland'", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-17419587-1\" WHERE \"1995–96\" > 662 AND location IN ('cairns , queensland', 'cairns, australia')" + }, + { + "db_id": "2-17419587-1", + "question": "What is the maximum rank that has greater than 662 1995-96, and melbourne , victoria as a location?", + "evidence": "", + "schema_text_wo_content": "Table 2-17419587-1, columns = [Rank, Airport, Location, IATA, 1985–86, 1990–91, 1995–96, 2000–01, 2005–06, 2007–08, 2009–10, 2010-11]\n", + "schema_text_with_content": "Table 2-17419587-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Airport` (Example values: [sydney airport, melbourne airport, brisbane airport]), `Location` (Example values: [sydney , new south wales, melbourne, victoria, australia, brisbane , queensland]), `IATA` (Example values: [syd, mel, bne]), `1985–86` (Example values: [9,497, 6,476, 3,457]), `1990–91` (Example values: [12,361, 8,346, 5,246]), `1995–96` (Example values: [19,878, 12,972, 9,236]), `2000–01` (Example values: [25,814, 16,881, 12,467]), `2005–06` (Example values: [28,996, 21,041, 16,016]), `2007–08` (Example values: [32,701, 23,943, 18,298]), `2009–10` (Example values: [34,458, 25,918, 18,889]), `2010-11` (Example values: [36,624, 27,607, 20,278])]\n", + "ori_query": "select max(`rank`) from `2-17419587-1` where `1995–96` > 662 and `location` = 'melbourne , victoria'", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-17419587-1\" WHERE \"1995–96\" > 662 AND location IN ('melbourne, victoria, australia', 'melbourne , victoria')" + }, + { + "db_id": "2-17419587-1", + "question": "What is the maximum rank that has greater than 662 1995-96, and Adelaide, South Australia as a location?", + "evidence": "", + "schema_text_wo_content": "Table 2-17419587-1, columns = [Rank, Airport, Location, IATA, 1985–86, 1990–91, 1995–96, 2000–01, 2005–06, 2007–08, 2009–10, 2010-11]\n", + "schema_text_with_content": "Table 2-17419587-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Airport` (Example values: [sydney airport, melbourne airport, brisbane airport]), `Location` (Example values: [sydney , new south wales, melbourne, victoria, australia, brisbane , queensland]), `IATA` (Example values: [syd, mel, bne]), `1985–86` (Example values: [9,497, 6,476, 3,457]), `1990–91` (Example values: [12,361, 8,346, 5,246]), `1995–96` (Example values: [19,878, 12,972, 9,236]), `2000–01` (Example values: [25,814, 16,881, 12,467]), `2005–06` (Example values: [28,996, 21,041, 16,016]), `2007–08` (Example values: [32,701, 23,943, 18,298]), `2009–10` (Example values: [34,458, 25,918, 18,889]), `2010-11` (Example values: [36,624, 27,607, 20,278])]\n", + "ori_query": "select max(`rank`) from `2-17419587-1` where `1995–96` > 662 and `location` = 'adelaide, south australia'", + "amb_query": "SELECT MAX(\"rank\") FROM \"2-17419587-1\" WHERE \"1995–96\" > 662 AND \"location\" = 'adelaide, south australia'" + }, + { + "db_id": "2-163252-2", + "question": "When was the finale played when the show premiered on september 9, 1997?", + "evidence": "", + "schema_text_wo_content": "Table 2-163252-2, columns = [Season, Premiere, Finale, Episodes, Timeslot, Rank, Viewers (in households)]\n", + "schema_text_with_content": "Table 2-163252-2, columns = [`Season` (Example values: [season 1, season 2, season 3]), `Premiere` (Example values: [september 21, 1993, october 11, 1994, 24th october 1995]), `Finale` (Example values: [may 17, 1994, may 23rd, 1995, may 21, 1996]), `Episodes` (Example values: [22.0, 20.0]), `Timeslot` (Example values: [tuesday 10:00 pm, tuesday 9:00 pm]), `Rank` (Example values: [#18, #7, #10]), `Viewers (in households)` (Example values: [13.0, 15.7, 13.5])]\n", + "ori_query": "select `finale` from `2-163252-2` where `premiere` = 'september 9, 1997'", + "amb_query": "SELECT \"finale\" FROM \"2-163252-2\" WHERE premiere IN ('september 9, 1997', '1997-09-09')" + }, + { + "db_id": "2-163252-2", + "question": "When was the finale played when the show premiered on october 24, 1995?", + "evidence": "", + "schema_text_wo_content": "Table 2-163252-2, columns = [Season, Premiere, Finale, Episodes, Timeslot, Rank, Viewers (in households)]\n", + "schema_text_with_content": "Table 2-163252-2, columns = [`Season` (Example values: [season 1, season 2, season 3]), `Premiere` (Example values: [september 21, 1993, october 11, 1994, 24th october 1995]), `Finale` (Example values: [may 17, 1994, may 23rd, 1995, may 21, 1996]), `Episodes` (Example values: [22.0, 20.0]), `Timeslot` (Example values: [tuesday 10:00 pm, tuesday 9:00 pm]), `Rank` (Example values: [#18, #7, #10]), `Viewers (in households)` (Example values: [13.0, 15.7, 13.5])]\n", + "ori_query": "select `finale` from `2-163252-2` where `premiere` = 'october 24, 1995'", + "amb_query": "SELECT \"finale\" FROM \"2-163252-2\" WHERE premiere IN ('october 24, 1995', '24th october 1995')" + }, + { + "db_id": "2-163252-2", + "question": "When was the finale played when the show premiered on September 24, 2002?", + "evidence": "", + "schema_text_wo_content": "Table 2-163252-2, columns = [Season, Premiere, Finale, Episodes, Timeslot, Rank, Viewers (in households)]\n", + "schema_text_with_content": "Table 2-163252-2, columns = [`Season` (Example values: [season 1, season 2, season 3]), `Premiere` (Example values: [september 21, 1993, october 11, 1994, 24th october 1995]), `Finale` (Example values: [may 17, 1994, may 23rd, 1995, may 21, 1996]), `Episodes` (Example values: [22.0, 20.0]), `Timeslot` (Example values: [tuesday 10:00 pm, tuesday 9:00 pm]), `Rank` (Example values: [#18, #7, #10]), `Viewers (in households)` (Example values: [13.0, 15.7, 13.5])]\n", + "ori_query": "select `finale` from `2-163252-2` where `premiere` = 'september 24, 2002'", + "amb_query": "SELECT \"finale\" FROM \"2-163252-2\" WHERE premiere IN ('september 24, 2002', '09/24/2002')" + }, + { + "db_id": "2-163252-2", + "question": "What is the minimum number of views that watched the show when there was more than 22 episodes and the finale was on may 21, 2002?", + "evidence": "", + "schema_text_wo_content": "Table 2-163252-2, columns = [Season, Premiere, Finale, Episodes, Timeslot, Rank, Viewers (in households)]\n", + "schema_text_with_content": "Table 2-163252-2, columns = [`Season` (Example values: [season 1, season 2, season 3]), `Premiere` (Example values: [september 21, 1993, october 11, 1994, 24th october 1995]), `Finale` (Example values: [may 17, 1994, may 23rd, 1995, may 21, 1996]), `Episodes` (Example values: [22.0, 20.0]), `Timeslot` (Example values: [tuesday 10:00 pm, tuesday 9:00 pm]), `Rank` (Example values: [#18, #7, #10]), `Viewers (in households)` (Example values: [13.0, 15.7, 13.5])]\n", + "ori_query": "select min(`viewers (in households)`) from `2-163252-2` where `finale` = 'may 21, 2002' and `episodes` > 22", + "amb_query": "SELECT MIN(\"viewers (in households)\") FROM \"2-163252-2\" WHERE finale IN ('05/21/2002', 'may 21, 2002') AND \"episodes\" > 22" + }, + { + "db_id": "2-163252-2", + "question": "What is the minimum number of views that watched the show when there was more than 22 episodes and the finale was on may 11, 2004?", + "evidence": "", + "schema_text_wo_content": "Table 2-163252-2, columns = [Season, Premiere, Finale, Episodes, Timeslot, Rank, Viewers (in households)]\n", + "schema_text_with_content": "Table 2-163252-2, columns = [`Season` (Example values: [season 1, season 2, season 3]), `Premiere` (Example values: [september 21, 1993, october 11, 1994, 24th october 1995]), `Finale` (Example values: [may 17, 1994, may 23rd, 1995, may 21, 1996]), `Episodes` (Example values: [22.0, 20.0]), `Timeslot` (Example values: [tuesday 10:00 pm, tuesday 9:00 pm]), `Rank` (Example values: [#18, #7, #10]), `Viewers (in households)` (Example values: [13.0, 15.7, 13.5])]\n", + "ori_query": "select min(`viewers (in households)`) from `2-163252-2` where `finale` = 'may 11, 2004' and `episodes` > 22", + "amb_query": "SELECT MIN(\"viewers (in households)\") FROM \"2-163252-2\" WHERE finale IN ('may 11, 2004', '2004-05-11') AND \"episodes\" > 22" + }, + { + "db_id": "2-163252-2", + "question": "What is the minimum number of views that watched the show when there was more than 22 episodes and the finale was on May 23, 1995?", + "evidence": "", + "schema_text_wo_content": "Table 2-163252-2, columns = [Season, Premiere, Finale, Episodes, Timeslot, Rank, Viewers (in households)]\n", + "schema_text_with_content": "Table 2-163252-2, columns = [`Season` (Example values: [season 1, season 2, season 3]), `Premiere` (Example values: [september 21, 1993, october 11, 1994, 24th october 1995]), `Finale` (Example values: [may 17, 1994, may 23rd, 1995, may 21, 1996]), `Episodes` (Example values: [22.0, 20.0]), `Timeslot` (Example values: [tuesday 10:00 pm, tuesday 9:00 pm]), `Rank` (Example values: [#18, #7, #10]), `Viewers (in households)` (Example values: [13.0, 15.7, 13.5])]\n", + "ori_query": "select min(`viewers (in households)`) from `2-163252-2` where `finale` = 'may 23, 1995' and `episodes` > 22", + "amb_query": "SELECT MIN(\"viewers (in households)\") FROM \"2-163252-2\" WHERE finale IN ('may 23rd, 1995', 'may 23, 1995') AND \"episodes\" > 22" + }, + { + "db_id": "2-16792161-2", + "question": "What is Name (Birth-Death), when Left Office is 23 february 1966?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792161-2, columns = [Name (Birth–death), Took office, Left office, Political party, Note(s)]\n", + "schema_text_with_content": "Table 2-16792161-2, columns = [`Name (Birth–death)` (Example values: [name (birth–death), maamun al-kuzbari (1914–1998), united arab republic (1958–1961)]), `Took office` (Example values: [took office, 25 february 1952, united arab republic (1958–1961)]), `Left office` (Example values: [left office, 28 february 1954, united arab republic]), `Political party` (Example values: [political party, arab liberation movement, united arab republic (1958–1961)]), `Note(s)` (Example values: [note(s), —, united arab republic (1958–1961)])]\n", + "ori_query": "select `name (birth–death)` from `2-16792161-2` where `left office` = '23 february 1966'", + "amb_query": "SELECT \"name (birth–death)\" FROM \"2-16792161-2\" WHERE left office IN ('23 february 1966', 'february 23rd, 1966')" + }, + { + "db_id": "2-16792161-2", + "question": "What is Name (Birth-Death), when Left Office is united arab republic (1958–1961)?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792161-2, columns = [Name (Birth–death), Took office, Left office, Political party, Note(s)]\n", + "schema_text_with_content": "Table 2-16792161-2, columns = [`Name (Birth–death)` (Example values: [name (birth–death), maamun al-kuzbari (1914–1998), united arab republic (1958–1961)]), `Took office` (Example values: [took office, 25 february 1952, united arab republic (1958–1961)]), `Left office` (Example values: [left office, 28 february 1954, united arab republic]), `Political party` (Example values: [political party, arab liberation movement, united arab republic (1958–1961)]), `Note(s)` (Example values: [note(s), —, united arab republic (1958–1961)])]\n", + "ori_query": "select `name (birth–death)` from `2-16792161-2` where `left office` = 'united arab republic (1958–1961)'", + "amb_query": "SELECT \"name (birth–death)\" FROM \"2-16792161-2\" WHERE left office IN ('united arab republic (1958–1961)', 'united arab republic')" + }, + { + "db_id": "2-16792161-2", + "question": "What is Name (Birth-Death), when Left Office is 7 October 1958?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792161-2, columns = [Name (Birth–death), Took office, Left office, Political party, Note(s)]\n", + "schema_text_with_content": "Table 2-16792161-2, columns = [`Name (Birth–death)` (Example values: [name (birth–death), maamun al-kuzbari (1914–1998), united arab republic (1958–1961)]), `Took office` (Example values: [took office, 25 february 1952, united arab republic (1958–1961)]), `Left office` (Example values: [left office, 28 february 1954, united arab republic]), `Political party` (Example values: [political party, arab liberation movement, united arab republic (1958–1961)]), `Note(s)` (Example values: [note(s), —, united arab republic (1958–1961)])]\n", + "ori_query": "select `name (birth–death)` from `2-16792161-2` where `left office` = '7 october 1958'", + "amb_query": "SELECT \"name (birth–death)\" FROM \"2-16792161-2\" WHERE left office IN ('7 october 1958', '07/10/1958')" + }, + { + "db_id": "2-16792161-2", + "question": "What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 9 march 1963?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792161-2, columns = [Name (Birth–death), Took office, Left office, Political party, Note(s)]\n", + "schema_text_with_content": "Table 2-16792161-2, columns = [`Name (Birth–death)` (Example values: [name (birth–death), maamun al-kuzbari (1914–1998), united arab republic (1958–1961)]), `Took office` (Example values: [took office, 25 february 1952, united arab republic (1958–1961)]), `Left office` (Example values: [left office, 28 february 1954, united arab republic]), `Political party` (Example values: [political party, arab liberation movement, united arab republic (1958–1961)]), `Note(s)` (Example values: [note(s), —, united arab republic (1958–1961)])]\n", + "ori_query": "select `left office` from `2-16792161-2` where `political party` = \"ba'ath party ( syria region )\" and `took office` = '9 march 1963'", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('03/09/1963', '9 march 1963')" + }, + { + "db_id": "2-16792161-2", + "question": "What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 21 february 2006?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792161-2, columns = [Name (Birth–death), Took office, Left office, Political party, Note(s)]\n", + "schema_text_with_content": "Table 2-16792161-2, columns = [`Name (Birth–death)` (Example values: [name (birth–death), maamun al-kuzbari (1914–1998), united arab republic (1958–1961)]), `Took office` (Example values: [took office, 25 february 1952, united arab republic (1958–1961)]), `Left office` (Example values: [left office, 28 february 1954, united arab republic]), `Political party` (Example values: [political party, arab liberation movement, united arab republic (1958–1961)]), `Note(s)` (Example values: [note(s), —, united arab republic (1958–1961)])]\n", + "ori_query": "select `left office` from `2-16792161-2` where `political party` = \"ba'ath party ( syria region )\" and `took office` = '21 february 2006'", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('21st february 2006', '21 february 2006')" + }, + { + "db_id": "2-16792161-2", + "question": "What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 7 March 1958?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792161-2, columns = [Name (Birth–death), Took office, Left office, Political party, Note(s)]\n", + "schema_text_with_content": "Table 2-16792161-2, columns = [`Name (Birth–death)` (Example values: [name (birth–death), maamun al-kuzbari (1914–1998), united arab republic (1958–1961)]), `Took office` (Example values: [took office, 25 february 1952, united arab republic (1958–1961)]), `Left office` (Example values: [left office, 28 february 1954, united arab republic]), `Political party` (Example values: [political party, arab liberation movement, united arab republic (1958–1961)]), `Note(s)` (Example values: [note(s), —, united arab republic (1958–1961)])]\n", + "ori_query": "select `left office` from `2-16792161-2` where `political party` = \"ba'ath party ( syria region )\" and `took office` = '7 march 1958'", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is Lowest Rank, when Location is mexico city, mexico, and when Current Seating Capacity is less than 78,838?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select min(`rank`) from `2-16792781-1` where `location` = 'mexico city, mexico' and `current seating capacity` < 78,838", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is Lowest Rank, when Location is sydney , australia, and when Current Seating Capacity is less than 78,838?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select min(`rank`) from `2-16792781-1` where `location` = 'sydney , australia' and `current seating capacity` < 78,838", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is Lowest Rank, when Location is kyoto , japan, and when Current Seating Capacity is less than 78,838?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select min(`rank`) from `2-16792781-1` where `location` = 'kyoto , japan' and `current seating capacity` < 78,838", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is Lowest Rank, when Location is elmont , new york , united states, and when Current Seating Capacity is less than 78,838?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select min(`rank`) from `2-16792781-1` where `location` = 'elmont , new york , united states' and `current seating capacity` < 78,838", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is the highest Rank, when Location is johannesburg , south africa, and when Current Seating Capacity is less than 80,000?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select max(`rank`) from `2-16792781-1` where `location` = 'johannesburg , south africa' and `current seating capacity` < 80,000", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is the highest Rank, when Location is knoxville , tennessee, united states, and when Current Seating Capacity is less than 80,000?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select max(`rank`) from `2-16792781-1` where `location` = 'knoxville , tennessee, united states' and `current seating capacity` < 80,000", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is the highest Rank, when Location is state college , pennsylvania , united states, and when Current Seating Capacity is less than 80,000?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select max(`rank`) from `2-16792781-1` where `location` = 'state college , pennsylvania , united states' and `current seating capacity` < 80,000", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is the highest Rank, when Location is moscow , russia, and when Current Seating Capacity is less than 80,000?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select max(`rank`) from `2-16792781-1` where `location` = 'moscow , russia' and `current seating capacity` < 80,000", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is Lowest Rank, when Location is Rio De Janeiro, Brazil, and when Current Seating Capacity is less than 78,838?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select min(`rank`) from `2-16792781-1` where `location` = 'rio de janeiro, brazil' and `current seating capacity` < 78,838", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-16792781-1", + "question": "What is the highest Rank, when Location is Kinshasa, DR Congo, and when Current Seating Capacity is less than 80,000?", + "evidence": "", + "schema_text_wo_content": "Table 2-16792781-1, columns = [Rank, Venue name, Highest attendance, Location, Current seating capacity]\n", + "schema_text_with_content": "Table 2-16792781-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Venue name` (Example values: [indianapolis motor speedway, circuit de la sarthe, tokyo racecourse]), `Highest attendance` (Example values: [400,000, 235,000, 223,000]), `Location` (Example values: [speedway , indiana , united states, le mans , france, tokyo , japan]), `Current seating capacity` (Example values: [257,325, 100,000, 13,750])]\n", + "ori_query": "select max(`rank`) from `2-16792781-1` where `location` = 'kinshasa, dr congo' and `current seating capacity` < 80,000", + "amb_query": "SELECT \"left office\" FROM \"2-16792161-2\" WHERE \"political party\" = 'ba''ath party ( syria region )' AND took office IN ('march 7th, 1958', '7 march 1958')" + }, + { + "db_id": "2-11365528-2", + "question": "Who is the head coach of the team located in clear island waters?", + "evidence": "", + "schema_text_wo_content": "Table 2-11365528-2, columns = [Team, Head Coach, President, Home Ground, Location]\n", + "schema_text_with_content": "Table 2-11365528-2, columns = [`Team` (Example values: [burleigh heads bulldogs soccer club, merrimac fc, gold coast knights]), `Head Coach` (Example values: [colin phelan, brett budwee, steve radoslavic]), `President` (Example values: [steve kazmer, tony di pietro, mario volarevic]), `Home Ground` (Example values: [pizzey park, miami, tony cecco field, clear island waters, croatian sports centre, carrara]), `Location` (Example values: [miami, clear island waters, australia, carrara])]\n", + "ori_query": "select `head coach` from `2-11365528-2` where `location` = 'clear island waters'", + "amb_query": "SELECT \"head coach\" FROM \"2-11365528-2\" WHERE location IN ('clear island waters, australia', 'clear island waters')" + }, + { + "db_id": "2-11365528-2", + "question": "Who is the head coach of the team located in Mudgeeraba?", + "evidence": "", + "schema_text_wo_content": "Table 2-11365528-2, columns = [Team, Head Coach, President, Home Ground, Location]\n", + "schema_text_with_content": "Table 2-11365528-2, columns = [`Team` (Example values: [burleigh heads bulldogs soccer club, merrimac fc, gold coast knights]), `Head Coach` (Example values: [colin phelan, brett budwee, steve radoslavic]), `President` (Example values: [steve kazmer, tony di pietro, mario volarevic]), `Home Ground` (Example values: [pizzey park, miami, tony cecco field, clear island waters, croatian sports centre, carrara]), `Location` (Example values: [miami, clear island waters, australia, carrara])]\n", + "ori_query": "select `head coach` from `2-11365528-2` where `location` = 'mudgeeraba'", + "amb_query": "SELECT \"head coach\" FROM \"2-11365528-2\" WHERE location IN ('mudgeeraba', 'mudgeeraba suburb')" + }, + { + "db_id": "2-10789374-1", + "question": "Which series has a season premiere on december 2, 2008 with the most episodes?", + "evidence": "", + "schema_text_wo_content": "Table 2-10789374-1, columns = [Season, Episodes, Originally aired, Season Premiere, Season Finale, DVD release date]\n", + "schema_text_with_content": "Table 2-10789374-1, columns = [`Season` (Example values: [1.0, 2.0, 3.0]), `Episodes` (Example values: [22.0, 28.0, 29.0]), `Originally aired` (Example values: [2001 – 2002, 2002 – 2003, 2003 – 2004]), `Season Premiere` (Example values: [3rd october 2001, 10/01/2002, september 23, 2003]), `Season Finale` (Example values: [may 15, 2002, may 20, 2003, may 25, 2004]), `DVD release date` (Example values: [october 21, 2008, may 4, 2010, may 3, 2011])]\n", + "ori_query": "select max(`episodes`) from `2-10789374-1` where `season premiere` = 'december 2, 2008'", + "amb_query": "SELECT MAX(\"episodes\") FROM \"2-10789374-1\" WHERE season premiere IN ('12/02/2008', 'december 2, 2008')" + }, + { + "db_id": "2-10789374-1", + "question": "What are the originally aired dates of the series premiering on october 1, 2002 with less than 5 seasons?", + "evidence": "", + "schema_text_wo_content": "Table 2-10789374-1, columns = [Season, Episodes, Originally aired, Season Premiere, Season Finale, DVD release date]\n", + "schema_text_with_content": "Table 2-10789374-1, columns = [`Season` (Example values: [1.0, 2.0, 3.0]), `Episodes` (Example values: [22.0, 28.0, 29.0]), `Originally aired` (Example values: [2001 – 2002, 2002 – 2003, 2003 – 2004]), `Season Premiere` (Example values: [3rd october 2001, 10/01/2002, september 23, 2003]), `Season Finale` (Example values: [may 15, 2002, may 20, 2003, may 25, 2004]), `DVD release date` (Example values: [october 21, 2008, may 4, 2010, may 3, 2011])]\n", + "ori_query": "select `originally aired` from `2-10789374-1` where `season` < 5 and `season premiere` = 'october 1, 2002'", + "amb_query": "SELECT \"originally aired\" FROM \"2-10789374-1\" WHERE \"season\" < 5 AND season premiere IN ('10/01/2002', 'october 1, 2002')" + }, + { + "db_id": "2-10789374-1", + "question": "Which series has a season premiere on January 3, 2007 with the most episodes?", + "evidence": "", + "schema_text_wo_content": "Table 2-10789374-1, columns = [Season, Episodes, Originally aired, Season Premiere, Season Finale, DVD release date]\n", + "schema_text_with_content": "Table 2-10789374-1, columns = [`Season` (Example values: [1.0, 2.0, 3.0]), `Episodes` (Example values: [22.0, 28.0, 29.0]), `Originally aired` (Example values: [2001 – 2002, 2002 – 2003, 2003 – 2004]), `Season Premiere` (Example values: [3rd october 2001, 10/01/2002, september 23, 2003]), `Season Finale` (Example values: [may 15, 2002, may 20, 2003, may 25, 2004]), `DVD release date` (Example values: [october 21, 2008, may 4, 2010, may 3, 2011])]\n", + "ori_query": "select max(`episodes`) from `2-10789374-1` where `season premiere` = 'january 3, 2007'", + "amb_query": "SELECT MAX(\"episodes\") FROM \"2-10789374-1\" WHERE season premiere IN ('03 january 2007', 'january 3, 2007')" + }, + { + "db_id": "2-10789374-1", + "question": "What are the originally aired dates of the series premiering on October 3, 2001 with less than 5 seasons?", + "evidence": "", + "schema_text_wo_content": "Table 2-10789374-1, columns = [Season, Episodes, Originally aired, Season Premiere, Season Finale, DVD release date]\n", + "schema_text_with_content": "Table 2-10789374-1, columns = [`Season` (Example values: [1.0, 2.0, 3.0]), `Episodes` (Example values: [22.0, 28.0, 29.0]), `Originally aired` (Example values: [2001 – 2002, 2002 – 2003, 2003 – 2004]), `Season Premiere` (Example values: [3rd october 2001, 10/01/2002, september 23, 2003]), `Season Finale` (Example values: [may 15, 2002, may 20, 2003, may 25, 2004]), `DVD release date` (Example values: [october 21, 2008, may 4, 2010, may 3, 2011])]\n", + "ori_query": "select `originally aired` from `2-10789374-1` where `season` < 5 and `season premiere` = 'october 3, 2001'", + "amb_query": "SELECT \"originally aired\" FROM \"2-10789374-1\" WHERE \"season\" < 5 AND season premiere IN ('3rd october 2001', 'october 3, 2001')" + }, + { + "db_id": "2-11999692-2", + "question": "Which album was on may 1988?", + "evidence": "", + "schema_text_wo_content": "Table 2-11999692-2, columns = [Year, Title, US 100, US AC, Lead singer, Album, Label and cat#]\n", + "schema_text_with_content": "Table 2-11999692-2, columns = [`Year` (Example values: [july 1969, oct. 1969, march 1970]), `Title` (Example values: [\" questions 67 and 68 \", \" beginnings \", \" make me smile \"]), `US 100` (Example values: [71, —, 9]), `US AC` (Example values: [—, 5, 1]), `Lead singer` (Example values: [cetera / lamm, lamm, kath]), `Album` (Example values: [the chicago transit authority, chicago ii, chicago iii]), `Label and cat#` (Example values: [columbia 44909, columbia 45011, columbia 45127])]\n", + "ori_query": "select `album` from `2-11999692-2` where `year` = 'may 1988'", + "amb_query": "SELECT \"album\" FROM \"2-11999692-2\" WHERE year IN ('may 1988', '1988-05')" + }, + { + "db_id": "2-11999692-2", + "question": "Which album was on oct. 1972?", + "evidence": "", + "schema_text_wo_content": "Table 2-11999692-2, columns = [Year, Title, US 100, US AC, Lead singer, Album, Label and cat#]\n", + "schema_text_with_content": "Table 2-11999692-2, columns = [`Year` (Example values: [july 1969, oct. 1969, march 1970]), `Title` (Example values: [\" questions 67 and 68 \", \" beginnings \", \" make me smile \"]), `US 100` (Example values: [71, —, 9]), `US AC` (Example values: [—, 5, 1]), `Lead singer` (Example values: [cetera / lamm, lamm, kath]), `Album` (Example values: [the chicago transit authority, chicago ii, chicago iii]), `Label and cat#` (Example values: [columbia 44909, columbia 45011, columbia 45127])]\n", + "ori_query": "select `album` from `2-11999692-2` where `year` = 'oct. 1972'", + "amb_query": "SELECT \"album\" FROM \"2-11999692-2\" WHERE year IN ('october 1972', 'oct. 1972')" + }, + { + "db_id": "2-11999692-2", + "question": "Which album was on jan. 1978?", + "evidence": "", + "schema_text_wo_content": "Table 2-11999692-2, columns = [Year, Title, US 100, US AC, Lead singer, Album, Label and cat#]\n", + "schema_text_with_content": "Table 2-11999692-2, columns = [`Year` (Example values: [july 1969, oct. 1969, march 1970]), `Title` (Example values: [\" questions 67 and 68 \", \" beginnings \", \" make me smile \"]), `US 100` (Example values: [71, —, 9]), `US AC` (Example values: [—, 5, 1]), `Lead singer` (Example values: [cetera / lamm, lamm, kath]), `Album` (Example values: [the chicago transit authority, chicago ii, chicago iii]), `Label and cat#` (Example values: [columbia 44909, columbia 45011, columbia 45127])]\n", + "ori_query": "select `album` from `2-11999692-2` where `year` = 'jan. 1978'", + "amb_query": "SELECT \"album\" FROM \"2-11999692-2\" WHERE year IN ('jan. 1978', 'jan 1978')" + }, + { + "db_id": "2-11999692-2", + "question": "Which album was on march 1977?", + "evidence": "", + "schema_text_wo_content": "Table 2-11999692-2, columns = [Year, Title, US 100, US AC, Lead singer, Album, Label and cat#]\n", + "schema_text_with_content": "Table 2-11999692-2, columns = [`Year` (Example values: [july 1969, oct. 1969, march 1970]), `Title` (Example values: [\" questions 67 and 68 \", \" beginnings \", \" make me smile \"]), `US 100` (Example values: [71, —, 9]), `US AC` (Example values: [—, 5, 1]), `Lead singer` (Example values: [cetera / lamm, lamm, kath]), `Album` (Example values: [the chicago transit authority, chicago ii, chicago iii]), `Label and cat#` (Example values: [columbia 44909, columbia 45011, columbia 45127])]\n", + "ori_query": "select `album` from `2-11999692-2` where `year` = 'march 1977'", + "amb_query": "SELECT \"album\" FROM \"2-11999692-2\" WHERE year IN ('march 1977', 'march of 1977')" + }, + { + "db_id": "2-11999692-2", + "question": "Which album was on June 1998?", + "evidence": "", + "schema_text_wo_content": "Table 2-11999692-2, columns = [Year, Title, US 100, US AC, Lead singer, Album, Label and cat#]\n", + "schema_text_with_content": "Table 2-11999692-2, columns = [`Year` (Example values: [july 1969, oct. 1969, march 1970]), `Title` (Example values: [\" questions 67 and 68 \", \" beginnings \", \" make me smile \"]), `US 100` (Example values: [71, —, 9]), `US AC` (Example values: [—, 5, 1]), `Lead singer` (Example values: [cetera / lamm, lamm, kath]), `Album` (Example values: [the chicago transit authority, chicago ii, chicago iii]), `Label and cat#` (Example values: [columbia 44909, columbia 45011, columbia 45127])]\n", + "ori_query": "select `album` from `2-11999692-2` where `year` = 'june 1998'", + "amb_query": "SELECT \"album\" FROM \"2-11999692-2\" WHERE year IN ('june of 1998', 'june 1998')" + }, + { + "db_id": "pets_1", + "question": "Find the number of dog pets that are raised by female students (with sex F).", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", + "amb_query": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex IN ('F', 'Sex F', 'Female', 'Gender F') AND T3.pettype IN ('Canine dog', 'dog')" + }, + { + "db_id": "pets_1", + "question": "How many dog pets are raised by female students?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", + "amb_query": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex IN ('F', 'Sex F', 'Female', 'Gender F') AND T3.pettype IN ('Canine dog', 'dog')" + }, + { + "db_id": "pets_1", + "question": "Find the first name of students who have cat or dog pet.", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", + "amb_query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat') OR T3.pettype IN ('Canine dog', 'dog')" + }, + { + "db_id": "pets_1", + "question": "What are the first names of every student who has a cat or dog as a pet?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", + "amb_query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat') OR T3.pettype IN ('Canine dog', 'dog')" + }, + { + "db_id": "pets_1", + "question": "Find the first name of students who have both cat and dog pets .", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", + "amb_query": "SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype IN ('kitten', 'cat') INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype IN ('Canine dog', 'dog')" + }, + { + "db_id": "pets_1", + "question": "What are the students' first names who have both cats and dogs as pets?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'", + "amb_query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat') INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('Canine dog', 'dog')" + }, + { + "db_id": "pets_1", + "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "amb_query": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('Canine dog', 'dog') AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat'))" + }, + { + "db_id": "pets_1", + "question": "What is the first name of every student who has a dog but does not have a cat?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "amb_query": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('Canine dog', 'dog') AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat'))" + }, + { + "db_id": "pets_1", + "question": "Find the major and age of students who do not have a cat pet.", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "amb_query": "SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat'))" + }, + { + "db_id": "pets_1", + "question": "What major is every student who does not own a cat as a pet, and also how old are they?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "amb_query": "SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat'))" + }, + { + "db_id": "pets_1", + "question": "Find the id of students who do not have a cat pet.", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", + "amb_query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat')" + }, + { + "db_id": "pets_1", + "question": "What are the ids of the students who do not own cats as pets?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", + "amb_query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype IN ('kitten', 'cat')" + }, + { + "db_id": "pets_1", + "question": "Find the last name of the student who has a cat that is age 3.", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", + "amb_query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype IN ('kitten', 'cat')" + }, + { + "db_id": "pets_1", + "question": "What is the last name of the student who has a cat that is 3 years old?", + "evidence": "", + "schema_text_wo_content": "\nTable Student, columns = [`stuid` (student id), `lname` (last name), `fname` (first name), `age` (age), `sex` (sex), `major` (major), `advisor` (advisor), `city_code` (city code)]\nTable Has_Pet, columns = [`stuid` (student id), `petid` (pet id)]\nTable Pets, columns = [`petid` (pet id), `pettype` (pet type), `pet_age` (pet age), `weight` (weight)]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "schema_text_with_content": "\nTable Student, columns = [`stuid` (student id. Example values: [1001, 1002, 1003]), `lname` (last name. Example values: [Smith, Kim, Jones]), `fname` (first name. Example values: [Linda, Tracy, Shiela]), `age` (age. Example values: [18, 19, 21]), `sex` (sex. Example values: [F, Female, Gender F]), `major` (major. Example values: [600, 520, 540]), `advisor` (advisor. Example values: [1121, 7712, 7792]), `city_code` (city code. Example values: [BAL, HKG, WAS])]\nTable Has_Pet, columns = [`stuid` (student id. Example values: [1001, 1002]), `petid` (pet id. Example values: [2001, 2002, 2003])]\nTable Pets, columns = [`petid` (pet id. Example values: [2001, 2002, 2003]), `pettype` (pet type. Example values: [kitten, Canine dog]), `pet_age` (pet age. Example values: [3, 2, 1]), `weight` (weight. Example values: [12.0, 13.4, 9.3])]\nforeign keys = [Has_Pet.StuID = Student.StuID, Has_Pet.PetID = Pets.PetID]", + "ori_query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", + "amb_query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype IN ('kitten', 'cat')" + }, + { + "db_id": "tvshow", + "question": "How many TV Channel using language English?", + "evidence": "", + "schema_text_wo_content": "\nTable TV_Channel, columns = [`id` (id), `series_name` (series name), `country` (country), `language` (language), `content` (content), `pixel_aspect_ratio_par` (pixel aspect ratio par), `hight_definition_tv` (hight definition tv), `pay_per_view_ppv` (pay per view ppv), `package_option` (package option)]\nTable TV_series, columns = [`id` (id), `episode` (episode), `air_date` (air date), `rating` (rating), `share` (share), `18_49_rating_share` (18 49 rating share), `viewers_m` (viewers m), `weekly_rank` (weekly rank), `channel` (channel)]\nTable Cartoon, columns = [`id` (id), `title` (title), `directed_by` (directed by), `written_by` (written by), `original_air_date` (original air date), `production_code` (production code), `channel` (channel)]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "schema_text_with_content": "\nTable TV_Channel, columns = [`id` (id. Example values: [700, 701, 703]), `series_name` (series name. Example values: [Sky Radio, Sky Music, Music Box Italia]), `country` (country. Example values: [Italy, United Kingdom, Poland]), `language` (language. Example values: [Italian, English language, Anglophone]), `content` (content. Example values: [music]), `pixel_aspect_ratio_par` (pixel aspect ratio par. Example values: [4:3, 4:3 / 16:9, 16:9]), `hight_definition_tv` (hight definition tv. Example values: [no, yes]), `pay_per_view_ppv` (pay per view ppv. Example values: [no]), `package_option` (package option. Example values: [Sky Famiglia, no ( FTV ), Sky Famiglia + Sky HD])]\nTable TV_series, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `episode` (episode. Example values: [A Love of a Lifetime, Friendly Skies, Game Three]), `air_date` (air date. Example values: [September 24, 2007, October 1, 2007, October 8, 2007]), `rating` (rating. Example values: [5.8, 5.3, 4.4]), `share` (share. Example values: [9.0, 7.0, 6.0]), `18_49_rating_share` (18 49 rating share. Example values: [3.5/9, 3.2/8, 2.9/7]), `viewers_m` (viewers m. Example values: [9.16, 8.23, 6.94]), `weekly_rank` (weekly rank. Example values: [43.0, 50.0, 61.0]), `channel` (channel. Example values: [700, 701, 707])]\nTable Cartoon, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `title` (title. Example values: [The Rise of the Blue Beetle!, Terror on Dinosaur Island!, Evil Under the Sea!]), `directed_by` (directed by. Example values: [Ben Jones, Brandon Vietti, Michael Chang]), `written_by` (written by. Example values: [Michael Jelenic, Steven Melching, Joseph Kuhr]), `original_air_date` (original air date. Example values: [November14,2008, November21,2008, December5,2008]), `production_code` (production code. Example values: [101.0, 102.0, 103.0]), `channel` (channel. Example values: [700, 701, 703])]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "ori_query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "amb_query": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE IN ('English language', 'English', 'Anglophone')" + }, + { + "db_id": "tvshow", + "question": "How many TV Channels use the English language?", + "evidence": "", + "schema_text_wo_content": "\nTable TV_Channel, columns = [`id` (id), `series_name` (series name), `country` (country), `language` (language), `content` (content), `pixel_aspect_ratio_par` (pixel aspect ratio par), `hight_definition_tv` (hight definition tv), `pay_per_view_ppv` (pay per view ppv), `package_option` (package option)]\nTable TV_series, columns = [`id` (id), `episode` (episode), `air_date` (air date), `rating` (rating), `share` (share), `18_49_rating_share` (18 49 rating share), `viewers_m` (viewers m), `weekly_rank` (weekly rank), `channel` (channel)]\nTable Cartoon, columns = [`id` (id), `title` (title), `directed_by` (directed by), `written_by` (written by), `original_air_date` (original air date), `production_code` (production code), `channel` (channel)]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "schema_text_with_content": "\nTable TV_Channel, columns = [`id` (id. Example values: [700, 701, 703]), `series_name` (series name. Example values: [Sky Radio, Sky Music, Music Box Italia]), `country` (country. Example values: [Italy, United Kingdom, Poland]), `language` (language. Example values: [Italian, English language, Anglophone]), `content` (content. Example values: [music]), `pixel_aspect_ratio_par` (pixel aspect ratio par. Example values: [4:3, 4:3 / 16:9, 16:9]), `hight_definition_tv` (hight definition tv. Example values: [no, yes]), `pay_per_view_ppv` (pay per view ppv. Example values: [no]), `package_option` (package option. Example values: [Sky Famiglia, no ( FTV ), Sky Famiglia + Sky HD])]\nTable TV_series, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `episode` (episode. Example values: [A Love of a Lifetime, Friendly Skies, Game Three]), `air_date` (air date. Example values: [September 24, 2007, October 1, 2007, October 8, 2007]), `rating` (rating. Example values: [5.8, 5.3, 4.4]), `share` (share. Example values: [9.0, 7.0, 6.0]), `18_49_rating_share` (18 49 rating share. Example values: [3.5/9, 3.2/8, 2.9/7]), `viewers_m` (viewers m. Example values: [9.16, 8.23, 6.94]), `weekly_rank` (weekly rank. Example values: [43.0, 50.0, 61.0]), `channel` (channel. Example values: [700, 701, 707])]\nTable Cartoon, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `title` (title. Example values: [The Rise of the Blue Beetle!, Terror on Dinosaur Island!, Evil Under the Sea!]), `directed_by` (directed by. Example values: [Ben Jones, Brandon Vietti, Michael Chang]), `written_by` (written by. Example values: [Michael Jelenic, Steven Melching, Joseph Kuhr]), `original_air_date` (original air date. Example values: [November14,2008, November21,2008, December5,2008]), `production_code` (production code. Example values: [101.0, 102.0, 103.0]), `channel` (channel. Example values: [700, 701, 703])]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "ori_query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "amb_query": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE IN ('English language', 'English', 'Anglophone')" + }, + { + "db_id": "tvshow", + "question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", + "evidence": "", + "schema_text_wo_content": "\nTable TV_Channel, columns = [`id` (id), `series_name` (series name), `country` (country), `language` (language), `content` (content), `pixel_aspect_ratio_par` (pixel aspect ratio par), `hight_definition_tv` (hight definition tv), `pay_per_view_ppv` (pay per view ppv), `package_option` (package option)]\nTable TV_series, columns = [`id` (id), `episode` (episode), `air_date` (air date), `rating` (rating), `share` (share), `18_49_rating_share` (18 49 rating share), `viewers_m` (viewers m), `weekly_rank` (weekly rank), `channel` (channel)]\nTable Cartoon, columns = [`id` (id), `title` (title), `directed_by` (directed by), `written_by` (written by), `original_air_date` (original air date), `production_code` (production code), `channel` (channel)]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "schema_text_with_content": "\nTable TV_Channel, columns = [`id` (id. Example values: [700, 701, 703]), `series_name` (series name. Example values: [Sky Radio, Sky Music, Music Box Italia]), `country` (country. Example values: [Italy, United Kingdom, Poland]), `language` (language. Example values: [Italian, English language, Anglophone]), `content` (content. Example values: [music]), `pixel_aspect_ratio_par` (pixel aspect ratio par. Example values: [4:3, 4:3 / 16:9, 16:9]), `hight_definition_tv` (hight definition tv. Example values: [no, yes]), `pay_per_view_ppv` (pay per view ppv. Example values: [no]), `package_option` (package option. Example values: [Sky Famiglia, no ( FTV ), Sky Famiglia + Sky HD])]\nTable TV_series, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `episode` (episode. Example values: [A Love of a Lifetime, Friendly Skies, Game Three]), `air_date` (air date. Example values: [September 24, 2007, October 1, 2007, October 8, 2007]), `rating` (rating. Example values: [5.8, 5.3, 4.4]), `share` (share. Example values: [9.0, 7.0, 6.0]), `18_49_rating_share` (18 49 rating share. Example values: [3.5/9, 3.2/8, 2.9/7]), `viewers_m` (viewers m. Example values: [9.16, 8.23, 6.94]), `weekly_rank` (weekly rank. Example values: [43.0, 50.0, 61.0]), `channel` (channel. Example values: [700, 701, 707])]\nTable Cartoon, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `title` (title. Example values: [The Rise of the Blue Beetle!, Terror on Dinosaur Island!, Evil Under the Sea!]), `directed_by` (directed by. Example values: [Ben Jones, Brandon Vietti, Michael Chang]), `written_by` (written by. Example values: [Michael Jelenic, Steven Melching, Joseph Kuhr]), `original_air_date` (original air date. Example values: [November14,2008, November21,2008, December5,2008]), `production_code` (production code. Example values: [101.0, 102.0, 103.0]), `channel` (channel. Example values: [700, 701, 703])]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "ori_query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", + "amb_query": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE NOT LANGUAGE IN ('English language', 'English', 'Anglophone')" + }, + { + "db_id": "tvshow", + "question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", + "evidence": "", + "schema_text_wo_content": "\nTable TV_Channel, columns = [`id` (id), `series_name` (series name), `country` (country), `language` (language), `content` (content), `pixel_aspect_ratio_par` (pixel aspect ratio par), `hight_definition_tv` (hight definition tv), `pay_per_view_ppv` (pay per view ppv), `package_option` (package option)]\nTable TV_series, columns = [`id` (id), `episode` (episode), `air_date` (air date), `rating` (rating), `share` (share), `18_49_rating_share` (18 49 rating share), `viewers_m` (viewers m), `weekly_rank` (weekly rank), `channel` (channel)]\nTable Cartoon, columns = [`id` (id), `title` (title), `directed_by` (directed by), `written_by` (written by), `original_air_date` (original air date), `production_code` (production code), `channel` (channel)]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "schema_text_with_content": "\nTable TV_Channel, columns = [`id` (id. Example values: [700, 701, 703]), `series_name` (series name. Example values: [Sky Radio, Sky Music, Music Box Italia]), `country` (country. Example values: [Italy, United Kingdom, Poland]), `language` (language. Example values: [Italian, English language, Anglophone]), `content` (content. Example values: [music]), `pixel_aspect_ratio_par` (pixel aspect ratio par. Example values: [4:3, 4:3 / 16:9, 16:9]), `hight_definition_tv` (hight definition tv. Example values: [no, yes]), `pay_per_view_ppv` (pay per view ppv. Example values: [no]), `package_option` (package option. Example values: [Sky Famiglia, no ( FTV ), Sky Famiglia + Sky HD])]\nTable TV_series, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `episode` (episode. Example values: [A Love of a Lifetime, Friendly Skies, Game Three]), `air_date` (air date. Example values: [September 24, 2007, October 1, 2007, October 8, 2007]), `rating` (rating. Example values: [5.8, 5.3, 4.4]), `share` (share. Example values: [9.0, 7.0, 6.0]), `18_49_rating_share` (18 49 rating share. Example values: [3.5/9, 3.2/8, 2.9/7]), `viewers_m` (viewers m. Example values: [9.16, 8.23, 6.94]), `weekly_rank` (weekly rank. Example values: [43.0, 50.0, 61.0]), `channel` (channel. Example values: [700, 701, 707])]\nTable Cartoon, columns = [`id` (id. Example values: [1.0, 2.0, 3.0]), `title` (title. Example values: [The Rise of the Blue Beetle!, Terror on Dinosaur Island!, Evil Under the Sea!]), `directed_by` (directed by. Example values: [Ben Jones, Brandon Vietti, Michael Chang]), `written_by` (written by. Example values: [Michael Jelenic, Steven Melching, Joseph Kuhr]), `original_air_date` (original air date. Example values: [November14,2008, November21,2008, December5,2008]), `production_code` (production code. Example values: [101.0, 102.0, 103.0]), `channel` (channel. Example values: [700, 701, 703])]\nforeign keys = [TV_series.Channel = TV_Channel.id, Cartoon.Channel = TV_Channel.id]", + "ori_query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", + "amb_query": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE NOT LANGUAGE IN ('English language', 'English', 'Anglophone')" + }, + { + "db_id": "poker_player", + "question": "Show names of people whose nationality is not \"Russia\".", + "evidence": "", + "schema_text_wo_content": "\nTable poker_player, columns = [`poker_player_id` (poker player id), `people_id` (people id), `final_table_made` (final table made), `best_finish` (best finish), `money_rank` (money rank), `earnings` (earnings)]\nTable people, columns = [`people_id` (people id), `nationality` (nationality), `name` (name), `birth_date` (birth date), `height` (height)]\nforeign keys = [poker_player.People_ID = people.People_ID]", + "schema_text_with_content": "\nTable poker_player, columns = [`poker_player_id` (poker player id. Example values: [1, 2, 3]), `people_id` (people id. Example values: [1, 2, 5]), `final_table_made` (final table made. Example values: [42.0, 10.0, 21.0]), `best_finish` (best finish. Example values: [1.0, 2.0, 3.0]), `money_rank` (money rank. Example values: [68.0, 141.0, 166.0]), `earnings` (earnings. Example values: [476090.0, 189233.0, 104871.0])]\nTable people, columns = [`people_id` (people id. Example values: [1, 2, 3]), `nationality` (nationality. Example values: [Russian Federation, Bulgaria, Russia]), `name` (name. Example values: [Aleksey Ostapenko, Teodor Salparov, Roman Bragin]), `birth_date` (birth date. Example values: [May 26, 1986, August 16, 1982, April 17, 1987]), `height` (height. Example values: [207.0, 182.0, 187.0])]\nforeign keys = [poker_player.People_ID = people.People_ID]", + "ori_query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "amb_query": "SELECT Name FROM people WHERE NOT Nationality IN ('Russia', 'Russian Federation', 'the country of Russia')" + }, + { + "db_id": "poker_player", + "question": "What are the names of people who are not from Russia?", + "evidence": "", + "schema_text_wo_content": "\nTable poker_player, columns = [`poker_player_id` (poker player id), `people_id` (people id), `final_table_made` (final table made), `best_finish` (best finish), `money_rank` (money rank), `earnings` (earnings)]\nTable people, columns = [`people_id` (people id), `nationality` (nationality), `name` (name), `birth_date` (birth date), `height` (height)]\nforeign keys = [poker_player.People_ID = people.People_ID]", + "schema_text_with_content": "\nTable poker_player, columns = [`poker_player_id` (poker player id. Example values: [1, 2, 3]), `people_id` (people id. Example values: [1, 2, 5]), `final_table_made` (final table made. Example values: [42.0, 10.0, 21.0]), `best_finish` (best finish. Example values: [1.0, 2.0, 3.0]), `money_rank` (money rank. Example values: [68.0, 141.0, 166.0]), `earnings` (earnings. Example values: [476090.0, 189233.0, 104871.0])]\nTable people, columns = [`people_id` (people id. Example values: [1, 2, 3]), `nationality` (nationality. Example values: [Russian Federation, Bulgaria, Russia]), `name` (name. Example values: [Aleksey Ostapenko, Teodor Salparov, Roman Bragin]), `birth_date` (birth date. Example values: [May 26, 1986, August 16, 1982, April 17, 1987]), `height` (height. Example values: [207.0, 182.0, 187.0])]\nforeign keys = [poker_player.People_ID = people.People_ID]", + "ori_query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "amb_query": "SELECT Name FROM people WHERE NOT Nationality IN ('Russia', 'Russian Federation', 'the country of Russia')" + }, + { + "db_id": "voter_1", + "question": "What is last date created of votes from the state 'CA'?", + "evidence": "", + "schema_text_wo_content": "\nTable AREA_CODE_STATE, columns = [`area_code` (area code), `state` (state)]\nTable CONTESTANTS, columns = [`contestant_number` (contestant number), `contestant_name` (contestant name)]\nTable VOTES, columns = [`vote_id` (vote id), `phone_number` (phone number), `state` (state), `contestant_number` (contestant number), `created` (created)]\nforeign keys = [VOTES.contestant_number = CONTESTANTS.contestant_number, VOTES.state = AREA_CODE_STATE.state]", + "schema_text_with_content": "\nTable AREA_CODE_STATE, columns = [`area_code` (area code. Example values: [201, 202, 203]), `state` (state. Example values: [NJ, DC, CT])]\nTable CONTESTANTS, columns = [`contestant_number` (contestant number. Example values: [1, 2, 3]), `contestant_name` (contestant name. Example values: [Edwina Burnam, Tabatha Gehling, Kelly Clauss])]\nTable VOTES, columns = [`vote_id` (vote id. Example values: [5, 3, 2]), `phone_number` (phone number. Example values: [5112677315, 6209222712, 7148407040]), `state` (state. Example values: [NY, USA, NY, California]), `contestant_number` (contestant number. Example values: [2, 3, 5]), `created` (created. Example values: [2018-03-09 19:03:21, 2018-03-09 19:03:36, 2018-03-09 19:03:39])]\nforeign keys = [VOTES.contestant_number = CONTESTANTS.contestant_number, VOTES.state = AREA_CODE_STATE.state]", + "ori_query": "SELECT max(created) FROM votes WHERE state = 'CA'", + "amb_query": "SELECT MAX(created) FROM votes WHERE state IN ('CA', 'California')" + }, + { + "db_id": "voter_1", + "question": "What are the number of votes from state 'NY' or 'CA'?", + "evidence": "", + "schema_text_wo_content": "\nTable AREA_CODE_STATE, columns = [`area_code` (area code), `state` (state)]\nTable CONTESTANTS, columns = [`contestant_number` (contestant number), `contestant_name` (contestant name)]\nTable VOTES, columns = [`vote_id` (vote id), `phone_number` (phone number), `state` (state), `contestant_number` (contestant number), `created` (created)]\nforeign keys = [VOTES.contestant_number = CONTESTANTS.contestant_number, VOTES.state = AREA_CODE_STATE.state]", + "schema_text_with_content": "\nTable AREA_CODE_STATE, columns = [`area_code` (area code. Example values: [201, 202, 203]), `state` (state. Example values: [NJ, DC, CT])]\nTable CONTESTANTS, columns = [`contestant_number` (contestant number. Example values: [1, 2, 3]), `contestant_name` (contestant name. Example values: [Edwina Burnam, Tabatha Gehling, Kelly Clauss])]\nTable VOTES, columns = [`vote_id` (vote id. Example values: [5, 3, 2]), `phone_number` (phone number. Example values: [5112677315, 6209222712, 7148407040]), `state` (state. Example values: [NY, USA, NY, California]), `contestant_number` (contestant number. Example values: [2, 3, 5]), `created` (created. Example values: [2018-03-09 19:03:21, 2018-03-09 19:03:36, 2018-03-09 19:03:39])]\nforeign keys = [VOTES.contestant_number = CONTESTANTS.contestant_number, VOTES.state = AREA_CODE_STATE.state]", + "ori_query": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'", + "amb_query": "SELECT COUNT(*) FROM votes WHERE state IN ('NY, USA', 'NY') OR state IN ('CA', 'California')" + }, + { + "db_id": "debit_card_specializing", + "question": "How many gas stations in CZE has Premium gas?", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(GasStationID) FROM gasstations WHERE Country = 'CZE' AND Segment = 'Premium'", + "amb_query": "SELECT COUNT(GasStationID) FROM gasstations WHERE Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)') AND Segment IN ('Premium', 'Premium gas', 'Premium segment')" + }, + { + "db_id": "debit_card_specializing", + "question": "What is the percentage of \"premium\" against the overall segment in Country = \"SVK\"?", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST(SUM(IIF(Country = 'SVK' AND Segment = 'Premium', 1, 0)) AS FLOAT) * 100 / SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations", + "amb_query": "SELECT CAST(SUM(IIF(Country IN ('Slovakia, Central Europe', 'SVK', 'Slovak Republic') AND Segment IN ('Premium', 'Premium gas', 'Premium segment'), 1, 0)) AS FLOAT) * 100 / SUM(IIF(Country IN ('Slovakia, Central Europe', 'SVK', 'Slovak Republic'), 1, 0)) FROM gasstations" + }, + { + "db_id": "debit_card_specializing", + "question": "How many more \"discount\" gas stations does the Czech Republic have compared to Slovakia?", + "evidence": "Czech Republic can be represented as the Country value in gasstations table is 'CZE'; Slovakia can be represented as the Country value in the gasstations table is 'SVK'; Computation of more \"discount\" gas stations= Total no. of discount gas stations in Czech Republic - Total no. of discount gas stations in Slovakia", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUM(IIF(Country = 'CZE', 1, 0)) - SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations WHERE Segment = 'Discount'", + "amb_query": "SELECT SUM(IIF(Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)'), 1, 0)) - SUM(IIF(Country IN ('Slovakia, Central Europe', 'SVK', 'Slovak Republic'), 1, 0)) FROM gasstations WHERE Segment IN ('Discount', 'Discounted')" + }, + { + "db_id": "debit_card_specializing", + "question": "Which country has more \"value for money\" gas stations? Please give a total number of \"value for money\" gas stations in each country.", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT Country , ( SELECT COUNT(GasStationID) FROM gasstations WHERE Segment = 'Value for money' ) FROM gasstations WHERE Segment = 'Value for money' GROUP BY Country ORDER BY COUNT(GasStationID) DESC LIMIT 1", + "amb_query": "SELECT Country, (SELECT COUNT(GasStationID) FROM gasstations WHERE Segment IN ('budget-friendly gas stations', 'value for money gas stations', 'Value for money', 'cost-effective gas stations')) FROM gasstations WHERE Segment IN ('budget-friendly gas stations', 'value for money gas stations', 'Value for money', 'cost-effective gas stations') GROUP BY Country ORDER BY COUNT(GasStationID) DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "Please list the product descriptions of the transactions taken place in the gas stations in the Czech Republic.", + "evidence": "Czech Republic can be represented as the Country value in the gasstations table is 'CZE'; ", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Country = 'CZE'", + "amb_query": "SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)')" + }, + { + "db_id": "debit_card_specializing", + "question": "How many transactions taken place in the gas station in the Czech Republic are with a price of over 1000?", + "evidence": "Gas station in the Czech Republic implies that Country = 'CZE'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE' AND T1.Price > 1000", + "amb_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)') AND T1.Price > 1000" + }, + { + "db_id": "debit_card_specializing", + "question": "Among the transactions made in the gas stations in the Czech Republic, how many of them are taken place after 2012/1/1?", + "evidence": "Czech Republic can be represented as the Country value in the gasstations table is 'CZE'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE' AND STRFTIME('%Y', T1.Date) >= '2012'", + "amb_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)') AND STRFTIME('%Y', T1.Date) >= '2012'" + }, + { + "db_id": "debit_card_specializing", + "question": "What is the average total price of the transactions taken place in gas stations in the Czech Republic?", + "evidence": "Gas station in the Czech Republic implies that Country = 'CZE'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE'", + "amb_query": "SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)')" + }, + { + "db_id": "debit_card_specializing", + "question": "For all the transactions happened during 8:00-9:00 in 2012/8/26, how many happened in CZE?", + "evidence": "Czech Republic can be represented as the Country value in the gasstations table is 'CZE'; '2012/8/26' can be represented by '2012-08-26'; during 8:00-9:00 can be represented as Time BETWEEN '08:00:00' AND '09:00:00'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-26' AND T1.Time BETWEEN '08:00:00' AND '09:00:00' AND T2.Country = 'CZE'", + "amb_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date IN ('26/08/2012', '2012-08-26', 'August 26, 2012', '08-26-2012', '2012/08/26') AND T1.Time BETWEEN '08:00:00' AND '09:00:00' AND T2.Country IN ('Czech nation', 'Czech Republic', 'CZE', 'Czechia', 'Czech Republic (CZE)')" + }, + { + "db_id": "debit_card_specializing", + "question": "Which customers, paying in CZK, consumed the most gas in 2011?", + "evidence": "Year 2011 can be presented as Between 201101 And 201112, which means between January and December in 2011", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'CZK' AND T2.Date BETWEEN 201101 AND 201112 GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1", + "amb_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency IN ('CZK', 'CZK currency', 'Czech koruna') AND T2.Date BETWEEN 201101 AND 201112 GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "How many customers in KAM had a consumption of less than 30,000 for the year 2012?", + "evidence": "Year 2012 can be presented as Between 201201 And 201212, which means between January and December in 2012", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(*) FROM ( SELECT T2.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'KAM' AND SUBSTRING(T2.Date, 1, 4) = '2012' GROUP BY T2.CustomerID HAVING SUM(T2.Consumption) < 30000 ) AS t1", + "amb_query": "SELECT COUNT(*) FROM (SELECT T2.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment IN ('KAM customers', 'KAM', 'KAM group') AND SUBSTRING(T2.Date, 1, 4) = '2012' GROUP BY T2.CustomerID HAVING SUM(T2.Consumption) < 30000) AS t1" + }, + { + "db_id": "debit_card_specializing", + "question": "Which year recorded the most gas use paid in EUR?", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUBSTRING(T2.Date, 1, 4) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'EUR' GROUP BY SUBSTRING(T2.Date, 1, 4) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", + "amb_query": "SELECT SUBSTRING(T2.Date, 1, 4) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR') GROUP BY SUBSTRING(T2.Date, 1, 4) ORDER BY SUM(T2.Consumption) DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "What is the difference in the annual average consumption of the customers with the least amount of consumption paid in CZK for 2013 between SME and LAM, LAM and KAM, and KAM and SME?", + "evidence": "annual average consumption of customer with the lowest consumption in each segment = total consumption per year / the number of customer with lowest consumption in each segment; Difference in annual average = SME's annual average - LAM's annual average; Difference in annual average = LAM's annual average - KAM's annual average; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST(SUM(IIF(T1.Segment = 'SME', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'LAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) , CAST(SUM(IIF(T1.Segment = 'LAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'KAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) , CAST(SUM(IIF(T1.Segment = 'KAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'SME', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'CZK' AND T2.Consumption = ( SELECT MIN(Consumption) FROM yearmonth ) AND T2.Date BETWEEN 201301 AND 201312", + "amb_query": "SELECT CAST(SUM(IIF(T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category'), T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category'), T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID), CAST(SUM(IIF(T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category'), T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment IN ('KAM customers', 'KAM', 'KAM group'), T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID), CAST(SUM(IIF(T1.Segment IN ('KAM customers', 'KAM', 'KAM group'), T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category'), T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency IN ('CZK', 'CZK currency', 'Czech koruna') AND T2.Consumption = (SELECT MIN(Consumption) FROM yearmonth) AND T2.Date BETWEEN 201301 AND 201312" + }, + { + "db_id": "debit_card_specializing", + "question": "Which of the three segments—SME, LAM and KAM—has the biggest and lowest percentage increases in consumption paid in EUR between 2012 and 2013?", + "evidence": "Increase or Decrease = consumption for 2013 - consumption for 2012; Percentage of Increase = (Increase or Decrease / consumption for 2013) * 100%; The first 4 strings of the Date values in the yearmonth table can represent year", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST((SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2012%', T2.Consumption, 0))) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) , CAST(SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID", + "amb_query": "SELECT CAST((SUM(IIF(T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category') AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category') AND T2.Date LIKE '2012%', T2.Consumption, 0))) AS FLOAT) * 100 / SUM(IIF(T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category') AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category') AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category') AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category') AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment IN ('KAM customers', 'KAM', 'KAM group') AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment IN ('KAM customers', 'KAM', 'KAM group') AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment IN ('KAM customers', 'KAM', 'KAM group') AND T2.Date LIKE '2012%', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID" + }, + { + "db_id": "debit_card_specializing", + "question": "Which LAM customer used the Euro as their currency and had the highest consumption in October 2013?", + "evidence": "October 2013 refers to 201310 in the yearmonth.date", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' AND T2.Date = '201310' AND T1.Currency = 'EUR' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1", + "amb_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category') AND T2.Date IN ('2013 October', '10/2013', '201310') AND T1.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR') GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "How much did the KAM customers consume in total in May 2013?", + "evidence": "May 2013 refers to yearmonth.date = 201305", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUM(T2.Consumption) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date = '201305' AND T1.Segment = 'KAM'", + "amb_query": "SELECT SUM(T2.Consumption) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date IN ('201305', 'May 2013', '05/2013', '2013-05') AND T1.Segment IN ('KAM customers', 'KAM', 'KAM group')" + }, + { + "db_id": "debit_card_specializing", + "question": "Which SME customer consumed the least in June 2012?", + "evidence": "June 2012 refers to yearmonth.date = '201206'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date = '201206' AND T1.Segment = 'SME' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1", + "amb_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date IN ('201206', '2012-06', '2012 June') AND T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category') GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "How many transactions were paid in CZK in the morning of 2012/8/26?", + "evidence": "'2012/8/26' can be represented by '2012-08-26'; The morning refers to the time before '13:00:00'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-26' AND T1.Time < '13:00:00' AND T2.Currency = 'CZK'", + "amb_query": "SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date IN ('26/08/2012', '2012-08-26', 'August 26, 2012', '08-26-2012', '2012/08/26') AND T1.Time < '13:00:00' AND T2.Currency IN ('CZK', 'CZK currency', 'Czech koruna')" + }, + { + "db_id": "debit_card_specializing", + "question": "What is the percentage of the customers who used EUR in 2012/8/25?", + "evidence": "'2012/8/25' can be represented by '2012-08-25'", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST(SUM(IIF(T2.Currency = 'EUR', 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-25'", + "amb_query": "SELECT CAST(SUM(IIF(T2.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR'), 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date IN ('2012-08-25', 'August 25, 2012', '08/25/2012', '2012/08/25')" + }, + { + "db_id": "debit_card_specializing", + "question": "What is the ratio of customers who pay in EUR against customers who pay in CZK?", + "evidence": "ratio of customers who pay in EUR against customers who pay in CZK = count(Currency = 'EUR') / count(Currency = 'CZK').", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST(SUM(IIF(Currency = 'EUR', 1, 0)) AS FLOAT) / SUM(IIF(Currency = 'CZK', 1, 0)) AS ratio FROM customers", + "amb_query": "SELECT CAST(SUM(IIF(Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR'), 1, 0)) AS FLOAT) / SUM(IIF(Currency IN ('CZK', 'CZK currency', 'Czech koruna'), 1, 0)) AS ratio FROM customers" + }, + { + "db_id": "debit_card_specializing", + "question": "What was the difference in gas consumption between CZK-paying customers and EUR-paying customers in 2012?", + "evidence": "Year 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year; Difference in Consumption = CZK customers consumption in 2012 - EUR customers consumption in 2012", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUM(IIF(T1.Currency = 'CZK', T2.Consumption, 0)) - SUM(IIF(T1.Currency = 'EUR', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2012'", + "amb_query": "SELECT SUM(IIF(T1.Currency IN ('CZK', 'CZK currency', 'Czech koruna'), T2.Consumption, 0)) - SUM(IIF(T1.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR'), T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2012'" + }, + { + "db_id": "debit_card_specializing", + "question": "Which year recorded the most consumption of gas paid in CZK?", + "evidence": "The first 4 strings of the Date values in the yearmonth table can represent year.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUBSTR(T2.Date, 1, 4) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'CZK' GROUP BY SUBSTR(T2.Date, 1, 4) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", + "amb_query": "SELECT SUBSTR(T2.Date, 1, 4) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency IN ('CZK', 'CZK currency', 'Czech koruna') GROUP BY SUBSTR(T2.Date, 1, 4) ORDER BY SUM(T2.Consumption) DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "Is it true that more SMEs pay in Czech koruna than in euros? If so, how many more?", + "evidence": "Amount of more SMEs = Total of SMEs pay using Currency CZK - Total of SMEs pay using Currency EUR", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUM(Currency = 'CZK') - SUM(Currency = 'EUR') FROM customers WHERE Segment = 'SME'", + "amb_query": "SELECT SUM(Currency IN ('CZK', 'CZK currency', 'Czech koruna')) - SUM(Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR')) FROM customers WHERE Segment IN ('SME', 'SME segment', 'SME market', 'SME category')" + }, + { + "db_id": "debit_card_specializing", + "question": "What percentage of KAM customers pay in euros?", + "evidence": "Percentage of KAM uses Euro = (Total of KAM uses Euro / Total of KAM) * 100%.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST(SUM(Currency = 'EUR') AS FLOAT) * 100 / COUNT(CustomerID) FROM customers WHERE Segment = 'KAM'", + "amb_query": "SELECT CAST(SUM(Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR')) AS FLOAT) * 100 / COUNT(CustomerID) FROM customers WHERE Segment IN ('KAM customers', 'KAM', 'KAM group')" + }, + { + "db_id": "debit_card_specializing", + "question": "What is the biggest monthly consumption of the customers who use euro as their currency?", + "evidence": "Monthly consumption = SUM(consumption) / 12", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUM(T2.Consumption) / 12 AS MonthlyConsumption FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'EUR' GROUP BY T1.CustomerID ORDER BY MonthlyConsumption DESC LIMIT 1", + "amb_query": "SELECT SUM(T2.Consumption) / 12 AS MonthlyConsumption FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR') GROUP BY T1.CustomerID ORDER BY MonthlyConsumption DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "Please list the chains of the gas stations with transactions in euro.", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT DISTINCT T3.ChainID FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN gasstations AS T3 ON T1.GasStationID = T3.GasStationID WHERE T2.Currency = 'EUR'", + "amb_query": "SELECT DISTINCT T3.ChainID FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN gasstations AS T3 ON T1.GasStationID = T3.GasStationID WHERE T2.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR')" + }, + { + "db_id": "debit_card_specializing", + "question": "Please list the product description of the products bought in transactions in euro.", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT DISTINCT T1.ProductID, T3.Description FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Currency = 'EUR'", + "amb_query": "SELECT DISTINCT T1.ProductID, T3.Description FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR')" + }, + { + "db_id": "debit_card_specializing", + "question": "Among the customers who paid in euro, how many of them have a monthly consumption of over 1000?", + "evidence": "Pays in euro = Currency = 'EUR'.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT COUNT(*) FROM yearmonth AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Currency = 'EUR' AND T1.Consumption > 1000.00", + "amb_query": "SELECT COUNT(*) FROM yearmonth AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR') AND T1.Consumption > 1000.00" + }, + { + "db_id": "debit_card_specializing", + "question": "For the customers who paid in the euro, what is their average total price of the transactions?", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN customers AS T3 ON T1.CustomerID = T3.CustomerID WHERE T3.Currency = 'EUR'", + "amb_query": "SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN customers AS T3 ON T1.CustomerID = T3.CustomerID WHERE T3.Currency IN ('EUR currency', 'Euro', 'EUR', 'currency in EUR')" + }, + { + "db_id": "debit_card_specializing", + "question": "In 2012, who had the least consumption in LAM?", + "evidence": "Year 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' AND SUBSTR(T2.Date, 1, 4) = '2012' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1", + "amb_query": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category') AND SUBSTR(T2.Date, 1, 4) = '2012' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "How many percent of LAM customer consumed more than 46.73?", + "evidence": "Percentage of LAM customer consumed more than 46.73 = (Total no. of LAM customers who consumed more than 46.73 / Total no. of LAM customers) * 100.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT CAST(SUM(IIF(T2.Consumption > 46.73, 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM'", + "amb_query": "SELECT CAST(SUM(IIF(T2.Consumption > 46.73, 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment IN ('LAM', 'LAM client segment', 'LAM customers', 'LAM category')" + }, + { + "db_id": "debit_card_specializing", + "question": "What was the average monthly consumption of customers in SME for the year 2013?", + "evidence": "Average Monthly consumption = AVG(Consumption) / 12; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT AVG(T2.Consumption) / 12 FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment = 'SME'", + "amb_query": "SELECT AVG(T2.Consumption) / 12 FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category')" + }, + { + "db_id": "debit_card_specializing", + "question": "What was the gas consumption peak month for SME customers in 2013?", + "evidence": "Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT SUBSTR(T2.Date, 5, 2) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment = 'SME' GROUP BY SUBSTR(T2.Date, 5, 2) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", + "amb_query": "SELECT SUBSTR(T2.Date, 5, 2) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment IN ('SME', 'SME segment', 'SME market', 'SME category') GROUP BY SUBSTR(T2.Date, 5, 2) ORDER BY SUM(T2.Consumption) DESC LIMIT 1" + }, + { + "db_id": "debit_card_specializing", + "question": "Who among KAM's customers consumed the most? How much did it consume?", + "evidence": "", + "schema_text_wo_content": "\nTable customers, columns = [`customerid` (customerid), `segment` (client segment), `currency` (currency)]\nTable gasstations, columns = [`gasstationid` (gas station id), `chainid` (chain id), `country` (country), `segment` (chain segment)]\nTable products, columns = [`productid` (product id), `description` (description)]\nTable transactions_1k, columns = [`transactionid` (transaction id), `date` (date), `time` (time), `customerid` (customer id), `cardid` (card id), `gasstationid` (gas station id), `productid` (product id), `amount` (amount), `price` (price)]\nTable yearmonth, columns = [`customerid` (customer id), `date` (date), `consumption` (consumption)]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "schema_text_with_content": "\nTable customers, columns = [`customerid` (customerid. Example values: [3, 5, 6]), `segment` (client segment. Example values: [SME segment, LAM customers, SME market]), `currency` (currency. Example values: [EUR currency, Euro, currency in EUR])]\nTable gasstations, columns = [`gasstationid` (gas station id. Example values: [44, 45, 46]), `chainid` (chain id. Example values: [13, 6, 23]), `country` (country. Example values: [Czech nation, Czech Republic, Czechia]), `segment` (chain segment. Example values: [budget-friendly gas stations, Premium gas, Other])]\nTable products, columns = [`productid` (product id. Example values: [1, 2, 3]), `description` (description. Example values: [Rucní zadání, Nafta, Special])]\nTable transactions_1k, columns = [`transactionid` (transaction id. Example values: [1, 2, 3]), `date` (date. Example values: [2012-08-24, 2012-08-23, 2012/08/25]), `time` (time. Example values: [09:41:00, 10:03:00, 13:53:00]), `customerid` (customer id. Example values: [31543, 46707, 7654]), `cardid` (card id. Example values: [486621, 550134, 684220]), `gasstationid` (gas station id. Example values: [3704, 656, 741]), `productid` (product id. Example values: [2, 23, 5]), `amount` (amount. Example values: [28, 18, 1]), `price` (price. Example values: [672.64, 430.72, 121.99])]\nTable yearmonth, columns = [`customerid` (customer id. Example values: [35, 38, 44]), `date` (date. Example values: [05/2013, 10/2013, 12/2011]), `consumption` (consumption. Example values: [528.3, 1598.28, 1931.36])]\nforeign keys = [yearmonth.CustomerID = customers.CustomerID]", + "ori_query": "SELECT T2.CustomerID, SUM(T2.Consumption) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'KAM' GROUP BY T2.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1", + "amb_query": "SELECT T2.CustomerID, SUM(T2.Consumption) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment IN ('KAM customers', 'KAM', 'KAM group') GROUP BY T2.CustomerID ORDER BY SUM(T2.Consumption) DESC LIMIT 1" + }, + { + "db_id": "1-10015132-11", + "question": "What player played guard for toronto in 1996-97?", + "evidence": "", + "schema_text_wo_content": "Table 1-10015132-11, columns = [Player, No., Nationality, Position, Years in Toronto, School/Club Team]\n", + "schema_text_with_content": "Table 1-10015132-11, columns = [`Player` (Example values: [antonio lang, voshon lenard, martin lewis]), `No.` (Example values: [21, 2, 32, 44]), `Nationality` (Example values: [united states]), `Position` (Example values: [guard-forward, basketball guard, forward-center]), `Years in Toronto` (Example values: [1999-2000, 2002-03, 1996-97]), `School/Club Team` (Example values: [duke, minnesota, butler cc (ks)])]\n", + "ori_query": "select `player` from `1-10015132-11` where `position` = 'guard' and `years in toronto` = '1996-97'", + "amb_query": "SELECT \"player\" FROM \"1-10015132-11\" WHERE position IN ('guard', 'basketball guard', 'player in guard position') AND \"years in toronto\" = '1996-97'" + }, + { + "db_id": "1-15621965-18", + "question": "WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD?", + "evidence": "", + "schema_text_wo_content": "Table 1-15621965-18, columns = [Player, No., Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 1-15621965-18, columns = [`Player` (Example values: [johnny taylor, reggie theus, carl thomas]), `No.` (Example values: [17.0, 23.0, 24.0]), `Nationality` (Example values: [united states, turkey]), `Position` (Example values: [forward, guard, player in guard position]), `Years in Orlando` (Example values: [1997–1998, 1999–2000, 1989–1990]), `School/Club Team` (Example values: [tennessee-chattanooga, unlv, eastern michigan])]\n", + "ori_query": "select `no.` from `1-15621965-18` where `position` = 'guard' and `school/club team` = 'oklahoma state'", + "amb_query": "SELECT \"no.\" FROM \"1-15621965-18\" WHERE position IN ('guard', 'player in guard position') AND \"school/club team\" = 'oklahoma state'" + }, + { + "db_id": "1-15621965-18", + "question": "WHAT WAS THE NUMBER OF THE ONLY FORWARD-CENTER TO MAKE THE ROSTER?", + "evidence": "", + "schema_text_wo_content": "Table 1-15621965-18, columns = [Player, No., Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 1-15621965-18, columns = [`Player` (Example values: [johnny taylor, reggie theus, carl thomas]), `No.` (Example values: [17.0, 23.0, 24.0]), `Nationality` (Example values: [united states, turkey]), `Position` (Example values: [forward, guard, player in guard position]), `Years in Orlando` (Example values: [1997–1998, 1999–2000, 1989–1990]), `School/Club Team` (Example values: [tennessee-chattanooga, unlv, eastern michigan])]\n", + "ori_query": "select min(`no.`) from `1-15621965-18` where `position` = 'forward-center'", + "amb_query": "SELECT MIN(\"no.\") FROM \"1-15621965-18\" WHERE position IN ('center-forward', 'forward-center')" + }, + { + "db_id": "1-11336756-6", + "question": "How many termini are there that have \"east west\" listed in their direction section, \"none\" listed in their junction section, and have a route name of \"sh 202\"?", + "evidence": "", + "schema_text_wo_content": "Table 1-11336756-6, columns = [Route Name, Direction, Termini, Junctions, Length, Population Area, Remarks]\n", + "schema_text_with_content": "Table 1-11336756-6, columns = [`Route Name` (Example values: [sh 2, sh 4, us 81]), `Direction` (Example values: [south north, direction east west]), `Termini` (Example values: [laredo, texas la salle county, zapata county dimmit county, gateway to the americas int'l bridge i-35]), `Junctions` (Example values: [none, i-35 us 83, us 83]), `Length` (Example values: [miles (km)]), `Population Area` (Example values: [laredo webb, laredo, las lomas laredo]), `Remarks` (Example values: [replaced by us 81, replaced by us 83, replaced by i-35])]\n", + "ori_query": "select count(`termini`) from `1-11336756-6` where `direction` = 'east west' and `junctions` = 'none' and `route name` = 'sh 202'", + "amb_query": "SELECT COUNT(\"termini\") FROM \"1-11336756-6\" WHERE direction IN ('east west', 'direction east west') AND \"junctions\" = 'none' AND \"route name\" = 'sh 202'" + }, + { + "db_id": "1-1342218-17", + "question": "What was the result in the voting district Kentucky 2?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342218-17, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342218-17, columns = [`District` (Example values: [kentucky 1, kentucky district 2, kentucky's 4th voting district]), `Incumbent` (Example values: [noble jones gregory, john a. whitaker, frank chelf]), `Party` (Example values: [democrat, democratic political party, democratic]), `First elected` (Example values: [1936, april 17, 1948 (special), 1944]), `Result` (Example values: [re-elected, lost re-election democratic gain]), `Candidates` (Example values: [noble jones gregory (d) unopposed, john a. whitaker (d) 63.4% mallam lake (r) 36.6%, frank chelf (d) 59.4% stanley jaggers (r) 40.6%])]\n", + "ori_query": "select `result` from `1-1342218-17` where `district` = 'kentucky 2'", + "amb_query": "SELECT \"result\" FROM \"1-1342218-17\" WHERE district IN ('kentucky 2', 'kentucky district 2')" + }, + { + "db_id": "1-1342218-17", + "question": "Which party won in the election in voting district Kentucky 5?", + "evidence": "", + "schema_text_wo_content": "Table 1-1342218-17, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342218-17, columns = [`District` (Example values: [kentucky 1, kentucky district 2, kentucky's 4th voting district]), `Incumbent` (Example values: [noble jones gregory, john a. whitaker, frank chelf]), `Party` (Example values: [democrat, democratic political party, democratic]), `First elected` (Example values: [1936, april 17, 1948 (special), 1944]), `Result` (Example values: [re-elected, lost re-election democratic gain]), `Candidates` (Example values: [noble jones gregory (d) unopposed, john a. whitaker (d) 63.4% mallam lake (r) 36.6%, frank chelf (d) 59.4% stanley jaggers (r) 40.6%])]\n", + "ori_query": "select `party` from `1-1342218-17` where `district` = 'kentucky 5'", + "amb_query": "SELECT \"party\" FROM \"1-1342218-17\" WHERE district IN ('voting district kentucky 5', 'kentucky 5')" + }, + { + "db_id": "1-1342218-17", + "question": "List all candidates in the democratic party where the election had the incumbent Frank Chelf running.", + "evidence": "", + "schema_text_wo_content": "Table 1-1342218-17, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-1342218-17, columns = [`District` (Example values: [kentucky 1, kentucky district 2, kentucky's 4th voting district]), `Incumbent` (Example values: [noble jones gregory, john a. whitaker, frank chelf]), `Party` (Example values: [democrat, democratic political party, democratic]), `First elected` (Example values: [1936, april 17, 1948 (special), 1944]), `Result` (Example values: [re-elected, lost re-election democratic gain]), `Candidates` (Example values: [noble jones gregory (d) unopposed, john a. whitaker (d) 63.4% mallam lake (r) 36.6%, frank chelf (d) 59.4% stanley jaggers (r) 40.6%])]\n", + "ori_query": "select `candidates` from `1-1342218-17` where `party` = 'democratic' and `incumbent` = 'frank chelf'", + "amb_query": "SELECT \"candidates\" FROM \"1-1342218-17\" WHERE party IN ('democrat', 'democratic political party', 'democratic') AND \"incumbent\" = 'frank chelf'" + }, + { + "db_id": "1-1805191-50", + "question": "What district first elected a Democratic incumbent in 1998?", + "evidence": "", + "schema_text_wo_content": "Table 1-1805191-50, columns = [District, Incumbent, Party, First elected, Results, Candidates]\n", + "schema_text_with_content": "Table 1-1805191-50, columns = [`District` (Example values: [wisconsin 1, wisconsin 2, wisconsin 3]), `Incumbent` (Example values: [paul ryan, tammy baldwin, ron kind]), `Party` (Example values: [republican, democratic candidate, democrat]), `First elected` (Example values: [1998.0, 1996.0, 2004.0]), `Results` (Example values: [re-elected]), `Candidates` (Example values: [paul ryan (r) 62.8% jeff thomas (d) 37.2%, tammy baldwin (d) 62.9% dave magnum (r) 37.1%, ron kind (d) 64.9% paul nelson (r) 35.1%])]\n", + "ori_query": "select `district` from `1-1805191-50` where `party` = 'democratic' and `first elected` = 1998", + "amb_query": "SELECT \"district\" FROM \"1-1805191-50\" WHERE party IN ('democratic', 'democratic party', 'democrat', 'democratic candidate') AND \"first elected\" = 1998" + }, + { + "db_id": "1-13636-1", + "question": "what's the turing complete with numeral system being decimal", + "evidence": "", + "schema_text_wo_content": "Table 1-13636-1, columns = [Name, First operational, Numeral system, Computing mechanism, Programming, Turing complete]\n", + "schema_text_with_content": "Table 1-13636-1, columns = [`Name` (Example values: [atanasoff–berry computer (us), colossus mark 1 (uk), colossus mark 2 (uk)]), `First operational` (Example values: [1942, february 1944, june 1944]), `Numeral system` (Example values: [binary, binary floating point, decimal representation]), `Computing mechanism` (Example values: [electronic, electro-mechanical]), `Programming` (Example values: [not programmable—single purpose, program-controlled by patch cables and switches, program-controlled by punched 35mm film stock]), `Turing complete` (Example values: [no, in theory (2011), yes])]\n", + "ori_query": "select `turing complete` from `1-13636-1` where `numeral system` = 'decimal'", + "amb_query": "SELECT \"turing complete\" FROM \"1-13636-1\" WHERE numeral system IN ('decimal representation', 'decimal')" + }, + { + "db_id": "1-14342480-6", + "question": "Name the starter for position being left end", + "evidence": "", + "schema_text_wo_content": "Table 1-14342480-6, columns = [Player, Position, Starter, Touchdowns, Extra points, Field goals, Points]\n", + "schema_text_with_content": "Table 1-14342480-6, columns = [`Player` (Example values: [tom hammond, herb graver, curtis redden]), `Position` (Example values: [fullback, right halfback, left end starter]), `Starter` (Example values: [yes, no]), `Touchdowns` (Example values: [2.0, 1.0]), `Extra points` (Example values: [6.0, 0.0]), `Field goals` (Example values: [1.0, 0.0]), `Points` (Example values: [21.0, 10.0, 5.0])]\n", + "ori_query": "select `starter` from `1-14342480-6` where `position` = 'left end'", + "amb_query": "SELECT \"starter\" FROM \"1-14342480-6\" WHERE position IN ('left end', 'left end starter')" + }, + { + "db_id": "1-14342480-6", + "question": "Name the most extra points for right tackle", + "evidence": "", + "schema_text_wo_content": "Table 1-14342480-6, columns = [Player, Position, Starter, Touchdowns, Extra points, Field goals, Points]\n", + "schema_text_with_content": "Table 1-14342480-6, columns = [`Player` (Example values: [tom hammond, herb graver, curtis redden]), `Position` (Example values: [fullback, right halfback, left end starter]), `Starter` (Example values: [yes, no]), `Touchdowns` (Example values: [2.0, 1.0]), `Extra points` (Example values: [6.0, 0.0]), `Field goals` (Example values: [1.0, 0.0]), `Points` (Example values: [21.0, 10.0, 5.0])]\n", + "ori_query": "select max(`extra points`) from `1-14342480-6` where `position` = 'right tackle'", + "amb_query": "SELECT MAX(\"extra points\") FROM \"1-14342480-6\" WHERE position IN ('right tackle', 'rt')" + }, + { + "db_id": "1-1506950-4", + "question": "What players finished 2nd?", + "evidence": "", + "schema_text_wo_content": "Table 1-1506950-4, columns = [Date, Tournament, Player, Country, Rounds, Score, To par, Finish]\n", + "schema_text_with_content": "Table 1-1506950-4, columns = [`Date` (Example values: [apr 13, 1997, jul 23, 2000, aug 20, 2000]), `Tournament` (Example values: [masters tournament, the open championship, pga championship]), `Player` (Example values: [tiger woods, bob may]), `Country` (Example values: [united states]), `Rounds` (Example values: [70-66-65-69, 67-66-67-69, 66-67-70-67]), `Score` (Example values: [270.0, 269.0]), `To par` (Example values: [–18, –19]), `Finish` (Example values: [won, 2nd place])]\n", + "ori_query": "select `player` from `1-1506950-4` where `finish` = '2nd'", + "amb_query": "SELECT \"player\" FROM \"1-1506950-4\" WHERE finish IN ('2nd place', '2nd')" + }, + { + "db_id": "2-15468818-2", + "question": "What is the name of the home team with a round of 2nd and Vitória da Conquista as the way team?", + "evidence": "", + "schema_text_wo_content": "Table 2-15468818-2, columns = [Round, Date, Home team, Score, Away team]\n", + "schema_text_with_content": "Table 2-15468818-2, columns = [`Round` (Example values: [1st, runner-up, finished second]), `Date` (Example values: [april 6, 2008, april 13, 2008, april 20, 2008]), `Home team` (Example values: [vitória da conquista, itabuna, bahia]), `Score` (Example values: [0 - 0, 0 - 1, 2 - 1]), `Away team` (Example values: [bahia, vitória, itabuna])]\n", + "ori_query": "select `home team` from `2-15468818-2` where `round` = '2nd' and `away team` = 'vitória da conquista'", + "amb_query": "SELECT \"home team\" FROM \"2-15468818-2\" WHERE round IN ('finished second', '2nd', 'runner-up') AND \"away team\" = 'vitória da conquista'" + }, + { + "db_id": "2-11099297-12", + "question": "Name the total number of swing to gain with rank more than 1 and LD's place 2007 of 2nd for labour winning party of 2007", + "evidence": "", + "schema_text_wo_content": "Table 2-11099297-12, columns = [Rank, Constituency, Winning party 2007, Swing to gain, LD's place 2007, Result]\n", + "schema_text_with_content": "Table 2-11099297-12, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Constituency` (Example values: [newport east, swansea west, wrexham]), `Winning party 2007` (Example values: [labour, plaid cymru]), `Swing to gain` (Example values: [2.2, 3.3, 6.05]), `LD's place 2007` (Example values: [2nd place, 4th]), `Result` (Example values: [labour hold, plaid cymru hold])]\n", + "ori_query": "select count(`swing to gain`) from `2-11099297-12` where `rank` > 1 and `ld's place 2007` = '2nd' and `winning party 2007` = 'labour'", + "amb_query": "SELECT COUNT(\"swing to gain\") FROM \"2-11099297-12\" WHERE \"rank\" > 1 AND ld's place 2007 IN ('2nd place', '2nd') AND \"winning party 2007\" = 'labour'" + }, + { + "db_id": "1-15736385-1", + "question": "On what date was the race at Nazareth?", + "evidence": "", + "schema_text_wo_content": "Table 1-15736385-1, columns = [Season, Date, Location, Driver, Chassis, Engine, Team]\n", + "schema_text_with_content": "Table 1-15736385-1, columns = [`Season` (Example values: [1987.0, 1988.0, 1989.0]), `Date` (Example values: [october 31, november 5, october 14]), `Location` (Example values: [tamiami park, laguna seca, nazareth city]), `Driver` (Example values: [bobby rahal, michael andretti, al unser, jr.]), `Chassis` (Example values: [lola, penske]), `Engine` (Example values: [cosworth, chevrolet]), `Team` (Example values: [truesports, kraco racing, galles racing])]\n", + "ori_query": "select `date` from `1-15736385-1` where `location` = 'nazareth'", + "amb_query": "SELECT \"date\" FROM \"1-15736385-1\" WHERE location IN ('nazareth', 'nazareth city')" + }, + { + "db_id": "1-15887683-15", + "question": "How many television service are in italian and n°is greater than 856.0?", + "evidence": "", + "schema_text_wo_content": "Table 1-15887683-15, columns = [N°, Television service, Country, Language, Content, DAR, HDTV, Package/Option]\n", + "schema_text_with_content": "Table 1-15887683-15, columns = [`N°` (Example values: [850.0, 851.0, 852.0]), `Television service` (Example values: [telepace, daystar television network, padre pio tv]), `Country` (Example values: [italy, united kingdom, germany]), `Language` (Example values: [italian, english language, italian speaking]), `Content` (Example values: [religione]), `DAR` (Example values: [16:9, 4:3]), `HDTV` (Example values: [no]), `Package/Option` (Example values: [no ( fta )])]\n", + "ori_query": "select `television service` from `1-15887683-15` where `language` = 'italian' and `n°` > 856.0", + "amb_query": "SELECT \"television service\" FROM \"1-15887683-15\" WHERE language IN ('italian speaking', 'italian') AND \"n°\" > 856.0" + }, + { + "db_id": "1-15887683-15", + "question": "What television service is in italy and is in english?", + "evidence": "", + "schema_text_wo_content": "Table 1-15887683-15, columns = [N°, Television service, Country, Language, Content, DAR, HDTV, Package/Option]\n", + "schema_text_with_content": "Table 1-15887683-15, columns = [`N°` (Example values: [850.0, 851.0, 852.0]), `Television service` (Example values: [telepace, daystar television network, padre pio tv]), `Country` (Example values: [italy, united kingdom, germany]), `Language` (Example values: [italian, english language, italian speaking]), `Content` (Example values: [religione]), `DAR` (Example values: [16:9, 4:3]), `HDTV` (Example values: [no]), `Package/Option` (Example values: [no ( fta )])]\n", + "ori_query": "select `television service` from `1-15887683-15` where `country` = 'italy' and `language` = 'english'", + "amb_query": "SELECT \"television service\" FROM \"1-15887683-15\" WHERE \"country\" = 'italy' AND language IN ('english language', 'english')" + }, + { + "db_id": "1-1805191-14", + "question": "Who were the candidates when the first elected was a republican in 1998? ", + "evidence": "", + "schema_text_wo_content": "Table 1-1805191-14, columns = [District, Incumbent, Party, First elected, Results, Candidates]\n", + "schema_text_with_content": "Table 1-1805191-14, columns = [`District` (Example values: [illinois 1, illinois 3, illinois 4]), `Incumbent` (Example values: [bobby rush, dan lipinski, luis gutierrez]), `Party` (Example values: [democratic, gop, republican party]), `First elected` (Example values: [1992.0, 2004.0, 2002.0]), `Results` (Example values: [re-elected, retired republican hold, retired democratic hold]), `Candidates` (Example values: [bobby rush (d) 84.1% jason tabour (r) 15.9%, dan lipinski (d) 77.1% ray wardingly (r) 22.9%, luis gutierrez (d) 85.8% ann melichar (r) 14.2%])]\n", + "ori_query": "select `candidates` from `1-1805191-14` where `first elected` = 1998 and `party` = 'republican'", + "amb_query": "SELECT \"candidates\" FROM \"1-1805191-14\" WHERE \"first elected\" = 1998 AND party IN ('republican', 'gop', 'republican party')" + }, + { + "db_id": "1-13833770-3", + "question": "what's the district with party being republican and elected being 1998", + "evidence": "", + "schema_text_wo_content": "Table 1-13833770-3, columns = [District, Incumbent, Party, Elected, Status, Opponent]\n", + "schema_text_with_content": "Table 1-13833770-3, columns = [`District` (Example values: [1.0, 2.0, 3.0]), `Incumbent` (Example values: [tim bishop, steve israel, peter king]), `Party` (Example values: [democrat, gop, republican political party]), `Elected` (Example values: [2002.0, 2000.0, 1992.0]), `Status` (Example values: [reelected, defeated]), `Opponent` (Example values: [tim bishop (d) 62.2% italo zanzi (r) 37.8%, steve israel (d) 70.4%, peter king (r) 56.0% david mejias (d) 44.0%])]\n", + "ori_query": "select `district` from `1-13833770-3` where `party` = 'republican' and `elected` = 1998", + "amb_query": "SELECT \"district\" FROM \"1-13833770-3\" WHERE party IN ('republican', 'republican political party', 'gop') AND \"elected\" = 1998" + }, + { + "db_id": "1-18183850-12", + "question": "What was the game edition when they played on the clay (i) surface and the outcome was a winner?", + "evidence": "", + "schema_text_wo_content": "Table 1-18183850-12, columns = [Outcome, Edition, Round, Opponent Team, Surface, Opponent, Score]\n", + "schema_text_with_content": "Table 1-18183850-12, columns = [`Outcome` (Example values: [loser, champion, first place]), `Edition` (Example values: [2010.0, 2011.0, 2012.0]), `Round` (Example values: [world group playoffs, world group ii, world group]), `Opponent Team` (Example values: [slovakia, canada, belgium]), `Surface` (Example values: [clay (i), hard (i)]), `Opponent` (Example values: [daniela hantuchová, magdaléna rybáriková, aleksandra wozniak]), `Score` (Example values: [6–2, 6–2, 6–1, 7–6 (7–4), 6–4, 7–5])]\n", + "ori_query": "select `edition` from `1-18183850-12` where `surface` = 'clay (i)' and `outcome` = 'winner'", + "amb_query": "SELECT \"edition\" FROM \"1-18183850-12\" WHERE \"surface\" = 'clay (i)' AND outcome IN ('first place', 'winner', 'champion')" + }, + { + "db_id": "1-2151643-3", + "question": "What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface?", + "evidence": "", + "schema_text_wo_content": "Table 1-2151643-3, columns = [Outcome, Year, Championship, Surface, Partner, Opponents, Score]\n", + "schema_text_with_content": "Table 1-2151643-3, columns = [`Outcome` (Example values: [first place, victorious, runner-up]), `Year` (Example values: [1979.0, 1980.0, 1982.0]), `Championship` (Example values: [french open, us open, wimbledon]), `Surface` (Example values: [clay type, hard, grass court]), `Partner` (Example values: [bob hewitt, marty riessen, john lloyd]), `Opponents` (Example values: [virginia ruzici ion ţiriac, betty stöve frew mcmillan, claudia monteiro cassio motta]), `Score` (Example values: [6–3, 2–6, 6–3, 7–5, 6–2, 6–2, 7–6])]\n", + "ori_query": "select count(`opponents`) from `1-2151643-3` where `outcome` = 'winner' and `partner` = 'john lloyd' and `surface` = 'clay'", + "amb_query": "SELECT COUNT(\"opponents\") FROM \"1-2151643-3\" WHERE outcome IN ('first place', 'winner', 'victorious') AND \"partner\" = 'john lloyd' AND surface IN ('clay', 'clay type')" + }, + { + "db_id": "1-2151643-3", + "question": "Who were the opponents that led to an outcome of winner on a grass surface?", + "evidence": "", + "schema_text_wo_content": "Table 1-2151643-3, columns = [Outcome, Year, Championship, Surface, Partner, Opponents, Score]\n", + "schema_text_with_content": "Table 1-2151643-3, columns = [`Outcome` (Example values: [first place, victorious, runner-up]), `Year` (Example values: [1979.0, 1980.0, 1982.0]), `Championship` (Example values: [french open, us open, wimbledon]), `Surface` (Example values: [clay type, hard, grass court]), `Partner` (Example values: [bob hewitt, marty riessen, john lloyd]), `Opponents` (Example values: [virginia ruzici ion ţiriac, betty stöve frew mcmillan, claudia monteiro cassio motta]), `Score` (Example values: [6–3, 2–6, 6–3, 7–5, 6–2, 6–2, 7–6])]\n", + "ori_query": "select `opponents` from `1-2151643-3` where `outcome` = 'winner' and `surface` = 'grass'", + "amb_query": "SELECT \"opponents\" FROM \"1-2151643-3\" WHERE outcome IN ('first place', 'winner', 'victorious') AND surface IN ('grass court', 'grass', 'lawn')" + }, + { + "db_id": "1-18207285-2", + "question": "How many opponents played 1 game with a result win?", + "evidence": "", + "schema_text_wo_content": "Table 1-18207285-2, columns = [Game, Date, Opponent, Result, Raiders points, Opponents, Raiders first downs, Record, Attendance]\n", + "schema_text_with_content": "Table 1-18207285-2, columns = [`Game` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [sept. 22, sept. 28, oct. 5]), `Opponent` (Example values: [at miami dolphins, at baltimore colts, at san diego chargers]), `Result` (Example values: [winning result, win, loss]), `Raiders points` (Example values: [31.0, 6.0, 10.0]), `Opponents` (Example values: [21.0, 20.0, 0.0]), `Raiders first downs` (Example values: [17.0, 18.0, 23.0]), `Record` (Example values: [1–0, 2–0, 3–0]), `Attendance` (Example values: [78744.0, 40657.0, 31095.0])]\n", + "ori_query": "select max(`opponents`) from `1-18207285-2` where `result` = 'win' and `game` = 1", + "amb_query": "SELECT MAX(\"opponents\") FROM \"1-18207285-2\" WHERE result IN ('win', 'winning result') AND \"game\" = 1" + }, + { + "db_id": "1-1857216-1", + "question": "What is the top speed of a 4-speed automatic with production in 2002-2005?", + "evidence": "", + "schema_text_wo_content": "Table 1-1857216-1, columns = [Engine, Production, Transmission, Power, Torque, Acceleration 0–100km/h (0–62mph), Top Speed]\n", + "schema_text_with_content": "Table 1-1857216-1, columns = [`Engine` (Example values: [1.6l, 2.0l, 2.7l]), `Production` (Example values: [2002-2006, 2002-2005, 2006-2009]), `Transmission` (Example values: [5-speed manual transmission, 5-speed manual type, 4-speed automatic transmission]), `Power` (Example values: [ps (kw; bhp)]), `Torque` (Example values: [n·m (lb·ft)]), `Acceleration 0–100km/h (0–62mph)` (Example values: [11.6 s, 9.2 s, 10.5 s]), `Top Speed` (Example values: [km/h (mph)])]\n", + "ori_query": "select `top speed` from `1-1857216-1` where `transmission` = '4-speed automatic' and `production` = '2002-2005'", + "amb_query": "SELECT \"top speed\" FROM \"1-1857216-1\" WHERE transmission IN ('4-speed automatic', '4-speed automatic transmission') AND \"production\" = '2002-2005'" + }, + { + "db_id": "1-1857216-1", + "question": "What is the top speed of a 5-speed manual transmission produced in 2006-2009?", + "evidence": "", + "schema_text_wo_content": "Table 1-1857216-1, columns = [Engine, Production, Transmission, Power, Torque, Acceleration 0–100km/h (0–62mph), Top Speed]\n", + "schema_text_with_content": "Table 1-1857216-1, columns = [`Engine` (Example values: [1.6l, 2.0l, 2.7l]), `Production` (Example values: [2002-2006, 2002-2005, 2006-2009]), `Transmission` (Example values: [5-speed manual transmission, 5-speed manual type, 4-speed automatic transmission]), `Power` (Example values: [ps (kw; bhp)]), `Torque` (Example values: [n·m (lb·ft)]), `Acceleration 0–100km/h (0–62mph)` (Example values: [11.6 s, 9.2 s, 10.5 s]), `Top Speed` (Example values: [km/h (mph)])]\n", + "ori_query": "select `top speed` from `1-1857216-1` where `production` = '2006-2009' and `transmission` = '5-speed manual'", + "amb_query": "SELECT \"top speed\" FROM \"1-1857216-1\" WHERE \"production\" = '2006-2009' AND transmission IN ('5-speed manual', '5-speed manual type', '5-speed manual transmission')" + }, + { + "db_id": "1-19753079-35", + "question": "Name the first elected for re-elected and brian higgins", + "evidence": "", + "schema_text_wo_content": "Table 1-19753079-35, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-19753079-35, columns = [`District` (Example values: [new york 1, new york 3, new york 4]), `Incumbent` (Example values: [tim bishop, peter king, carolyn mccarthy]), `Party` (Example values: [democratic, republican]), `First elected` (Example values: [2002.0, 1992.0, 1996.0]), `Result` (Example values: [incumbent re-elected, re-elected official, re-elected]), `Candidates` (Example values: [tim bishop (d) 50.2% randy altschuler (r) 49.8%, peter king (r) 72.0% howard kudler (d) 28.0%, carolyn mccarthy (d) 53.6% fran becker (r) 46.4%])]\n", + "ori_query": "select `first elected` from `1-19753079-35` where `result` = 're-elected' and `incumbent` = 'brian higgins'", + "amb_query": "SELECT \"first elected\" FROM \"1-19753079-35\" WHERE result IN ('incumbent re-elected', 're-elected official', 're-elected') AND \"incumbent\" = 'brian higgins'" + }, + { + "db_id": "1-20549371-3", + "question": "What is the epa highway fuel economy for an electric suv?", + "evidence": "", + "schema_text_wo_content": "Table 1-20549371-3, columns = [Vehicle, Model year, Type of powertrain, Operating mode, EPA rated Combined fuel economy, EPA rated City fuel economy, EPA rated Highway fuel economy, Cost to drive 25 miles, Annual fuel cost, Notes]\n", + "schema_text_with_content": "Table 1-20549371-3, columns = [`Vehicle` (Example values: [chevrolet spark ev, honda fit ev, fiat 500e]), `Model year` (Example values: [2014, 2013, 2012-13]), `Type of powertrain` (Example values: [electric car, electric vehicle suv]), `Operating mode` (Example values: [all-electric]), `EPA rated Combined fuel economy` (Example values: [119 mpg-e (28kw-hrs/100mi), 118 mpg-e (29kw-hrs/100mi), 116 mpg-e (29kw-hrs/100mi)]), `EPA rated City fuel economy` (Example values: [128 mpg-e, 132 mpg-e (26kw-hrs/100mi), 122 mpg-e]), `EPA rated Highway fuel economy` (Example values: [109 mpg-e, 105 mpg-e (32kw-hrs/100mi), 108 mpg-e]), `Cost to drive 25 miles` (Example values: [n.a., $0.87, $0.90]), `Annual fuel cost` (Example values: [$500, $550, $600]), `Notes` (Example values: [see (1), see (1) model with 60 kwh battery pack, see (1) model with 85 kwh battery pack])]\n", + "ori_query": "select `epa rated highway fuel economy` from `1-20549371-3` where `type of powertrain` = 'electric suv'", + "amb_query": "SELECT \"epa rated highway fuel economy\" FROM \"1-20549371-3\" WHERE type of powertrain IN ('electric suv', 'electric vehicle suv')" + }, + { + "db_id": "1-21907770-4", + "question": "How many times was the opponent country India? ", + "evidence": "", + "schema_text_wo_content": "Table 1-21907770-4, columns = [Runs (Balls), Wicket, Partnerships, Country, Versus, Venue, Date]\n", + "schema_text_with_content": "Table 1-21907770-4, columns = [`Runs (Balls)` (Example values: [262 (210), 139* (140), 134 (192)]), `Wicket` (Example values: [2nd, 6th, 1st]), `Partnerships` (Example values: [suzie bates / haidee tiffen, sara mcglashan / nicola browne, sarah taylor / caroline atkins]), `Country` (Example values: [new zealand, england, australia]), `Versus` (Example values: [pakistan, south african team, west indies]), `Venue` (Example values: [sydney, bowral]), `Date` (Example values: [19 march 2009, 12 march 2009, 17 march 2009])]\n", + "ori_query": "select count(`country`) from `1-21907770-4` where `versus` = 'india'", + "amb_query": "SELECT COUNT(\"country\") FROM \"1-21907770-4\" WHERE versus IN ('india', 'republic of india')" + }, + { + "db_id": "1-21907770-4", + "question": "What are the dates where the versus team is South Africa?", + "evidence": "", + "schema_text_wo_content": "Table 1-21907770-4, columns = [Runs (Balls), Wicket, Partnerships, Country, Versus, Venue, Date]\n", + "schema_text_with_content": "Table 1-21907770-4, columns = [`Runs (Balls)` (Example values: [262 (210), 139* (140), 134 (192)]), `Wicket` (Example values: [2nd, 6th, 1st]), `Partnerships` (Example values: [suzie bates / haidee tiffen, sara mcglashan / nicola browne, sarah taylor / caroline atkins]), `Country` (Example values: [new zealand, england, australia]), `Versus` (Example values: [pakistan, south african team, west indies]), `Venue` (Example values: [sydney, bowral]), `Date` (Example values: [19 march 2009, 12 march 2009, 17 march 2009])]\n", + "ori_query": "select `date` from `1-21907770-4` where `versus` = 'south africa'", + "amb_query": "SELECT \"date\" FROM \"1-21907770-4\" WHERE versus IN ('south africa', 'south african team')" + }, + { + "db_id": "1-2562572-11", + "question": "What is the ethnic majority in the only town?", + "evidence": "", + "schema_text_wo_content": "Table 1-2562572-11, columns = [Settlement, Cyrillic Name Other Names, Type, Population (2011), Largest ethnic group (2002), Dominant religion (2002)]\n", + "schema_text_with_content": "Table 1-2562572-11, columns = [`Settlement` (Example values: [bač, bačko novo selo, bođani]), `Cyrillic Name Other Names` (Example values: [бач, бачко ново село, бођани]), `Type` (Example values: [locality, village]), `Population (2011)` (Example values: [5399.0, 1072.0, 952.0]), `Largest ethnic group (2002)` (Example values: [serbs, slovaks]), `Dominant religion (2002)` (Example values: [orthodox christianity, catholic christianity])]\n", + "ori_query": "select `largest ethnic group (2002)` from `1-2562572-11` where `type` = 'town'", + "amb_query": "SELECT \"largest ethnic group (2002)\" FROM \"1-2562572-11\" WHERE type IN ('town', 'locality')" + }, + { + "db_id": "2-171222-1", + "question": "What is the area (in km2) for the town of lamèque, with a population of less than 4,351?", + "evidence": "", + "schema_text_wo_content": "Table 2-171222-1, columns = [Official Name, Status, Area km 2, Population, Census Ranking]\n", + "schema_text_with_content": "Table 2-171222-1, columns = [`Official Name` (Example values: [bathurst, tracadie-sheila, beresford]), `Status` (Example values: [city, locality, settlement]), `Area km 2` (Example values: [91.55, 24.64, 19.2]), `Population` (Example values: [12,275, 4,933, 4,351]), `Census Ranking` (Example values: [327 of 5,008, 717 of 5,008, 775 of 5,008])]\n", + "ori_query": "select avg(`area km 2`) from `2-171222-1` where `status` = 'town' and `population` < 4,351 and `official name` = 'lamèque'", + "amb_query": "SELECT \"largest ethnic group (2002)\" FROM \"1-2562572-11\" WHERE type IN ('town', 'locality')" + }, + { + "db_id": "2-171222-1", + "question": "What is the area (in km2) for the community that has a status of village, a census ranking of 2,471 of 5,008, and a population of less than 748?", + "evidence": "", + "schema_text_wo_content": "Table 2-171222-1, columns = [Official Name, Status, Area km 2, Population, Census Ranking]\n", + "schema_text_with_content": "Table 2-171222-1, columns = [`Official Name` (Example values: [bathurst, tracadie-sheila, beresford]), `Status` (Example values: [city, locality, settlement]), `Area km 2` (Example values: [91.55, 24.64, 19.2]), `Population` (Example values: [12,275, 4,933, 4,351]), `Census Ranking` (Example values: [327 of 5,008, 717 of 5,008, 775 of 5,008])]\n", + "ori_query": "select sum(`area km 2`) from `2-171222-1` where `status` = 'village' and `census ranking` = '2,471 of 5,008' and `population` < 748", + "amb_query": "SELECT SUM(\"area km 2\") FROM \"2-171222-1\" WHERE status IN ('village', 'settlement', 'hamlet') AND \"census ranking\" = '2,471 of 5,008' AND \"population\" < 748" + }, + { + "db_id": "2-171222-1", + "question": "What is the area (in km2) for the village of Paquetville, with a population over 706?", + "evidence": "", + "schema_text_wo_content": "Table 2-171222-1, columns = [Official Name, Status, Area km 2, Population, Census Ranking]\n", + "schema_text_with_content": "Table 2-171222-1, columns = [`Official Name` (Example values: [bathurst, tracadie-sheila, beresford]), `Status` (Example values: [city, locality, settlement]), `Area km 2` (Example values: [91.55, 24.64, 19.2]), `Population` (Example values: [12,275, 4,933, 4,351]), `Census Ranking` (Example values: [327 of 5,008, 717 of 5,008, 775 of 5,008])]\n", + "ori_query": "select avg(`area km 2`) from `2-171222-1` where `status` = 'village' and `official name` = 'paquetville' and `population` > 706", + "amb_query": "SELECT AVG(\"area km 2\") FROM \"2-171222-1\" WHERE status IN ('village', 'settlement', 'hamlet') AND \"official name\" = 'paquetville' AND \"population\" > 706" + }, + { + "db_id": "1-26387382-1", + "question": "What farm has a capacity of 70 and is operational?", + "evidence": "", + "schema_text_wo_content": "Table 1-26387382-1, columns = [Name, Turbines, Capacity (MW), Power (MW·hr/yr), Location (county), Year Operational, Status]\n", + "schema_text_with_content": "Table 1-26387382-1, columns = [`Name` (Example values: [allegheny ridge wind farm, armenia mountain wind farm, bear creek wind power project]), `Turbines` (Example values: [40, 67, 12]), `Capacity (MW)` (Example values: [80, 101, 24]), `Power (MW·hr/yr)` (Example values: [210,240, unknown, 70,000]), `Location (county)` (Example values: [blair and cambria, tioga and bradford, luzerne]), `Year Operational` (Example values: [2007.0, 2010.0, 2006.0]), `Status` (Example values: [functioning, currently operational, planned])]\n", + "ori_query": "select `name` from `1-26387382-1` where `capacity (mw)` = '70' and `status` = 'operational'", + "amb_query": "SELECT \"name\" FROM \"1-26387382-1\" WHERE \"capacity (mw)\" = '70' AND status IN ('currently operational', 'in operation', 'functioning', 'operational status', 'operational')" + }, + { + "db_id": "1-2668416-7", + "question": "What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?", + "evidence": "", + "schema_text_wo_content": "Table 1-2668416-7, columns = [District, Incumbent, Party, First elected, Result, Candidates]\n", + "schema_text_with_content": "Table 1-2668416-7, columns = [`District` (Example values: [maryland 1, maryland 2, maryland 3]), `Incumbent` (Example values: [george dent, richard sprigg, jr., william craik]), `Party` (Example values: [federalist political party, democratic-republican, federalist group]), `First elected` (Example values: [1792, 1796 (special)]), `Result` (Example values: [re-elected]), `Candidates` (Example values: [george dent (f) 99.7% philip key 0.3%, richard sprigg, jr. (dr) 100%, william craik (f) 51.0% benjamin edwards 49.0%])]\n", + "ori_query": "select `district` from `1-2668416-7` where `party` = 'federalist' and `candidates` = 'william craik (f) 51.0% benjamin edwards 49.0%'", + "amb_query": "SELECT \"district\" FROM \"1-2668416-7\" WHERE party IN ('federalist group', 'federalist', 'federalist political party') AND \"candidates\" = 'william craik (f) 51.0% benjamin edwards 49.0%'" + }, + { + "db_id": "2-10166535-9", + "question": "What are the bore & stroke specifications for an engine with 4-barrel carburetor and VIN code of A?", + "evidence": "", + "schema_text_wo_content": "Table 2-10166535-9, columns = [Engine, Horsepower, Torque, Carburetor, Compression Ratio, Bore & Stroke, VIN Code]\n", + "schema_text_with_content": "Table 2-10166535-9, columns = [`Engine` (Example values: [351-2v windsor v8, 351-2v modified v8, 400-2v 335 series v8]), `Horsepower` (Example values: [hp (kw) @ 3400 rpm, hp (kw) @ 3800 rpm]), `Torque` (Example values: [lb·ft (n·m) @ 1800 rpm, lb·ft (n·m) @ 1600 rpm]), `Carburetor` (Example values: [2-barrel, four-barrel]), `Compression Ratio` (Example values: [8.00:1]), `Bore & Stroke` (Example values: [4.00\" x 3.50\", 4.00\" x 4.00\", 4.36\" x 3.85\"]), `VIN Code` (Example values: [h, s, a])]\n", + "ori_query": "select `bore & stroke` from `2-10166535-9` where `carburetor` = '4-barrel' and `vin code` = 'a'", + "amb_query": "SELECT \"bore & stroke\" FROM \"2-10166535-9\" WHERE carburetor IN ('four-barrel', '4-barrel') AND \"vin code\" = 'a'" + }, + { + "db_id": "2-11801649-17", + "question": "What is the position of the player from round 2 from Sweden?", + "evidence": "", + "schema_text_wo_content": "Table 2-11801649-17, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-11801649-17, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [lars eller, ian cole, david perron]), `Position` (Example values: [c, d, lw]), `Nationality` (Example values: [danish, united states, north america, canada]), `College/Junior/Club Team (League)` (Example values: [frölunda hc ( swedish elite league ), us national team development program ( nahl ), lewiston maineiacs ( qmjhl )])]\n", + "ori_query": "select `position` from `2-11801649-17` where `round` = 2 and `nationality` = 'sweden'", + "amb_query": "SELECT \"position\" FROM \"2-11801649-17\" WHERE \"round\" = 2 AND nationality IN ('sweden', 'swedish')" + }, + { + "db_id": "2-11801649-17", + "question": "What is the highest round of Ian Cole, who played position d from the United States?", + "evidence": "", + "schema_text_wo_content": "Table 2-11801649-17, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-11801649-17, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [lars eller, ian cole, david perron]), `Position` (Example values: [c, d, lw]), `Nationality` (Example values: [danish, united states, north america, canada]), `College/Junior/Club Team (League)` (Example values: [frölunda hc ( swedish elite league ), us national team development program ( nahl ), lewiston maineiacs ( qmjhl )])]\n", + "ori_query": "select max(`round`) from `2-11801649-17` where `position` = 'd' and `nationality` = 'united states' and `player` = 'ian cole'", + "amb_query": "SELECT MAX(\"round\") FROM \"2-11801649-17\" WHERE \"position\" = 'd' AND nationality IN ('united states, north america', 'united states') AND \"player\" = 'ian cole'" + }, + { + "db_id": "2-11801649-17", + "question": "Who is the player from Denmark who plays position c?", + "evidence": "", + "schema_text_wo_content": "Table 2-11801649-17, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-11801649-17, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [lars eller, ian cole, david perron]), `Position` (Example values: [c, d, lw]), `Nationality` (Example values: [danish, united states, north america, canada]), `College/Junior/Club Team (League)` (Example values: [frölunda hc ( swedish elite league ), us national team development program ( nahl ), lewiston maineiacs ( qmjhl )])]\n", + "ori_query": "select `player` from `2-11801649-17` where `position` = 'c' and `nationality` = 'denmark'", + "amb_query": "SELECT \"player\" FROM \"2-11801649-17\" WHERE \"position\" = 'c' AND nationality IN ('danish', 'denmark')" + }, + { + "db_id": "2-10581768-2", + "question": "Which public college has a nickname of The Grenadiers?", + "evidence": "", + "schema_text_wo_content": "Table 2-10581768-2, columns = [Institution, Nickname, Location, Founded, Type, Enrollment]\n", + "schema_text_with_content": "Table 2-10581768-2, columns = [`Institution` (Example values: [alice lloyd college, asbury university, berea college]), `Nickname` (Example values: [eagles, mountaineers, bearcats]), `Location` (Example values: [pippa passes, kentucky, wilmore, kentucky, berea, kentucky]), `Founded` (Example values: [1923.0, 1890.0, 1855.0]), `Type` (Example values: [privately funded, private, private college]), `Enrollment` (Example values: [600.0, 1,300, 1,514])]\n", + "ori_query": "select `institution` from `2-10581768-2` where `type` = 'public' and `nickname` = 'grenadiers'", + "amb_query": "SELECT \"institution\" FROM \"2-10581768-2\" WHERE type IN ('public', 'public university') AND \"nickname\" = 'grenadiers'" + }, + { + "db_id": "2-10581768-2", + "question": "Which of the private colleges is the oldest, and whose nickname is the Mountaineers?", + "evidence": "", + "schema_text_wo_content": "Table 2-10581768-2, columns = [Institution, Nickname, Location, Founded, Type, Enrollment]\n", + "schema_text_with_content": "Table 2-10581768-2, columns = [`Institution` (Example values: [alice lloyd college, asbury university, berea college]), `Nickname` (Example values: [eagles, mountaineers, bearcats]), `Location` (Example values: [pippa passes, kentucky, wilmore, kentucky, berea, kentucky]), `Founded` (Example values: [1923.0, 1890.0, 1855.0]), `Type` (Example values: [privately funded, private, private college]), `Enrollment` (Example values: [600.0, 1,300, 1,514])]\n", + "ori_query": "select min(`founded`) from `2-10581768-2` where `type` = 'private' and `nickname` = 'mountaineers'", + "amb_query": "SELECT MIN(\"founded\") FROM \"2-10581768-2\" WHERE type IN ('private', 'private college', 'privately funded', 'private university') AND \"nickname\" = 'mountaineers'" + }, + { + "db_id": "2-10538989-2", + "question": "What label is associated with the United Kingdom and the chem036 catalog?", + "evidence": "", + "schema_text_wo_content": "Table 2-10538989-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-10538989-2, columns = [`Region` (Example values: [england, scotland, wales, and northern ireland, united states, australia , new zealand]), `Date` (Example values: [18 october 1999, 18 august 1998, 1999]), `Label` (Example values: [chemikal underground, matador, spunk]), `Format` (Example values: [promo cd, cd, 12\"]), `Catalog` (Example values: [pchem036cd, chem036cd, chem036])]\n", + "ori_query": "select `label` from `2-10538989-2` where `region` = 'united kingdom' and `catalog` = 'chem036'", + "amb_query": "SELECT \"label\" FROM \"2-10538989-2\" WHERE region IN ('england, scotland, wales, and northern ireland', 'united kingdom') AND \"catalog\" = 'chem036'" + }, + { + "db_id": "2-10526612-1", + "question": "What year has the vehicle of open wheel and a racing series of formula one with a Nation of citizenship in Germany.", + "evidence": "", + "schema_text_wo_content": "Table 2-10526612-1, columns = [Year, Driver, Nation of citizenship, Racing series, Type of vehicle]\n", + "schema_text_with_content": "Table 2-10526612-1, columns = [`Year` (Example values: [1993.0, 1994.0, 1995.0]), `Driver` (Example values: [nigel mansell, al unser, jr., jeff gordon]), `Nation of citizenship` (Example values: [united kingdom, united states, germany]), `Racing series` (Example values: [formula one, cart, nascar]), `Type of vehicle` (Example values: [open wheel, stock car])]\n", + "ori_query": "select `year` from `2-10526612-1` where `type of vehicle` = 'open wheel' and `racing series` = 'formula one' and `nation of citizenship` = 'germany'", + "amb_query": "SELECT \"year\" FROM \"2-10526612-1\" WHERE \"type of vehicle\" = 'open wheel' AND \"racing series\" = 'formula one' AND nation of citizenship IN ('germany', 'germany, europe')" + }, + { + "db_id": "2-15062421-1", + "question": "Which Floors have a Location of ljubljana, and a Name of tr3?", + "evidence": "", + "schema_text_wo_content": "Table 2-15062421-1, columns = [Rank, Name, Location, Height Metres / feet, Floors]\n", + "schema_text_with_content": "Table 2-15062421-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [crystal palace, world trade center ljubljana, tivolska 50]), `Location` (Example values: [ljubljana city, ljubljana municipality, ljubljana, the capital]), `Height Metres / feet` (Example values: [metres (ft)]), `Floors` (Example values: [20, 18, 15])]\n", + "ori_query": "select `floors` from `2-15062421-1` where `location` = 'ljubljana' and `name` = 'tr3'", + "amb_query": "SELECT \"floors\" FROM \"2-15062421-1\" WHERE location IN ('ljubljana city', 'ljubljana', 'ljubljana, the capital', 'capital of slovenia', 'ljubljana municipality') AND \"name\" = 'tr3'" + }, + { + "db_id": "2-15062421-1", + "question": "Which Name has a Location of ljubljana?", + "evidence": "", + "schema_text_wo_content": "Table 2-15062421-1, columns = [Rank, Name, Location, Height Metres / feet, Floors]\n", + "schema_text_with_content": "Table 2-15062421-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [crystal palace, world trade center ljubljana, tivolska 50]), `Location` (Example values: [ljubljana city, ljubljana municipality, ljubljana, the capital]), `Height Metres / feet` (Example values: [metres (ft)]), `Floors` (Example values: [20, 18, 15])]\n", + "ori_query": "select `name` from `2-15062421-1` where `location` = 'ljubljana'", + "amb_query": "SELECT \"name\" FROM \"2-15062421-1\" WHERE location IN ('ljubljana city', 'ljubljana', 'ljubljana, the capital', 'capital of slovenia', 'ljubljana municipality')" + }, + { + "db_id": "2-14302613-17", + "question": "Which Player has United States as Nationality, forward as Position and a greater than 5 Round?", + "evidence": "", + "schema_text_wo_content": "Table 2-14302613-17, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-14302613-17, columns = [`Round` (Example values: [1.0, 3.0, 4.0]), `Player` (Example values: [mel bridgman, bob ritchie, rick st. croix]), `Position` (Example values: [center, left wing, goaltender]), `Nationality` (Example values: [canada, america, latvia]), `College/Junior/Club Team (League)` (Example values: [victoria cougars ( wchl ), sorel black hawks ( qmjhl ), oshawa generals ( ohl )])]\n", + "ori_query": "select `player` from `2-14302613-17` where `nationality` = 'united states' and `position` = 'forward' and `round` > 5", + "amb_query": "SELECT \"player\" FROM \"2-14302613-17\" WHERE nationality IN ('america', 'united states') AND position IN ('forward', 'forward player') AND \"round\" > 5" + }, + { + "db_id": "2-15621965-10", + "question": "What years in Orlando have the United States as the nationality, with concord hs as the school/club team?", + "evidence": "", + "schema_text_wo_content": "Table 2-15621965-10, columns = [Player, Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 2-15621965-10, columns = [`Player` (Example values: [mario kasun, shawn kemp, tim kempton]), `Nationality` (Example values: [croatia, united states, north america, united states of america]), `Position` (Example values: [center, forward, forward-center]), `Years in Orlando` (Example values: [2004–2006, 2002–2003, 2002–2004]), `School/Club Team` (Example values: [gonzaga, concord hs, notre dame])]\n", + "ori_query": "select `years in orlando` from `2-15621965-10` where `nationality` = 'united states' and `school/club team` = 'concord hs'", + "amb_query": "SELECT \"years in orlando\" FROM \"2-15621965-10\" WHERE nationality IN ('america', 'united states, north america', 'united states of america', 'united states') AND \"school/club team\" = 'concord hs'" + }, + { + "db_id": "2-15621965-10", + "question": "What years in orlando have the United States as the nationality, and montana as the school/club team?", + "evidence": "", + "schema_text_wo_content": "Table 2-15621965-10, columns = [Player, Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 2-15621965-10, columns = [`Player` (Example values: [mario kasun, shawn kemp, tim kempton]), `Nationality` (Example values: [croatia, united states, north america, united states of america]), `Position` (Example values: [center, forward, forward-center]), `Years in Orlando` (Example values: [2004–2006, 2002–2003, 2002–2004]), `School/Club Team` (Example values: [gonzaga, concord hs, notre dame])]\n", + "ori_query": "select `years in orlando` from `2-15621965-10` where `nationality` = 'united states' and `school/club team` = 'montana'", + "amb_query": "SELECT \"years in orlando\" FROM \"2-15621965-10\" WHERE nationality IN ('america', 'united states, north america', 'united states of america', 'united states') AND \"school/club team\" = 'montana'" + }, + { + "db_id": "2-17371250-13", + "question": "What is the average round of the rw position player from the United States?", + "evidence": "", + "schema_text_wo_content": "Table 2-17371250-13, columns = [Round, Pick, Player, Position, Nationality, College/Junior Team]\n", + "schema_text_with_content": "Table 2-17371250-13, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Pick` (Example values: [12.0, 26.0, 44.0]), `Player` (Example values: [tyler myers, tyler ennis, luke adam]), `Position` (Example values: [d, c, rw]), `Nationality` (Example values: [canada, united states of america]), `College/Junior Team` (Example values: [kelowna rockets ( whl ), medicine hat tigers (whl), st. john's fog devils ( qmjhl )])]\n", + "ori_query": "select avg(`round`) from `2-17371250-13` where `nationality` = 'united states' and `position` = 'rw'", + "amb_query": "SELECT AVG(\"round\") FROM \"2-17371250-13\" WHERE nationality IN ('united states of america', 'united states') AND \"position\" = 'rw'" + }, + { + "db_id": "2-18259953-4", + "question": "Which player from the United States plays defence and was chosen before round 5?", + "evidence": "", + "schema_text_wo_content": "Table 2-18259953-4, columns = [Round, Player, Position, Nationality, College/junior/club team (league)]\n", + "schema_text_with_content": "Table 2-18259953-4, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [ryan mcdonagh, max pacioretty, p. k. subban]), `Position` (Example values: [defence, left wing, centre]), `Nationality` (Example values: [america, canada, switzerland country]), `College/junior/club team (league)` (Example values: [cretin-derham hall ( ushs-mn ), sioux city musketeers ( ushl ), belleville bulls ( ohl )])]\n", + "ori_query": "select `player` from `2-18259953-4` where `position` = 'defence' and `round` < 5 and `nationality` = 'united states'", + "amb_query": "SELECT \"player\" FROM \"2-18259953-4\" WHERE \"position\" = 'defence' AND \"round\" < 5 AND nationality IN ('america', 'united states', 'usa')" + }, + { + "db_id": "2-18259953-4", + "question": "Which College/junior/club team (league) was the player from Switzerland from?", + "evidence": "", + "schema_text_wo_content": "Table 2-18259953-4, columns = [Round, Player, Position, Nationality, College/junior/club team (league)]\n", + "schema_text_with_content": "Table 2-18259953-4, columns = [`Round` (Example values: [1.0, 2.0, 3.0]), `Player` (Example values: [ryan mcdonagh, max pacioretty, p. k. subban]), `Position` (Example values: [defence, left wing, centre]), `Nationality` (Example values: [america, canada, switzerland country]), `College/junior/club team (league)` (Example values: [cretin-derham hall ( ushs-mn ), sioux city musketeers ( ushl ), belleville bulls ( ohl )])]\n", + "ori_query": "select `college/junior/club team (league)` from `2-18259953-4` where `nationality` = 'switzerland'", + "amb_query": "SELECT \"college/junior/club team (league)\" FROM \"2-18259953-4\" WHERE nationality IN ('switzerland', 'switzerland country')" + }, + { + "db_id": "2-18982988-2", + "question": "Who's the athlete with a wind of 1.7 and from the United States?", + "evidence": "", + "schema_text_wo_content": "Table 2-18982988-2, columns = [Time, Wind, Athlete, Nationality, Location of race, Date]\n", + "schema_text_with_content": "Table 2-18982988-2, columns = [`Time` (Example values: [19.83 a, 19.72 a, 19.66]), `Wind` (Example values: [0.9, 1.8, 1.7]), `Athlete` (Example values: [tommie smith, pietro mennea, michael johnson]), `Nationality` (Example values: [united states, north america, italy, united states]), `Location of race` (Example values: [mexico city , mexico, atlanta , united states, beijing , china]), `Date` (Example values: [october 16, 1968, september 12, 1979, june 23, 1996])]\n", + "ori_query": "select `athlete` from `2-18982988-2` where `nationality` = 'united states' and `wind` = '1.7'", + "amb_query": "SELECT \"athlete\" FROM \"2-18982988-2\" WHERE nationality IN ('america', 'united states, north america', 'united states') AND \"wind\" = '1.7'" + }, + { + "db_id": "2-10560886-7", + "question": "What player is from the united states and started playing in 1965?", + "evidence": "", + "schema_text_wo_content": "Table 2-10560886-7, columns = [Player, Nationality, Position, From, School/Country]\n", + "schema_text_with_content": "Table 2-10560886-7, columns = [`Player` (Example values: [, john fairchild, farmar, jordan jordan farmar, , ron feiereisel]), `Nationality` (Example values: [us, united states, north america, united states]), `Position` (Example values: [forward, guard, center]), `From` (Example values: [1965, 2006, 1955]), `School/Country` (Example values: [byu, ucla, depaul])]\n", + "ori_query": "select `player` from `2-10560886-7` where `nationality` = 'united states' and `from` = '1965'", + "amb_query": "SELECT \"player\" FROM \"2-10560886-7\" WHERE nationality IN ('united states, north america', 'us', 'united states') AND \"from\" = '1965'" + }, + { + "db_id": "2-10560886-15", + "question": "Which player played center, is from the United States, and entered before 2012?", + "evidence": "", + "schema_text_wo_content": "Table 2-10560886-15, columns = [Player, Nationality, Position, From, School/Country]\n", + "schema_text_with_content": "Table 2-10560886-15, columns = [`Player` (Example values: [cotton nash category:articles with hcards, steve nash category:articles with hcards, swen nater category:articles with hcards]), `Nationality` (Example values: [united states, north america, canada, netherlands]), `Position` (Example values: [forward, guard, center]), `From` (Example values: [1965.0, 2012.0, 1984.0]), `School/Country` (Example values: [kentucky, santa clara, ucla])]\n", + "ori_query": "select `player` from `2-10560886-15` where `from` < 2012 and `position` = 'center' and `nationality` = 'united states'", + "amb_query": "SELECT \"player\" FROM \"2-10560886-15\" WHERE \"from\" < 2012 AND \"position\" = 'center' AND nationality IN ('united states, north america', 'united states')" + }, + { + "db_id": "2-10560886-3", + "question": "Who is the player in the center position from 2006 with nationality of the United States?", + "evidence": "", + "schema_text_wo_content": "Table 2-10560886-3, columns = [Player, Nationality, Position, From, School/Country]\n", + "schema_text_with_content": "Table 2-10560886-3, columns = [`Player` (Example values: [jim barnes category:articles with hcards, matt barnes category:articles with hcards, dick barnett category:articles with hcards]), `Nationality` (Example values: [united states, north america, united states, usa]), `Position` (Example values: [forward/center, forward, guard/forward]), `From` (Example values: [1967.0, 2010.0, 1963.0]), `School/Country` (Example values: [utep, ucla, tennessee state])]\n", + "ori_query": "select `player` from `2-10560886-3` where `nationality` = 'united states' and `position` = 'center' and `from` = 2006", + "amb_query": "SELECT \"player\" FROM \"2-10560886-3\" WHERE nationality IN ('america', 'united states, north america', 'united states', 'usa') AND \"position\" = 'center' AND \"from\" = 2006" + }, + { + "db_id": "2-10560886-3", + "question": "When England is the nationality what is the year from?", + "evidence": "", + "schema_text_wo_content": "Table 2-10560886-3, columns = [Player, Nationality, Position, From, School/Country]\n", + "schema_text_with_content": "Table 2-10560886-3, columns = [`Player` (Example values: [jim barnes category:articles with hcards, matt barnes category:articles with hcards, dick barnett category:articles with hcards]), `Nationality` (Example values: [united states, north america, united states, usa]), `Position` (Example values: [forward/center, forward, guard/forward]), `From` (Example values: [1967.0, 2010.0, 1963.0]), `School/Country` (Example values: [utep, ucla, tennessee state])]\n", + "ori_query": "select `from` from `2-10560886-3` where `nationality` = 'england'", + "amb_query": "SELECT \"from\" FROM \"2-10560886-3\" WHERE nationality IN ('england', 'england, uk')" + }, + { + "db_id": "2-13912739-13", + "question": "What league is from the United States and a round smaller than 12.", + "evidence": "", + "schema_text_wo_content": "Table 2-13912739-13, columns = [Round, Player, Position, Nationality, College/Junior/Club Team (League)]\n", + "schema_text_with_content": "Table 2-13912739-13, columns = [`Round` (Example values: [2.0, 4.0, 5.0]), `Player` (Example values: [troy mallette, murray duval, tony amonte]), `Position` (Example values: [lw, d, rw]), `Nationality` (Example values: [canada, united states of america, america]), `College/Junior/Club Team (League)` (Example values: [sault ste. marie greyhounds ( ohl ), spokane chiefs ( whl ), thayer academy (massachusetts)])]\n", + "ori_query": "select `college/junior/club team (league)` from `2-13912739-13` where `nationality` = 'united states' and `round` < 12", + "amb_query": "SELECT \"college/junior/club team (league)\" FROM \"2-13912739-13\" WHERE nationality IN ('america', 'united states of america', 'united states') AND \"round\" < 12" + }, + { + "db_id": "2-15621965-8", + "question": "Which Player has a Nationality of united states, a Position of forward, and a School/Club Team of notre dame?", + "evidence": "", + "schema_text_wo_content": "Table 2-15621965-8, columns = [Player, Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 2-15621965-8, columns = [`Player` (Example values: [geert hammink, penny hardaway, derek harper]), `Nationality` (Example values: [netherlands, united states, usa]), `Position` (Example values: [center, guard, forward-center]), `Years in Orlando` (Example values: [1993–1995, 1993–1999, 1997–1998]), `School/Club Team` (Example values: [louisiana state, memphis, illinois])]\n", + "ori_query": "select `player` from `2-15621965-8` where `nationality` = 'united states' and `position` = 'forward' and `school/club team` = 'notre dame'", + "amb_query": "SELECT \"player\" FROM \"2-15621965-8\" WHERE nationality IN ('united states', 'united states of america', 'usa') AND \"position\" = 'forward' AND \"school/club team\" = 'notre dame'" + }, + { + "db_id": "2-15621965-8", + "question": "Which Years in Orlando has a Nationality of united states, and a School/Club Team of illinois?", + "evidence": "", + "schema_text_wo_content": "Table 2-15621965-8, columns = [Player, Nationality, Position, Years in Orlando, School/Club Team]\n", + "schema_text_with_content": "Table 2-15621965-8, columns = [`Player` (Example values: [geert hammink, penny hardaway, derek harper]), `Nationality` (Example values: [netherlands, united states, usa]), `Position` (Example values: [center, guard, forward-center]), `Years in Orlando` (Example values: [1993–1995, 1993–1999, 1997–1998]), `School/Club Team` (Example values: [louisiana state, memphis, illinois])]\n", + "ori_query": "select `years in orlando` from `2-15621965-8` where `nationality` = 'united states' and `school/club team` = 'illinois'", + "amb_query": "SELECT \"years in orlando\" FROM \"2-15621965-8\" WHERE nationality IN ('united states', 'united states of america', 'usa') AND \"school/club team\" = 'illinois'" + }, + { + "db_id": "2-17387421-1", + "question": "What is the highest Pick, when Nationality is \"United States\", when College is \"New Mexico State\", and when Round is greater than 6?", + "evidence": "", + "schema_text_wo_content": "Table 2-17387421-1, columns = [Round, Pick, Player, Nationality, College]\n", + "schema_text_with_content": "Table 2-17387421-1, columns = [`Round` (Example values: [3.0, 4.0, 6.0]), `Pick` (Example values: [69.0, 92.0, 115.0]), `Player` (Example values: [willie glass, ralph tally, kenny travis]), `Nationality` (Example values: [us, united states of america, netherlands]), `College` (Example values: [st. john's, norfolk state, new mexico state])]\n", + "ori_query": "select max(`pick`) from `2-17387421-1` where `nationality` = 'united states' and `college` = 'new mexico state' and `round` > 6", + "amb_query": "SELECT MAX(\"pick\") FROM \"2-17387421-1\" WHERE nationality IN ('us', 'united states of america', 'united states') AND \"college\" = 'new mexico state' AND \"round\" > 6" + }, + { + "db_id": "2-12014051-2", + "question": "Which school's nationality was United States when its pick was 595?", + "evidence": "", + "schema_text_wo_content": "Table 2-12014051-2, columns = [Round, Pick, Player, Nationality, School]\n", + "schema_text_with_content": "Table 2-12014051-2, columns = [`Round` (Example values: [1, c-a, 2]), `Pick` (Example values: [16 (for frank catalanotto ), 21, 38 (for justin speier )]), `Player` (Example values: [kevin ahrens (ss), jonathan arencibia (c), brett cecil (lhp)]), `Nationality` (Example values: [united states, north america, us, united states]), `School` (Example values: [memorial high school, tennessee, maryland-college park])]\n", + "ori_query": "select `school` from `2-12014051-2` where `nationality` = 'united states' and `pick` = '595'", + "amb_query": "SELECT \"school\" FROM \"2-12014051-2\" WHERE nationality IN ('united states, north america', 'us', 'united states of america', 'united states') AND \"pick\" = '595'" + }, + { + "db_id": "2-15097334-5", + "question": "In what Tournament was the Score of 3–6, 6–3, 7–6 in a match played on a hard Surface?", + "evidence": "", + "schema_text_wo_content": "Table 2-15097334-5, columns = [Outcome, Date, Tournament, Surface, Partner, Opponents, Score]\n", + "schema_text_with_content": "Table 2-15097334-5, columns = [`Outcome` (Example values: [winner, runner-up]), `Date` (Example values: [24 april 1988, 12 november 1989, 4 february 1990]), `Tournament` (Example values: [singapore, nashville , tennessee, usa, auckland , new zealand]), `Surface` (Example values: [hard tennis court, hard surface type, hard]), `Partner` (Example values: [natalia bykova, leila meskhi, elena brioukhovets]), `Opponents` (Example values: [leila meskhi svetlana cherneva, manon bollegraf meredith mcgrath, jill hetherington robin white]), `Score` (Example values: [7–6, 6–3, 6–1, 6–7, 6–7, 3–6, 6–3, 7–6])]\n", + "ori_query": "select `tournament` from `2-15097334-5` where `surface` = 'hard' and `score` = '3–6, 6–3, 7–6'", + "amb_query": "SELECT \"tournament\" FROM \"2-15097334-5\" WHERE surface IN ('hard surface type', 'hard tennis court', 'hard') AND \"score\" = '3–6, 6–3, 7–6'" + }, + { + "db_id": "2-15097334-5", + "question": "Who was the Partner in a game with the Score of 6–4, 6–2 on a hard surface?", + "evidence": "", + "schema_text_wo_content": "Table 2-15097334-5, columns = [Outcome, Date, Tournament, Surface, Partner, Opponents, Score]\n", + "schema_text_with_content": "Table 2-15097334-5, columns = [`Outcome` (Example values: [winner, runner-up]), `Date` (Example values: [24 april 1988, 12 november 1989, 4 february 1990]), `Tournament` (Example values: [singapore, nashville , tennessee, usa, auckland , new zealand]), `Surface` (Example values: [hard tennis court, hard surface type, hard]), `Partner` (Example values: [natalia bykova, leila meskhi, elena brioukhovets]), `Opponents` (Example values: [leila meskhi svetlana cherneva, manon bollegraf meredith mcgrath, jill hetherington robin white]), `Score` (Example values: [7–6, 6–3, 6–1, 6–7, 6–7, 3–6, 6–3, 7–6])]\n", + "ori_query": "select `partner` from `2-15097334-5` where `surface` = 'hard' and `score` = '6–4, 6–2'", + "amb_query": "SELECT \"partner\" FROM \"2-15097334-5\" WHERE surface IN ('hard surface type', 'hard tennis court', 'hard') AND \"score\" = '6–4, 6–2'" + }, + { + "db_id": "2-14824014-3", + "question": "Which Medal had a Games of 2008 beijing, and a Sport of taekwondo?", + "evidence": "", + "schema_text_wo_content": "Table 2-14824014-3, columns = [Medal, Name, Games, Sport, Event]\n", + "schema_text_with_content": "Table 2-14824014-3, columns = [`Medal` (Example values: [bronze, gold, silver]), `Name` (Example values: [pedro nolasco, félix sánchez, manuel felix diaz]), `Games` (Example values: [1984 los angeles, 2004 athens, 2008 beijing]), `Sport` (Example values: [boxing, athletics, taekwondo event]), `Event` (Example values: [bantamweight, men's 400 metre hurdles, light welterweight])]\n", + "ori_query": "select `medal` from `2-14824014-3` where `games` = '2008 beijing' and `sport` = 'taekwondo'", + "amb_query": "SELECT \"medal\" FROM \"2-14824014-3\" WHERE \"games\" = '2008 beijing' AND sport IN ('taekwondo event', 'taekwondo')" + }, + { + "db_id": "2-14828476-4", + "question": "Which game had Philadelphia as its home team and was played on April 23?", + "evidence": "", + "schema_text_wo_content": "Table 2-14828476-4, columns = [Game, Date, Home Team, Result, Road Team]\n", + "schema_text_with_content": "Table 2-14828476-4, columns = [`Game` (Example values: [game 1, game 2, game 3]), `Date` (Example values: [april 14, april 16, april 18]), `Home Team` (Example values: [philadelphia, pa, san francisco]), `Result` (Example values: [141-135, 126-95, 130-124]), `Road Team` (Example values: [san francisco, philadelphia])]\n", + "ori_query": "select `game` from `2-14828476-4` where `home team` = 'philadelphia' and `date` = 'april 23'", + "amb_query": "SELECT \"game\" FROM \"2-14828476-4\" WHERE home team IN ('philadelphia, pa', 'philadelphia') AND \"date\" = 'april 23'" + }, + { + "db_id": "2-14828476-4", + "question": "Which games had Philadelphia as home team?", + "evidence": "", + "schema_text_wo_content": "Table 2-14828476-4, columns = [Game, Date, Home Team, Result, Road Team]\n", + "schema_text_with_content": "Table 2-14828476-4, columns = [`Game` (Example values: [game 1, game 2, game 3]), `Date` (Example values: [april 14, april 16, april 18]), `Home Team` (Example values: [philadelphia, pa, san francisco]), `Result` (Example values: [141-135, 126-95, 130-124]), `Road Team` (Example values: [san francisco, philadelphia])]\n", + "ori_query": "select `game` from `2-14828476-4` where `home team` = 'philadelphia'", + "amb_query": "SELECT \"game\" FROM \"2-14828476-4\" WHERE home team IN ('philadelphia, pa', 'philadelphia')" + }, + { + "db_id": "2-14828476-4", + "question": "What was the result of the game played on April 16 with Philadelphia as home team?", + "evidence": "", + "schema_text_wo_content": "Table 2-14828476-4, columns = [Game, Date, Home Team, Result, Road Team]\n", + "schema_text_with_content": "Table 2-14828476-4, columns = [`Game` (Example values: [game 1, game 2, game 3]), `Date` (Example values: [april 14, april 16, april 18]), `Home Team` (Example values: [philadelphia, pa, san francisco]), `Result` (Example values: [141-135, 126-95, 130-124]), `Road Team` (Example values: [san francisco, philadelphia])]\n", + "ori_query": "select `result` from `2-14828476-4` where `home team` = 'philadelphia' and `date` = 'april 16'", + "amb_query": "SELECT \"result\" FROM \"2-14828476-4\" WHERE home team IN ('philadelphia, pa', 'philadelphia') AND \"date\" = 'april 16'" + }, + { + "db_id": "2-14010415-1", + "question": "Which was the district that had first elected greater than 2006 and is democratic?", + "evidence": "", + "schema_text_wo_content": "Table 2-14010415-1, columns = [District, Counties Represented, Delegate, Party, First Elected, Committee]\n", + "schema_text_with_content": "Table 2-14010415-1, columns = [`District` (Example values: [27.1 27a, 27.2 27b, 28]), `Counties Represented` (Example values: [calvert , prince george's, calvert, prince george's, calvert]), `Delegate` (Example values: [proctor, james e. jr. james e. proctor, jr., vallario, joseph f. jr. joseph f. vallario, jr., kullen, sue sue kullen]), `Party` (Example values: [democratic affiliation, democratic party, democratic]), `First Elected` (Example values: [1990.0, 1974.0, 2004.0]), `Committee` (Example values: [appropriations (vice-chair), judiciary (chair), health and government operations])]\n", + "ori_query": "select `district` from `2-14010415-1` where `party` = 'democratic' and `first elected` > 2006", + "amb_query": "SELECT \"district\" FROM \"2-14010415-1\" WHERE party IN ('democratic party', 'democratic', 'democratic affiliation') AND \"first elected\" > 2006" + }, + { + "db_id": "2-14028934-3", + "question": "When did Montreal visit and have a score of 1-4?", + "evidence": "", + "schema_text_wo_content": "Table 2-14028934-3, columns = [Date, Home, Score, Visitor, Record]\n", + "schema_text_with_content": "Table 2-14028934-3, columns = [`Date` (Example values: [april 23, april 25, april 27]), `Home` (Example values: [pittsburgh, montreal]), `Score` (Example values: [3-2, 1-4, 3-1]), `Visitor` (Example values: [montreal south, city of montreal, pittsburgh]), `Record` (Example values: [1 - 0, 1 - 1, 2 - 1])]\n", + "ori_query": "select `date` from `2-14028934-3` where `visitor` = 'montreal' and `score` = '1-4'", + "amb_query": "SELECT \"date\" FROM \"2-14028934-3\" WHERE visitor IN ('montreal', 'city of montreal', 'montreal south') AND \"score\" = '1-4'" + }, + { + "db_id": "2-17093870-5", + "question": "What's the Date with the Region of Europe and has a Catalog of 28765 22392 8?", + "evidence": "", + "schema_text_wo_content": "Table 2-17093870-5, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17093870-5, columns = [`Region` (Example values: [japan, region of europe, australia region]), `Date` (Example values: [21 march 1997, 24 march 1997, 15 april 1997]), `Label` (Example values: [arista]), `Format` (Example values: [cd]), `Catalog` (Example values: [bvca-725, 74321 45851 2, 07822 18738 2])]\n", + "ori_query": "select `date` from `2-17093870-5` where `region` = 'europe' and `catalog` = '28765 22392 8'", + "amb_query": "SELECT \"date\" FROM \"2-17093870-5\" WHERE region IN ('europe area', 'europe', 'region of europe') AND \"catalog\" = '28765 22392 8'" + }, + { + "db_id": "2-17093870-5", + "question": "What's the Date for the Region of Europe and has the Catalog of 28765 22392 8?", + "evidence": "", + "schema_text_wo_content": "Table 2-17093870-5, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17093870-5, columns = [`Region` (Example values: [japan, region of europe, australia region]), `Date` (Example values: [21 march 1997, 24 march 1997, 15 april 1997]), `Label` (Example values: [arista]), `Format` (Example values: [cd]), `Catalog` (Example values: [bvca-725, 74321 45851 2, 07822 18738 2])]\n", + "ori_query": "select `date` from `2-17093870-5` where `region` = 'europe' and `catalog` = '28765 22392 8'", + "amb_query": "SELECT \"date\" FROM \"2-17093870-5\" WHERE region IN ('europe area', 'europe', 'region of europe') AND \"catalog\" = '28765 22392 8'" + }, + { + "db_id": "2-17093870-5", + "question": "What Format has the Region of Europe and a Catalog of 74321 45851 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-17093870-5, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17093870-5, columns = [`Region` (Example values: [japan, region of europe, australia region]), `Date` (Example values: [21 march 1997, 24 march 1997, 15 april 1997]), `Label` (Example values: [arista]), `Format` (Example values: [cd]), `Catalog` (Example values: [bvca-725, 74321 45851 2, 07822 18738 2])]\n", + "ori_query": "select `format` from `2-17093870-5` where `region` = 'europe' and `catalog` = '74321 45851 2'", + "amb_query": "SELECT \"format\" FROM \"2-17093870-5\" WHERE region IN ('europe area', 'europe', 'region of europe') AND \"catalog\" = '74321 45851 2'" + }, + { + "db_id": "2-17093870-5", + "question": "What Date has the Region Europe and a Catalog of 74321 45851 2?", + "evidence": "", + "schema_text_wo_content": "Table 2-17093870-5, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17093870-5, columns = [`Region` (Example values: [japan, region of europe, australia region]), `Date` (Example values: [21 march 1997, 24 march 1997, 15 april 1997]), `Label` (Example values: [arista]), `Format` (Example values: [cd]), `Catalog` (Example values: [bvca-725, 74321 45851 2, 07822 18738 2])]\n", + "ori_query": "select `date` from `2-17093870-5` where `region` = 'europe' and `catalog` = '74321 45851 2'", + "amb_query": "SELECT \"date\" FROM \"2-17093870-5\" WHERE region IN ('europe area', 'europe', 'region of europe') AND \"catalog\" = '74321 45851 2'" + }, + { + "db_id": "2-17093870-5", + "question": "What Label has the Region of Australia?", + "evidence": "", + "schema_text_wo_content": "Table 2-17093870-5, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-17093870-5, columns = [`Region` (Example values: [japan, region of europe, australia region]), `Date` (Example values: [21 march 1997, 24 march 1997, 15 april 1997]), `Label` (Example values: [arista]), `Format` (Example values: [cd]), `Catalog` (Example values: [bvca-725, 74321 45851 2, 07822 18738 2])]\n", + "ori_query": "select `label` from `2-17093870-5` where `region` = 'australia'", + "amb_query": "SELECT \"label\" FROM \"2-17093870-5\" WHERE region IN ('australia', 'australia region')" + }, + { + "db_id": "2-17064840-4", + "question": "Where was the player from who had the position of DF, who started 2007-10-30?", + "evidence": "", + "schema_text_wo_content": "Table 2-17064840-4, columns = [Date From, Date To, Position, Name, From]\n", + "schema_text_with_content": "Table 2-17064840-4, columns = [`Date From` (Example values: [2007-08-08, 2007-08-10, 2007-10-30]), `Date To` (Example values: [2007-08-13, end of season, 2008-04-30]), `Position` (Example values: [gk, midfield, fw]), `Name` (Example values: [chris weale, toumani diagouraga, theo robinson]), `From` (Example values: [bristol city, watford, liverpool])]\n", + "ori_query": "select `from` from `2-17064840-4` where `position` = 'df' and `date from` = '2007-10-30'", + "amb_query": "SELECT \"from\" FROM \"2-17064840-4\" WHERE position IN ('df', 'defense', 'defender') AND \"date from\" = '2007-10-30'" + }, + { + "db_id": "2-17064840-4", + "question": "What date did Toumani Diagouraga, who played position MF, start?", + "evidence": "", + "schema_text_wo_content": "Table 2-17064840-4, columns = [Date From, Date To, Position, Name, From]\n", + "schema_text_with_content": "Table 2-17064840-4, columns = [`Date From` (Example values: [2007-08-08, 2007-08-10, 2007-10-30]), `Date To` (Example values: [2007-08-13, end of season, 2008-04-30]), `Position` (Example values: [gk, midfield, fw]), `Name` (Example values: [chris weale, toumani diagouraga, theo robinson]), `From` (Example values: [bristol city, watford, liverpool])]\n", + "ori_query": "select `date from` from `2-17064840-4` where `position` = 'mf' and `name` = 'toumani diagouraga'", + "amb_query": "SELECT \"date from\" FROM \"2-17064840-4\" WHERE position IN ('mf', 'midfield', 'midfielder position') AND \"name\" = 'toumani diagouraga'" + }, + { + "db_id": "2-17472859-2", + "question": "What building in Louisville had more than 35 floors?", + "evidence": "", + "schema_text_wo_content": "Table 2-17472859-2, columns = [Name, City, Years as tallest, Height ft / m, Floors]\n", + "schema_text_with_content": "Table 2-17472859-2, columns = [`Name` (Example values: [aegon center, national city tower, pnc plaza]), `City` (Example values: [louisville, kentucky, louisville city, city of louisville]), `Years as tallest` (Example values: [1993-present, 1972-1993, 1971-1972]), `Height ft / m` (Example values: [-foot (m)]), `Floors` (Example values: [35.0, 40.0, 30.0])]\n", + "ori_query": "select `name` from `2-17472859-2` where `city` = 'louisville' and `floors` > 35", + "amb_query": "SELECT \"name\" FROM \"2-17472859-2\" WHERE city IN ('louisville', 'louisville, kentucky', 'city of louisville', 'louisville city') AND \"floors\" > 35" + }, + { + "db_id": "2-17116064-4", + "question": "What is the Date of the game with a Loss and Record of 7-9?", + "evidence": "", + "schema_text_wo_content": "Table 2-17116064-4, columns = [Date, Opponent, Score, Result, Record]\n", + "schema_text_with_content": "Table 2-17116064-4, columns = [`Date` (Example values: [may 17, may 25, may 27]), `Opponent` (Example values: [@ detroit, @ washington, vs. minnesota]), `Score` (Example values: [66-85, 66-69, 92-98 (ot)]), `Result` (Example values: [lost, game loss, win]), `Record` (Example values: [0-1, 0-2, 0-3])]\n", + "ori_query": "select `date` from `2-17116064-4` where `result` = 'loss' and `record` = '7-9'", + "amb_query": "SELECT \"date\" FROM \"2-17116064-4\" WHERE result IN ('lost', 'loss', 'game loss') AND \"record\" = '7-9'" + }, + { + "db_id": "2-16549823-7", + "question": "What is the name of the free transfer fee with a transfer status and an ENG country?", + "evidence": "", + "schema_text_wo_content": "Table 2-16549823-7, columns = [Name, Country, Status, Transfer window, Transfer fee]\n", + "schema_text_with_content": "Table 2-16549823-7, columns = [`Name` (Example values: [cox, bailey, williams]), `Country` (Example values: [eng, wal]), `Status` (Example values: [retired, transfer, considering retirement]), `Transfer window` (Example values: [summer]), `Transfer fee` (Example values: [gratis, free, no cost])]\n", + "ori_query": "select `name` from `2-16549823-7` where `transfer fee` = 'free' and `status` = 'transfer' and `country` = 'eng'", + "amb_query": "SELECT \"name\" FROM \"2-16549823-7\" WHERE transfer fee IN ('gratis', 'no cost', 'free') AND \"status\" = 'transfer' AND \"country\" = 'eng'" + }, + { + "db_id": "2-15295737-108", + "question": "Which Third has a Nation of hungary?", + "evidence": "", + "schema_text_wo_content": "Table 2-15295737-108, columns = [Nation, Skip, Third, Second, Lead]\n", + "schema_text_with_content": "Table 2-15295737-108, columns = [`Nation` (Example values: [austria, croatia country, hungarian republic]), `Skip` (Example values: [karina toth, katarina radonic, ildiko szekeres]), `Third` (Example values: [constanze hummelt, nikolina petric, alexandra beres]), `Second` (Example values: [jasmin seidl, marta muzdalo, gyöngyi nagy]), `Lead` (Example values: [alexandra bruckmiller, zrinka muhek, gyöngyi nagy])]\n", + "ori_query": "select `third` from `2-15295737-108` where `nation` = 'hungary'", + "amb_query": "SELECT \"third\" FROM \"2-15295737-108\" WHERE nation IN ('hungary', 'hungarian republic')" + }, + { + "db_id": "2-15295737-108", + "question": "Which Second has a Nation of latvia?", + "evidence": "", + "schema_text_wo_content": "Table 2-15295737-108, columns = [Nation, Skip, Third, Second, Lead]\n", + "schema_text_with_content": "Table 2-15295737-108, columns = [`Nation` (Example values: [austria, croatia country, hungarian republic]), `Skip` (Example values: [karina toth, katarina radonic, ildiko szekeres]), `Third` (Example values: [constanze hummelt, nikolina petric, alexandra beres]), `Second` (Example values: [jasmin seidl, marta muzdalo, gyöngyi nagy]), `Lead` (Example values: [alexandra bruckmiller, zrinka muhek, gyöngyi nagy])]\n", + "ori_query": "select `second` from `2-15295737-108` where `nation` = 'latvia'", + "amb_query": "SELECT \"second\" FROM \"2-15295737-108\" WHERE nation IN ('latvian republic', 'latvia')" + }, + { + "db_id": "2-15295737-108", + "question": "Which Lead has a Nation of croatia?", + "evidence": "", + "schema_text_wo_content": "Table 2-15295737-108, columns = [Nation, Skip, Third, Second, Lead]\n", + "schema_text_with_content": "Table 2-15295737-108, columns = [`Nation` (Example values: [austria, croatia country, hungarian republic]), `Skip` (Example values: [karina toth, katarina radonic, ildiko szekeres]), `Third` (Example values: [constanze hummelt, nikolina petric, alexandra beres]), `Second` (Example values: [jasmin seidl, marta muzdalo, gyöngyi nagy]), `Lead` (Example values: [alexandra bruckmiller, zrinka muhek, gyöngyi nagy])]\n", + "ori_query": "select `lead` from `2-15295737-108` where `nation` = 'croatia'", + "amb_query": "SELECT \"lead\" FROM \"2-15295737-108\" WHERE nation IN ('croatia country', 'croatia')" + }, + { + "db_id": "2-1473672-8", + "question": "What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113?", + "evidence": "", + "schema_text_wo_content": "Table 2-1473672-8, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 2-1473672-8, columns = [`Pick #` (Example values: [113, 114, 115]), `Player` (Example values: [derek kuntz, dave murphy, dennis mccord]), `Position` (Example values: [left wing, centre, defence]), `Nationality` (Example values: [canada, the great white north, canadian, canada]), `NHL team` (Example values: [new york islanders, atlanta flames, vancouver canucks]), `College/junior/club team` (Example values: [medicine hat tigers (wchl), hamilton red wings (omjhl), london knights (omjhl)])]\n", + "ori_query": "select `position` from `2-1473672-8` where `nationality` = 'canada' and `nhl team` = 'new york islanders' and `pick #` = '113'", + "amb_query": "SELECT \"position\" FROM \"2-1473672-8\" WHERE nationality IN ('canada, the great white north', 'canadian', 'canada country', 'canada') AND \"nhl team\" = 'new york islanders' AND \"pick #\" = '113'" + }, + { + "db_id": "2-16927321-6", + "question": "What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?", + "evidence": "", + "schema_text_wo_content": "Table 2-16927321-6, columns = [Name of System, Location, Traction Type, Date (From), Date (To)]\n", + "schema_text_with_content": "Table 2-16927321-6, columns = [`Name of System` (Example values: [nova scotia light and power company, ltd, pictou county electric company, cape breton electric company]), `Location` (Example values: [halifax, new glasgow - trenton, sydney]), `Traction Type` (Example values: [horse, electric system, electric type]), `Date (From)` (Example values: [11 jun 1866 21 oct 1886, 12 feb 1896, 10 oct 1904]), `Date (To)` (Example values: [17 may 1876 31 may 1896, 29 apr 1949, 7 may 1931])]\n", + "ori_query": "select `date (to)` from `2-16927321-6` where `traction type` = 'electric' and `name of system` = 'yarmouth light and power company'", + "amb_query": "SELECT \"date (to)\" FROM \"2-16927321-6\" WHERE traction type IN ('electric system', 'electric', 'electric type') AND \"name of system\" = 'yarmouth light and power company'" + }, + { + "db_id": "2-16623550-1", + "question": "What is the height of the EMC Insurance Building in Des Moines?", + "evidence": "", + "schema_text_wo_content": "Table 2-16623550-1, columns = [Rank, Name, Stories, Height, Year Completed, Primary Purpose, City]\n", + "schema_text_with_content": "Table 2-16623550-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [801 grand (previously the principal building), ruan center, des moines marriott hotel]), `Stories` (Example values: [45.0, 36.0, 33.0]), `Height` (Example values: [630ft (192 m), 460ft (140 m), 365ft (111 m)]), `Year Completed` (Example values: [1991, 1975, 1981]), `Primary Purpose` (Example values: [office, hotel, residential]), `City` (Example values: [des moines metropolitan area, des moines, ia, des moines])]\n", + "ori_query": "select `height` from `2-16623550-1` where `city` = 'des moines' and `name` = 'emc insurance building'", + "amb_query": "SELECT \"height\" FROM \"2-16623550-1\" WHERE city IN ('des moines metropolitan area', 'des moines', 'des moines, iowa', 'des moines, ia') AND \"name\" = 'emc insurance building'" + }, + { + "db_id": "2-17357560-1", + "question": "Which Competition has an Event of 50km, a Year earlier than 2010 and a Position of 3rd?", + "evidence": "", + "schema_text_wo_content": "Table 2-17357560-1, columns = [Year, Competition, Venue, Position, Event]\n", + "schema_text_with_content": "Table 2-17357560-1, columns = [`Year` (Example values: [2006.0, 2007.0, 2009.0]), `Competition` (Example values: [world race walking cup, european championships, european u23 championships]), `Venue` (Example values: [la coruña , spain, gothenburg, sweden, debrecen, hungary]), `Position` (Example values: [6th, 5th, 3rd]), `Event` (Example values: [20km, 50km, 50 km competition])]\n", + "ori_query": "select `competition` from `2-17357560-1` where `event` = '50km' and `year` < 2010 and `position` = '3rd'", + "amb_query": "SELECT \"competition\" FROM \"2-17357560-1\" WHERE event IN ('50km event', '50km', '50 km competition') AND \"year\" < 2010 AND \"position\" = '3rd'" + }, + { + "db_id": "2-11115098-8", + "question": "Which date has roma as opponent and a H/A of A?", + "evidence": "", + "schema_text_wo_content": "Table 2-11115098-8, columns = [Date, Round, Opponents, H / A, Result F–A, Attendance]\n", + "schema_text_with_content": "Table 2-11115098-8, columns = [`Date` (Example values: [20 february 2007, 7 march 2007, 4 april 2007]), `Round` (Example values: [first knockout round first leg, first knockout round second leg, quarter-final first leg]), `Opponents` (Example values: [lille, lille, france, as roma]), `H / A` (Example values: [a, h]), `Result F–A` (Example values: [1–0, 1–2, 7–1]), `Attendance` (Example values: [41,000, 75,182, 77,000])]\n", + "ori_query": "select `date` from `2-11115098-8` where `opponents` = 'roma' and `h / a` = 'a'", + "amb_query": "SELECT \"date\" FROM \"2-11115098-8\" WHERE opponents IN ('as roma', 'roma') AND \"h / a\" = 'a'" + }, + { + "db_id": "2-11115098-8", + "question": "Which round has an Opponent of lille, and a H / A of h?", + "evidence": "", + "schema_text_wo_content": "Table 2-11115098-8, columns = [Date, Round, Opponents, H / A, Result F–A, Attendance]\n", + "schema_text_with_content": "Table 2-11115098-8, columns = [`Date` (Example values: [20 february 2007, 7 march 2007, 4 april 2007]), `Round` (Example values: [first knockout round first leg, first knockout round second leg, quarter-final first leg]), `Opponents` (Example values: [lille, lille, france, as roma]), `H / A` (Example values: [a, h]), `Result F–A` (Example values: [1–0, 1–2, 7–1]), `Attendance` (Example values: [41,000, 75,182, 77,000])]\n", + "ori_query": "select `round` from `2-11115098-8` where `opponents` = 'lille' and `h / a` = 'h'", + "amb_query": "SELECT \"round\" FROM \"2-11115098-8\" WHERE opponents IN ('lille', 'lille, france') AND \"h / a\" = 'h'" + }, + { + "db_id": "2-1363000-1", + "question": "How many storeys in Calgary during 1975-1976?", + "evidence": "", + "schema_text_wo_content": "Table 2-1363000-1, columns = [Years, Building, City, Height, Storeys]\n", + "schema_text_with_content": "Table 2-1363000-1, columns = [`Years` (Example values: [1984–present, 1976-1984, 1975-1976]), `Building` (Example values: [suncor energy centre - west, scotia centre, bow valley square 2]), `City` (Example values: [calgary, alberta, calgary, calgary city]), `Height` (Example values: [m (ft)]), `Storeys` (Example values: [52.0, 41.0, 39.0])]\n", + "ori_query": "select `storeys` from `2-1363000-1` where `city` = 'calgary' and `years` = '1975-1976'", + "amb_query": "SELECT \"storeys\" FROM \"2-1363000-1\" WHERE city IN ('calgary city', 'calgary', 'calgary, alberta') AND \"years\" = '1975-1976'" + }, + { + "db_id": "2-1097158-4", + "question": "Name the date that is a cd", + "evidence": "", + "schema_text_wo_content": "Table 2-1097158-4, columns = [Region, Date, Label, Format, Catalogue]\n", + "schema_text_with_content": "Table 2-1097158-4, columns = [`Region` (Example values: [united states, japan, australia]), `Date` (Example values: [september 28, 2004, october 6, 2004, october 15, 2004]), `Label` (Example values: [reprise]), `Format` (Example values: [compact disc, cd, cd format]), `Catalogue` (Example values: [48789-2, wpcr11912, wpcr-11940, 9362487892])]\n", + "ori_query": "select `date` from `2-1097158-4` where `format` = 'cd'", + "amb_query": "SELECT \"date\" FROM \"2-1097158-4\" WHERE format IN ('compact disk', 'compact disc', 'cd', 'cd format')" + }, + { + "db_id": "2-12703676-2", + "question": "Which date is in CD format?", + "evidence": "", + "schema_text_wo_content": "Table 2-12703676-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-12703676-2, columns = [`Region` (Example values: [japan]), `Date` (Example values: [april 23, 1983, november 28, 1983, january 25, 1987]), `Label` (Example values: [alfa records, village records, sony music direct]), `Format` (Example values: [lp record, compact disk, cd]), `Catalog` (Example values: [alr-28049, 38xa-3, 32xa-111])]\n", + "ori_query": "select `date` from `2-12703676-2` where `format` = 'cd'", + "amb_query": "SELECT \"date\" FROM \"2-12703676-2\" WHERE format IN ('compact disk', 'cd media', 'cd')" + }, + { + "db_id": "2-12703676-2", + "question": "Which catalog is in cd format?", + "evidence": "", + "schema_text_wo_content": "Table 2-12703676-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-12703676-2, columns = [`Region` (Example values: [japan]), `Date` (Example values: [april 23, 1983, november 28, 1983, january 25, 1987]), `Label` (Example values: [alfa records, village records, sony music direct]), `Format` (Example values: [lp record, compact disk, cd]), `Catalog` (Example values: [alr-28049, 38xa-3, 32xa-111])]\n", + "ori_query": "select `catalog` from `2-12703676-2` where `format` = 'cd'", + "amb_query": "SELECT \"catalog\" FROM \"2-12703676-2\" WHERE format IN ('compact disk', 'cd media', 'cd')" + }, + { + "db_id": "2-12703676-2", + "question": "Which date is in stereo lp format?", + "evidence": "", + "schema_text_wo_content": "Table 2-12703676-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-12703676-2, columns = [`Region` (Example values: [japan]), `Date` (Example values: [april 23, 1983, november 28, 1983, january 25, 1987]), `Label` (Example values: [alfa records, village records, sony music direct]), `Format` (Example values: [lp record, compact disk, cd]), `Catalog` (Example values: [alr-28049, 38xa-3, 32xa-111])]\n", + "ori_query": "select `date` from `2-12703676-2` where `format` = 'stereo lp'", + "amb_query": "SELECT \"date\" FROM \"2-12703676-2\" WHERE format IN ('stereo lp', 'lp record')" + }, + { + "db_id": "2-13071896-2", + "question": "Which Catalog was formated as a CD under the label Alfa Records?", + "evidence": "", + "schema_text_wo_content": "Table 2-13071896-2, columns = [Region, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-13071896-2, columns = [`Region` (Example values: [japan]), `Date` (Example values: [september 10, 1985, march 21, 1992, august 31, 1994]), `Label` (Example values: [alfa records, village records, sony music direct]), `Format` (Example values: [stereo lp, cd media, cd]), `Catalog` (Example values: [alr-28071, 32xa-38, alca-283])]\n", + "ori_query": "select `catalog` from `2-13071896-2` where `label` = 'alfa records' and `format` = 'cd'", + "amb_query": "SELECT \"catalog\" FROM \"2-13071896-2\" WHERE \"label\" = 'alfa records' AND format IN ('cd media', 'cd', 'compact disc')" + }, + { + "db_id": "2-17215185-2", + "question": "What is the Version of the CD release?", + "evidence": "", + "schema_text_wo_content": "Table 2-17215185-2, columns = [Region, Date, Label, Format, Version]\n", + "schema_text_with_content": "Table 2-17215185-2, columns = [`Region` (Example values: [greece, cyprus, europe]), `Date` (Example values: [june 11, 2008, june 12, 2008, december 22, 2008]), `Label` (Example values: [sony bmg / rca]), `Format` (Example values: [digital download, cd media, compact disk]), `Version` (Example values: [original, deluxe edition])]\n", + "ori_query": "select `version` from `2-17215185-2` where `format` = 'cd'", + "amb_query": "SELECT \"version\" FROM \"2-17215185-2\" WHERE format IN ('compact disk', 'cd media', 'cd')" + }, + { + "db_id": "2-17215185-2", + "question": "What is the Label of the Original CD release?", + "evidence": "", + "schema_text_wo_content": "Table 2-17215185-2, columns = [Region, Date, Label, Format, Version]\n", + "schema_text_with_content": "Table 2-17215185-2, columns = [`Region` (Example values: [greece, cyprus, europe]), `Date` (Example values: [june 11, 2008, june 12, 2008, december 22, 2008]), `Label` (Example values: [sony bmg / rca]), `Format` (Example values: [digital download, cd media, compact disk]), `Version` (Example values: [original, deluxe edition])]\n", + "ori_query": "select `label` from `2-17215185-2` where `format` = 'cd' and `version` = 'original'", + "amb_query": "SELECT \"label\" FROM \"2-17215185-2\" WHERE format IN ('compact disk', 'cd media', 'cd') AND \"version\" = 'original'" + }, + { + "db_id": "2-17215185-2", + "question": "What is the Version of the CD release on June 12, 2008 in Cyprus?", + "evidence": "", + "schema_text_wo_content": "Table 2-17215185-2, columns = [Region, Date, Label, Format, Version]\n", + "schema_text_with_content": "Table 2-17215185-2, columns = [`Region` (Example values: [greece, cyprus, europe]), `Date` (Example values: [june 11, 2008, june 12, 2008, december 22, 2008]), `Label` (Example values: [sony bmg / rca]), `Format` (Example values: [digital download, cd media, compact disk]), `Version` (Example values: [original, deluxe edition])]\n", + "ori_query": "select `version` from `2-17215185-2` where `format` = 'cd' and `date` = 'june 12, 2008' and `region` = 'cyprus'", + "amb_query": "SELECT \"version\" FROM \"2-17215185-2\" WHERE format IN ('compact disk', 'cd media', 'cd') AND \"date\" = 'june 12, 2008' AND \"region\" = 'cyprus'" + }, + { + "db_id": "2-1620220-3", + "question": "What is the label for the CD format in North America?", + "evidence": "", + "schema_text_wo_content": "Table 2-1620220-3, columns = [Date, Region, Label, Catalogue, Format]\n", + "schema_text_with_content": "Table 2-1620220-3, columns = [`Date` (Example values: [27 june 1981, 1990, 1996]), `Region` (Example values: [uk, north america]), `Label` (Example values: [bronze, castle, essential]), `Catalogue` (Example values: [bron 535, brong 535, clacd 179]), `Format` (Example values: [vinyl record, gold vinyl record, cd])]\n", + "ori_query": "select `label` from `2-1620220-3` where `format` = 'cd' and `region` = 'north america'", + "amb_query": "SELECT \"label\" FROM \"2-1620220-3\" WHERE format IN ('compact disk', 'cd') AND \"region\" = 'north america'" + }, + { + "db_id": "2-1620220-3", + "question": "What region is the Gold Vinyl format from?", + "evidence": "", + "schema_text_wo_content": "Table 2-1620220-3, columns = [Date, Region, Label, Catalogue, Format]\n", + "schema_text_with_content": "Table 2-1620220-3, columns = [`Date` (Example values: [27 june 1981, 1990, 1996]), `Region` (Example values: [uk, north america]), `Label` (Example values: [bronze, castle, essential]), `Catalogue` (Example values: [bron 535, brong 535, clacd 179]), `Format` (Example values: [vinyl record, gold vinyl record, cd])]\n", + "ori_query": "select `region` from `2-1620220-3` where `format` = 'gold vinyl'", + "amb_query": "SELECT \"region\" FROM \"2-1620220-3\" WHERE format IN ('gold vinyl', 'gold vinyl record')" + }, + { + "db_id": "2-1620220-3", + "question": "What is the catalog with a bronze label and in Vinyl format?", + "evidence": "", + "schema_text_wo_content": "Table 2-1620220-3, columns = [Date, Region, Label, Catalogue, Format]\n", + "schema_text_with_content": "Table 2-1620220-3, columns = [`Date` (Example values: [27 june 1981, 1990, 1996]), `Region` (Example values: [uk, north america]), `Label` (Example values: [bronze, castle, essential]), `Catalogue` (Example values: [bron 535, brong 535, clacd 179]), `Format` (Example values: [vinyl record, gold vinyl record, cd])]\n", + "ori_query": "select `catalogue` from `2-1620220-3` where `label` = 'bronze' and `format` = 'vinyl'", + "amb_query": "SELECT \"catalogue\" FROM \"2-1620220-3\" WHERE \"label\" = 'bronze' AND format IN ('vinyl record', 'vinyl')" + }, + { + "db_id": "2-1620220-3", + "question": "What date was the bronze label in vinyl format?", + "evidence": "", + "schema_text_wo_content": "Table 2-1620220-3, columns = [Date, Region, Label, Catalogue, Format]\n", + "schema_text_with_content": "Table 2-1620220-3, columns = [`Date` (Example values: [27 june 1981, 1990, 1996]), `Region` (Example values: [uk, north america]), `Label` (Example values: [bronze, castle, essential]), `Catalogue` (Example values: [bron 535, brong 535, clacd 179]), `Format` (Example values: [vinyl record, gold vinyl record, cd])]\n", + "ori_query": "select `date` from `2-1620220-3` where `label` = 'bronze' and `format` = 'vinyl'", + "amb_query": "SELECT \"date\" FROM \"2-1620220-3\" WHERE \"label\" = 'bronze' AND format IN ('vinyl record', 'vinyl')" + }, + { + "db_id": "2-1750185-2", + "question": "Which Label has a Format of cd, a Country of Japan and a Catalog of vjcp-68403?", + "evidence": "", + "schema_text_wo_content": "Table 2-1750185-2, columns = [Country, Date, Label, Format, Catalog]\n", + "schema_text_with_content": "Table 2-1750185-2, columns = [`Country` (Example values: [japan, united kingdom, united states]), `Date` (Example values: [june 2000, 29 march 2002, 26 june 2000]), `Label` (Example values: [toshiba-emi, hut records, virgin records]), `Format` (Example values: [compact disc, 2lp, cd]), `Catalog` (Example values: [vjcp-68222 / 4988006782549, vjcp-68403, hutdlp63])]\n", + "ori_query": "select `label` from `2-1750185-2` where `format` = 'cd' and `country` = 'japan' and `catalog` = 'vjcp-68403'", + "amb_query": "SELECT \"label\" FROM \"2-1750185-2\" WHERE format IN ('compact disc', 'cd') AND \"country\" = 'japan' AND \"catalog\" = 'vjcp-68403'" + }, + { + "db_id": "2-11908801-1", + "question": "How much did the girl, nicknamed Chidi, weigh at birth?", + "evidence": "", + "schema_text_wo_content": "Table 2-11908801-1, columns = [Full Name, Nickname, Gender, Weight at birth, Meaning]\n", + "schema_text_with_content": "Table 2-11908801-1, columns = [`Full Name` (Example values: [chukwuebuka nkemjika, chidinma anulika, chinecherem nwabugwu]), `Nickname` (Example values: [ebuka, chidi, echerem]), `Gender` (Example values: [girl child, young girl, girl]), `Weight at birth` (Example values: [690g (22 oz.), 760g (24.4 oz.), 800g (25.7 oz.)]), `Meaning` (Example values: [god is big, god is good, god thinks for me])]\n", + "ori_query": "select `weight at birth` from `2-11908801-1` where `gender` = 'girl' and `nickname` = 'chidi'", + "amb_query": "SELECT \"weight at birth\" FROM \"2-11908801-1\" WHERE gender IN ('girl child', 'young girl', 'girl') AND \"nickname\" = 'chidi'" + }, + { + "db_id": "2-11908801-1", + "question": "What is the nickname of the boy who weighed 810g (26.0 oz.) at birth?", + "evidence": "", + "schema_text_wo_content": "Table 2-11908801-1, columns = [Full Name, Nickname, Gender, Weight at birth, Meaning]\n", + "schema_text_with_content": "Table 2-11908801-1, columns = [`Full Name` (Example values: [chukwuebuka nkemjika, chidinma anulika, chinecherem nwabugwu]), `Nickname` (Example values: [ebuka, chidi, echerem]), `Gender` (Example values: [girl child, young girl, girl]), `Weight at birth` (Example values: [690g (22 oz.), 760g (24.4 oz.), 800g (25.7 oz.)]), `Meaning` (Example values: [god is big, god is good, god thinks for me])]\n", + "ori_query": "select `nickname` from `2-11908801-1` where `gender` = 'boy' and `weight at birth` = '810g (26.0 oz.)'", + "amb_query": "SELECT \"nickname\" FROM \"2-11908801-1\" WHERE gender IN ('boy', 'male child') AND \"weight at birth\" = '810g (26.0 oz.)'" + }, + { + "db_id": "2-11482079-20", + "question": "What is the highest number of assists for players that are f/c and have under 13 rebounds?", + "evidence": "", + "schema_text_wo_content": "Table 2-11482079-20, columns = [Player, Pos., From, School/Country, Rebs, Asts]\n", + "schema_text_with_content": "Table 2-11482079-20, columns = [`Player` (Example values: [dick van arsdale category:articles with hcards, tom van arsdale category:articles with hcards, nick vanos category:articles with hcards]), `Pos.` (Example values: [g/f, c, forward/center]), `From` (Example values: [1968.0, 1976.0, 1985.0]), `School/Country` (Example values: [indiana, santa clara, connecticut]), `Rebs` (Example values: [2,452, 184.0, 240.0]), `Asts` (Example values: [2,396, 67.0, 59.0])]\n", + "ori_query": "select max(`asts`) from `2-11482079-20` where `pos.` = 'f/c' and `rebs` < 13", + "amb_query": "SELECT MAX(\"asts\") FROM \"2-11482079-20\" WHERE pos. IN ('f/c', 'forward/center') AND \"rebs\" < 13" + }, + { + "db_id": "2-11241317-2", + "question": "What is the status of the torre reforma building that is over 44 stories in mexico city?", + "evidence": "", + "schema_text_wo_content": "Table 2-11241317-2, columns = [Building, City, Height, Stories, Status]\n", + "schema_text_with_content": "Table 2-11241317-2, columns = [`Building` (Example values: [torre koi, torre mitikah, punto chapultepec]), `City` (Example values: [monterrey, the capital of mexico, mexico city, mexico]), `Height` (Example values: [m (ft), m (ft))]), `Stories` (Example values: [67.0, 60.0, 59.0]), `Status` (Example values: [under construction, proposed, on-hold])]\n", + "ori_query": "select `status` from `2-11241317-2` where `stories` > 44 and `city` = 'mexico city' and `building` = 'torre reforma'", + "amb_query": "SELECT \"status\" FROM \"2-11241317-2\" WHERE \"stories\" > 44 AND city IN ('the capital of mexico', 'mexico city metropolitan area', 'mexico city', 'mexico city, mexico') AND \"building\" = 'torre reforma'" + }, + { + "db_id": "2-18223138-1", + "question": "What Time has Ad Freq of 15 minutes, and a Show Name of country today?", + "evidence": "", + "schema_text_wo_content": "Table 2-18223138-1, columns = [Time, Show Name, Local/Networked, Ad Freq, News Freq]\n", + "schema_text_with_content": "Table 2-18223138-1, columns = [`Time` (Example values: [5:00am–6:30am, 6:30am–7:00am, 7:00am–8:30am]), `Show Name` (Example values: [ross kay for breakfast, country today, mornings with neil mitchell]), `Local/Networked` (Example values: [local, networked, networked (from melbourne)]), `Ad Freq` (Example values: [quarter hour, 20 minutes]), `News Freq` (Example values: [30 minutes, sixty minutes, 1 hour])]\n", + "ori_query": "select `time` from `2-18223138-1` where `ad freq` = '15 minutes' and `show name` = 'country today'", + "amb_query": "SELECT \"time\" FROM \"2-18223138-1\" WHERE ad freq IN ('15 minutes', 'quarter hour') AND \"show name\" = 'country today'" + }, + { + "db_id": "2-18223138-1", + "question": "What Ad Freq has a News Freq of 60 minutes, and a Local/Networked of local?", + "evidence": "", + "schema_text_wo_content": "Table 2-18223138-1, columns = [Time, Show Name, Local/Networked, Ad Freq, News Freq]\n", + "schema_text_with_content": "Table 2-18223138-1, columns = [`Time` (Example values: [5:00am–6:30am, 6:30am–7:00am, 7:00am–8:30am]), `Show Name` (Example values: [ross kay for breakfast, country today, mornings with neil mitchell]), `Local/Networked` (Example values: [local, networked, networked (from melbourne)]), `Ad Freq` (Example values: [quarter hour, 20 minutes]), `News Freq` (Example values: [30 minutes, sixty minutes, 1 hour])]\n", + "ori_query": "select `ad freq` from `2-18223138-1` where `news freq` = '60 minutes' and `local/networked` = 'local'", + "amb_query": "SELECT \"ad freq\" FROM \"2-18223138-1\" WHERE news freq IN ('1 hour', '60 minutes', 'sixty minutes') AND \"local/networked\" = 'local'" + }, + { + "db_id": "2-18942405-11", + "question": "What school has south bend as the location, with indians as the mascot?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942405-11, columns = [School, Mascot, Location, Enrollment, IHSAA Class, IHSAA Football Class, County]\n", + "schema_text_with_content": "Table 2-18942405-11, columns = [`School` (Example values: [elkhart central, mishawaka, mishawaka marian]), `Mascot` (Example values: [blue blazers, cavemen, knights]), `Location` (Example values: [elkhart, mishawaka, south bend area]), `Enrollment` (Example values: [1,800, 1,560, 676.0]), `IHSAA Class` (Example values: [aaaa, aaa]), `IHSAA Football Class` (Example values: [aaaaa, aaaa, aaa]), `County` (Example values: [20 elkhart, 71 st. joseph])]\n", + "ori_query": "select `school` from `2-18942405-11` where `location` = 'south bend' and `mascot` = 'indians'", + "amb_query": "SELECT \"school\" FROM \"2-18942405-11\" WHERE location IN ('south bend', 'south bend area', 'south bend city') AND \"mascot\" = 'indians'" + }, + { + "db_id": "2-18942275-1", + "question": "What is the Place associated with Cuba?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942275-1, columns = [Event, Performance, Nation, Place, Date]\n", + "schema_text_with_content": "Table 2-18942275-1, columns = [`Event` (Example values: [100 m, 200 m, 4 x 100 m relay]), `Performance` (Example values: [9.72, 9.69, 19.30]), `Nation` (Example values: [jamaica, jamaican nation, jamaica, caribbean]), `Place` (Example values: [new york city ny , usa, beijing , china, ostrava , czech republic]), `Date` (Example values: [may 31, august 16, august 20])]\n", + "ori_query": "select `place` from `2-18942275-1` where `nation` = 'cuba'", + "amb_query": "SELECT \"place\" FROM \"2-18942275-1\" WHERE nation IN ('cuba', 'cuba island')" + }, + { + "db_id": "2-18942275-1", + "question": "Which place had a performance of 19.30 seconds by Jamaica?", + "evidence": "", + "schema_text_wo_content": "Table 2-18942275-1, columns = [Event, Performance, Nation, Place, Date]\n", + "schema_text_with_content": "Table 2-18942275-1, columns = [`Event` (Example values: [100 m, 200 m, 4 x 100 m relay]), `Performance` (Example values: [9.72, 9.69, 19.30]), `Nation` (Example values: [jamaica, jamaican nation, jamaica, caribbean]), `Place` (Example values: [new york city ny , usa, beijing , china, ostrava , czech republic]), `Date` (Example values: [may 31, august 16, august 20])]\n", + "ori_query": "select `place` from `2-18942275-1` where `nation` = 'jamaica' and `performance` = '19.30'", + "amb_query": "SELECT \"place\" FROM \"2-18942275-1\" WHERE nation IN ('jamaica', 'jamaica, caribbean', 'jamaican nation') AND \"performance\" = '19.30'" + }, + { + "db_id": "2-15313481-14", + "question": "What is the name of the non-mammal from brazil of the unit of caturrita formation?", + "evidence": "", + "schema_text_wo_content": "Table 2-15313481-14, columns = [Name, Status, Authors, Unit, Location]\n", + "schema_text_with_content": "Table 2-15313481-14, columns = [`Name` (Example values: [delectosaurus, interpresosaurus, lumkuia]), `Status` (Example values: [valid]), `Authors` (Example values: [kurkin, hopson kitching, tatarinov]), `Unit` (Example values: [vyazniki assemblage, burgersdorp formation, fleming fjord formation]), `Location` (Example values: [russia, south africa, greenland, north america])]\n", + "ori_query": "select `name` from `2-15313481-14` where `location` = 'brazil' and `unit` = 'caturrita formation'", + "amb_query": "SELECT \"name\" FROM \"2-15313481-14\" WHERE location IN ('brazil', 'the country of brazil') AND \"unit\" = 'caturrita formation'" + }, + { + "db_id": "2-15313481-14", + "question": "What is the unit of the non-mammal from greenland?", + "evidence": "", + "schema_text_wo_content": "Table 2-15313481-14, columns = [Name, Status, Authors, Unit, Location]\n", + "schema_text_with_content": "Table 2-15313481-14, columns = [`Name` (Example values: [delectosaurus, interpresosaurus, lumkuia]), `Status` (Example values: [valid]), `Authors` (Example values: [kurkin, hopson kitching, tatarinov]), `Unit` (Example values: [vyazniki assemblage, burgersdorp formation, fleming fjord formation]), `Location` (Example values: [russia, south africa, greenland, north america])]\n", + "ori_query": "select `unit` from `2-15313481-14` where `location` = 'greenland'", + "amb_query": "SELECT \"unit\" FROM \"2-15313481-14\" WHERE location IN ('greenland', 'greenland, north america')" + }, + { + "db_id": "2-1332289-1", + "question": "Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance?", + "evidence": "", + "schema_text_wo_content": "Table 2-1332289-1, columns = [Game, Date, Location, Time, Attendance]\n", + "schema_text_with_content": "Table 2-1332289-1, columns = [`Game` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [october 1, october 2, october 3]), `Location` (Example values: [ebbets field stadium, yankee stadium (i) ballpark]), `Time` (Example values: [2:21, 2:47, 2:56]), `Attendance` (Example values: [34,861, 33,792, 66,698])]\n", + "ori_query": "select sum(`attendance`) from `2-1332289-1` where `location` = 'ebbets field' and `time` = '2:56' and `game` > 6", + "amb_query": "SELECT SUM(\"attendance\") FROM \"2-1332289-1\" WHERE location IN ('ebbets field', 'ebbets field stadium') AND \"time\" = '2:56' AND \"game\" > 6" + }, + { + "db_id": "2-1332289-1", + "question": "yankee stadium (i), and a Time of 3:00 has what attendance for this location?", + "evidence": "", + "schema_text_wo_content": "Table 2-1332289-1, columns = [Game, Date, Location, Time, Attendance]\n", + "schema_text_with_content": "Table 2-1332289-1, columns = [`Game` (Example values: [1.0, 2.0, 3.0]), `Date` (Example values: [october 1, october 2, october 3]), `Location` (Example values: [ebbets field stadium, yankee stadium (i) ballpark]), `Time` (Example values: [2:21, 2:47, 2:56]), `Attendance` (Example values: [34,861, 33,792, 66,698])]\n", + "ori_query": "select `attendance` from `2-1332289-1` where `location` = 'yankee stadium (i)' and `time` = '3:00'", + "amb_query": "SELECT \"attendance\" FROM \"2-1332289-1\" WHERE location IN ('yankee stadium (i) ballpark', 'yankee stadium (i)') AND \"time\" = '3:00'" + }, + { + "db_id": "1-12078626-1", + "question": " what's the date of completion where deadline for completion is september 30, 2007", + "evidence": "", + "schema_text_wo_content": "Table 1-12078626-1, columns = [Symbol, Description, Success, Date of completion, Deadline for completion]\n", + "schema_text_with_content": "Table 1-12078626-1, columns = [`Symbol` (Example values: [newipod, iprecal, diggrip]), `Description` (Example values: [apple releases wide-aspect ratio touch screen ipod, iphone recall within the first 3 months of release, digg is shut down for posting aacs decryption keys]), `Success` (Example values: [yes, no]), `Date of completion` (Example values: [september 5, 2007, september 28, 2007, october 1, 2007]), `Deadline for completion` (Example values: [09/30/2007, september 28, 2007, october 1, 2007])]\n", + "ori_query": "select `date of completion` from `1-12078626-1` where `deadline for completion` = 'september 30, 2007'", + "amb_query": "SELECT \"date of completion\" FROM \"1-12078626-1\" WHERE deadline for completion IN ('09/30/2007', 'september 30, 2007')" + }, + { + "db_id": "1-12078626-1", + "question": " what's the success where deadline for completion is october 7, 2007", + "evidence": "", + "schema_text_wo_content": "Table 1-12078626-1, columns = [Symbol, Description, Success, Date of completion, Deadline for completion]\n", + "schema_text_with_content": "Table 1-12078626-1, columns = [`Symbol` (Example values: [newipod, iprecal, diggrip]), `Description` (Example values: [apple releases wide-aspect ratio touch screen ipod, iphone recall within the first 3 months of release, digg is shut down for posting aacs decryption keys]), `Success` (Example values: [yes, no]), `Date of completion` (Example values: [september 5, 2007, september 28, 2007, october 1, 2007]), `Deadline for completion` (Example values: [09/30/2007, september 28, 2007, october 1, 2007])]\n", + "ori_query": "select `success` from `1-12078626-1` where `deadline for completion` = 'october 7, 2007'", + "amb_query": "SELECT \"success\" FROM \"1-12078626-1\" WHERE deadline for completion IN ('october 7, 2007', 'october 7th, 2007')" + }, + { + "db_id": "1-17822401-1", + "question": "What is the callsign for the Cebu station?", + "evidence": "", + "schema_text_wo_content": "Table 1-17822401-1, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-17822401-1, columns = [`Branding` (Example values: [radyo5 92.3 news fm, radyo5 102.3 news fm, radyo5 101.9 news fm]), `Callsign` (Example values: [dwfm, dzyb-fm, dybc-fm]), `Frequency` (Example values: [92.3mhz, 102.3mhz, 101.9mhz]), `Power (kW)` (Example values: [25kw, 10kw, 5kw]), `Location` (Example values: [metro manila, city of baguio, bacolod])]\n", + "ori_query": "select `callsign` from `1-17822401-1` where `location` = 'cebu'", + "amb_query": "SELECT \"callsign\" FROM \"1-17822401-1\" WHERE location IN ('cebu', 'cebu province')" + }, + { + "db_id": "1-17822401-1", + "question": "What is the power of the Baguio station?", + "evidence": "", + "schema_text_wo_content": "Table 1-17822401-1, columns = [Branding, Callsign, Frequency, Power (kW), Location]\n", + "schema_text_with_content": "Table 1-17822401-1, columns = [`Branding` (Example values: [radyo5 92.3 news fm, radyo5 102.3 news fm, radyo5 101.9 news fm]), `Callsign` (Example values: [dwfm, dzyb-fm, dybc-fm]), `Frequency` (Example values: [92.3mhz, 102.3mhz, 101.9mhz]), `Power (kW)` (Example values: [25kw, 10kw, 5kw]), `Location` (Example values: [metro manila, city of baguio, bacolod])]\n", + "ori_query": "select `power (kw)` from `1-17822401-1` where `location` = 'baguio'", + "amb_query": "SELECT \"power (kw)\" FROM \"1-17822401-1\" WHERE location IN ('baguio', 'city of baguio')" + }, + { + "db_id": "1-22357065-1", + "question": "Name the league cup for northern ireland", + "evidence": "", + "schema_text_wo_content": "Table 1-22357065-1, columns = [#, Name, Nation, Years, League, FA Cup, League Cup, Other [C ], Total]\n", + "schema_text_with_content": "Table 1-22357065-1, columns = [`#` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [bob morton category:articles with hcards, fred hawkes category:articles with hcards, ricky hill category:articles with hcards]), `Nation` (Example values: [england, ni]), `Years` (Example values: [1948–64 ¤, 1899–1920 ¤, 1975–89]), `League` (Example values: [495 (0), 509 (0), 429 (7)]), `FA Cup` (Example values: [48 (0), 40 (0), 33 (0)]), `League Cup` (Example values: [7 (0), 0 (0), 37 (1)]), `Other [C ]` (Example values: [12 (0), 0 (0), 3 (0)]), `Total` (Example values: [562 (0), 549 (0), 499 (8)])]\n", + "ori_query": "select `league cup` from `1-22357065-1` where `nation` = 'northern ireland'", + "amb_query": "SELECT \"league cup\" FROM \"1-22357065-1\" WHERE nation IN ('northern ireland', 'ni')" + }, + { + "db_id": "1-24302700-2", + "question": "How many men from the Ukraine?", + "evidence": "", + "schema_text_wo_content": "Table 1-24302700-2, columns = [Position, Name, Nationality, Event 1 Medley, Event 2 Truck Pull, Event 3 Squat Lift, Event 4 Carwalk, Event 5 Dumbbell Press, Event 6 Atlas Stones]\n", + "schema_text_with_content": "Table 1-24302700-2, columns = [`Position` (Example values: [1 (34pts), 4 (18pts), wd (after rd 5)]), `Name` (Example values: [derek poundstone, jimmy marku, kevin nee]), `Nationality` (Example values: [america, united kingdom, the country of ukraine]), `Event 1 Medley` (Example values: [1 (38.71s), 2 (44.06s), 6 (16.6m)]), `Event 2 Truck Pull` (Example values: [1 (42.66s), 6 (1m 07.47s), 5 (1m 05.59s)]), `Event 3 Squat Lift` (Example values: [2 (6 in 30.02s), 1 (6 in 25.57s), 3 (6 in 31.19s)]), `Event 4 Carwalk` (Example values: [1 (19.09s), 5 (12.3m), 3 (46.53s)]), `Event 5 Dumbbell Press` (Example values: [1 (9 reps), 4= (0 reps), 2 (8 reps)]), `Event 6 Atlas Stones` (Example values: [2 (4 stones in 25.1s), 3 (4 stones in 59.6s), wd])]\n", + "ori_query": "select count(`event 4 carwalk`) from `1-24302700-2` where `nationality` = 'ukraine'", + "amb_query": "SELECT COUNT(\"event 4 carwalk\") FROM \"1-24302700-2\" WHERE nationality IN ('the country of ukraine', 'ukraine')" + }, + { + "db_id": "1-24302700-2", + "question": "What was the result(s) in the event 3 squatlift for the man from the United states with a result of 1 (42.66s) in the event 2 truck pull?", + "evidence": "", + "schema_text_wo_content": "Table 1-24302700-2, columns = [Position, Name, Nationality, Event 1 Medley, Event 2 Truck Pull, Event 3 Squat Lift, Event 4 Carwalk, Event 5 Dumbbell Press, Event 6 Atlas Stones]\n", + "schema_text_with_content": "Table 1-24302700-2, columns = [`Position` (Example values: [1 (34pts), 4 (18pts), wd (after rd 5)]), `Name` (Example values: [derek poundstone, jimmy marku, kevin nee]), `Nationality` (Example values: [america, united kingdom, the country of ukraine]), `Event 1 Medley` (Example values: [1 (38.71s), 2 (44.06s), 6 (16.6m)]), `Event 2 Truck Pull` (Example values: [1 (42.66s), 6 (1m 07.47s), 5 (1m 05.59s)]), `Event 3 Squat Lift` (Example values: [2 (6 in 30.02s), 1 (6 in 25.57s), 3 (6 in 31.19s)]), `Event 4 Carwalk` (Example values: [1 (19.09s), 5 (12.3m), 3 (46.53s)]), `Event 5 Dumbbell Press` (Example values: [1 (9 reps), 4= (0 reps), 2 (8 reps)]), `Event 6 Atlas Stones` (Example values: [2 (4 stones in 25.1s), 3 (4 stones in 59.6s), wd])]\n", + "ori_query": "select `event 3 squat lift` from `1-24302700-2` where `nationality` = 'united states' and `event 2 truck pull` = '1 (42.66s)'", + "amb_query": "SELECT \"event 3 squat lift\" FROM \"1-24302700-2\" WHERE nationality IN ('america', 'united states') AND \"event 2 truck pull\" = '1 (42.66s)'" + }, + { + "db_id": "1-2679061-6", + "question": "What is the nhl team for the position centre and nationality united states?", + "evidence": "", + "schema_text_wo_content": "Table 1-2679061-6, columns = [Pick #, Player, Position, Nationality, NHL team, College/junior/club team]\n", + "schema_text_with_content": "Table 1-2679061-6, columns = [`Pick #` (Example values: [103.0, 104.0, 105.0]), `Player` (Example values: [patrick emond, brian johnson, gord mark]), `Position` (Example values: [centre, defence, goaltender]), `Nationality` (Example values: [canada, america, united states of america]), `NHL team` (Example values: [pittsburgh penguins, hartford whalers, new jersey devils]), `College/junior/club team` (Example values: [hull olympiques (qmjhl), silver bay high school (ushs-mn), kamloops blazers (whl)])]\n", + "ori_query": "select `nhl team` from `1-2679061-6` where `position` = 'centre' and `nationality` = 'united states'", + "amb_query": "SELECT \"nhl team\" FROM \"1-2679061-6\" WHERE \"position\" = 'centre' AND nationality IN ('america', 'the united states of america', 'united states', 'usa', 'united states of america')" + }, + { + "db_id": "1-29483673-1", + "question": "What is the enrollment at the private university?", + "evidence": "", + "schema_text_wo_content": "Table 1-29483673-1, columns = [Institution, Location - City, Location - State, Nickname, Founded, Affiliation, Enrollment, Primary Conference]\n", + "schema_text_with_content": "Table 1-29483673-1, columns = [`Institution` (Example values: [ball state university, central michigan university, university of cincinnati]), `Location - City` (Example values: [muncie, mount pleasant, cincinnati]), `Location - State` (Example values: [indiana, michigan, ohio]), `Nickname` (Example values: [cardinals, chippewas, bearcats]), `Founded` (Example values: [1918.0, 1892.0, 1819.0]), `Affiliation` (Example values: [public, privately funded]), `Enrollment` (Example values: [21401.0, 28398.0, 41250.0]), `Primary Conference` (Example values: [mac, big east, gliac])]\n", + "ori_query": "select `enrollment` from `1-29483673-1` where `affiliation` = 'private'", + "amb_query": "SELECT \"enrollment\" FROM \"1-29483673-1\" WHERE affiliation IN ('private', 'privately funded')" + }, + { + "db_id": "2-13555999-1", + "question": "Which University students and adults have minimum diameter of Sakigawa for female gender?", + "evidence": "", + "schema_text_wo_content": "Table 2-13555999-1, columns = [Specification, Gender, Junior High School (12–15 yrs), Senior High School (15–18 yrs), University students and Adults (18yrs+)]\n", + "schema_text_with_content": "Table 2-13555999-1, columns = [`Specification` (Example values: [maximum length, minimum weight, minimum diameter of sakigawa]), `Gender` (Example values: [male & female, masculine, female]), `Junior High School (12–15 yrs)` (Example values: [114cm, 440g, 400g]), `Senior High School (15–18 yrs)` (Example values: [117cm, 480g, 420g]), `University students and Adults (18yrs+)` (Example values: [120cm, 510g, 440g])]\n", + "ori_query": "select `university students and adults (18yrs+)` from `2-13555999-1` where `specification` = 'minimum diameter of sakigawa' and `gender` = 'female'", + "amb_query": "SELECT \"university students and adults (18yrs+)\" FROM \"2-13555999-1\" WHERE \"specification\" = 'minimum diameter of sakigawa' AND gender IN ('female', 'women')" + }, + { + "db_id": "2-13555999-1", + "question": "Which junior high school has male and female genders?", + "evidence": "", + "schema_text_wo_content": "Table 2-13555999-1, columns = [Specification, Gender, Junior High School (12–15 yrs), Senior High School (15–18 yrs), University students and Adults (18yrs+)]\n", + "schema_text_with_content": "Table 2-13555999-1, columns = [`Specification` (Example values: [maximum length, minimum weight, minimum diameter of sakigawa]), `Gender` (Example values: [male & female, masculine, female]), `Junior High School (12–15 yrs)` (Example values: [114cm, 440g, 400g]), `Senior High School (15–18 yrs)` (Example values: [117cm, 480g, 420g]), `University students and Adults (18yrs+)` (Example values: [120cm, 510g, 440g])]\n", + "ori_query": "select `junior high school (12–15 yrs)` from `2-13555999-1` where `gender` = 'male and female'", + "amb_query": "SELECT \"junior high school (12–15 yrs)\" FROM \"2-13555999-1\" WHERE gender IN ('male & female', 'male and female')" + }, + { + "db_id": "2-13555999-1", + "question": "What value for university students and adult goes with male gender for minimum weight?", + "evidence": "", + "schema_text_wo_content": "Table 2-13555999-1, columns = [Specification, Gender, Junior High School (12–15 yrs), Senior High School (15–18 yrs), University students and Adults (18yrs+)]\n", + "schema_text_with_content": "Table 2-13555999-1, columns = [`Specification` (Example values: [maximum length, minimum weight, minimum diameter of sakigawa]), `Gender` (Example values: [male & female, masculine, female]), `Junior High School (12–15 yrs)` (Example values: [114cm, 440g, 400g]), `Senior High School (15–18 yrs)` (Example values: [117cm, 480g, 420g]), `University students and Adults (18yrs+)` (Example values: [120cm, 510g, 440g])]\n", + "ori_query": "select `university students and adults (18yrs+)` from `2-13555999-1` where `gender` = 'male' and `specification` = 'minimum weight'", + "amb_query": "SELECT \"university students and adults (18yrs+)\" FROM \"2-13555999-1\" WHERE gender IN ('male', 'masculine', 'male gender') AND \"specification\" = 'minimum weight'" + }, + { + "db_id": "2-16181798-1", + "question": "What is the mean number of languages for the monthly frequency when the publisher is the hearst corporation?", + "evidence": "", + "schema_text_wo_content": "Table 2-16181798-1, columns = [Rank, Name, Circulation per issue, Number of languages, Frequency, Publisher]\n", + "schema_text_with_content": "Table 2-16181798-1, columns = [`Rank` (Example values: [1.0, 2.0, 3.0]), `Name` (Example values: [the watchtower, awake!, aarp the magazine]), `Circulation per issue` (Example values: [45,944,000, 44,748,000, 23,721,626]), `Number of languages` (Example values: [212.0, 99.0, 1.0]), `Frequency` (Example values: [monthly, monthly basis, semi-monthly]), `Publisher` (Example values: [watchtower bible and tract society, aarp, adac])]\n", + "ori_query": "select avg(`number of languages`) from `2-16181798-1` where `frequency` = 'monthly' and `publisher` = 'hearst corporation'", + "amb_query": "SELECT AVG(\"number of languages\") FROM \"2-16181798-1\" WHERE frequency IN ('monthly', 'monthly basis', 'monthly schedule', 'once a month') AND \"publisher\" = 'hearst corporation'" + }, + { + "db_id": "2-16250642-1", + "question": "What is the Brigade, when the Type is Rural, and when the value for Tankers is 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-16250642-1, columns = [Brigade, Type, Pumpers, Tankers, Slip-Ons, Cars, Hazmat]\n", + "schema_text_with_content": "Table 2-16250642-1, columns = [`Brigade` (Example values: [beeac,victoria (volunteers) 2, colac,victoria (volunteers) 1, forrest,victoria (volunteers) 1]), `Type` (Example values: [rural community, urban, rural residential]), `Pumpers` (Example values: [–, 1]), `Tankers` (Example values: [2.0, 1.0]), `Slip-Ons` (Example values: [–]), `Cars` (Example values: [–, 2]), `Hazmat` (Example values: [–])]\n", + "ori_query": "select `brigade` from `2-16250642-1` where `type` = 'rural' and `tankers` = 1", + "amb_query": "SELECT \"brigade\" FROM \"2-16250642-1\" WHERE type IN ('rural community', 'rural industrial', 'rural', 'rural residential') AND \"tankers\" = 1" + }, + { + "db_id": "2-16250642-1", + "question": "What is the Hazmat, when the Type is Rural, and when the number of Tankers is 1?", + "evidence": "", + "schema_text_wo_content": "Table 2-16250642-1, columns = [Brigade, Type, Pumpers, Tankers, Slip-Ons, Cars, Hazmat]\n", + "schema_text_with_content": "Table 2-16250642-1, columns = [`Brigade` (Example values: [beeac,victoria (volunteers) 2, colac,victoria (volunteers) 1, forrest,victoria (volunteers) 1]), `Type` (Example values: [rural community, urban, rural residential]), `Pumpers` (Example values: [–, 1]), `Tankers` (Example values: [2.0, 1.0]), `Slip-Ons` (Example values: [–]), `Cars` (Example values: [–, 2]), `Hazmat` (Example values: [–])]\n", + "ori_query": "select `hazmat` from `2-16250642-1` where `type` = 'rural' and `tankers` = 1", + "amb_query": "SELECT \"hazmat\" FROM \"2-16250642-1\" WHERE type IN ('rural community', 'rural industrial', 'rural', 'rural residential') AND \"tankers\" = 1" + }, + { + "db_id": "2-17577144-2", + "question": "What date that was the league position was 1st, and the result F– A was 5 – 0?", + "evidence": "", + "schema_text_wo_content": "Table 2-17577144-2, columns = [Date, Opponents, H / A, Result F – A, Attendance, League position]\n", + "schema_text_with_content": "Table 2-17577144-2, columns = [`Date` (Example values: [17 august 1991, 21 august 1991, 24 august 1991]), `Opponents` (Example values: [notts county, aston villa, everton]), `H / A` (Example values: [h, a]), `Result F – A` (Example values: [2 – 0, 1 – 0, 0 – 0]), `Attendance` (Example values: [46,278, 39,995, 36,085]), `League position` (Example values: [1st place, 2nd, first place in league])]\n", + "ori_query": "select `date` from `2-17577144-2` where `league position` = '1st' and `result f – a` = '5 – 0'", + "amb_query": "SELECT \"date\" FROM \"2-17577144-2\" WHERE league position IN ('1st place', '1st', 'first', 'first place in league', 'leading position') AND \"result f – a\" = '5 – 0'" + }, + { + "db_id": "2-17577144-2", + "question": "What date was Notts County the opponent and the league position was 1st?", + "evidence": "", + "schema_text_wo_content": "Table 2-17577144-2, columns = [Date, Opponents, H / A, Result F – A, Attendance, League position]\n", + "schema_text_with_content": "Table 2-17577144-2, columns = [`Date` (Example values: [17 august 1991, 21 august 1991, 24 august 1991]), `Opponents` (Example values: [notts county, aston villa, everton]), `H / A` (Example values: [h, a]), `Result F – A` (Example values: [2 – 0, 1 – 0, 0 – 0]), `Attendance` (Example values: [46,278, 39,995, 36,085]), `League position` (Example values: [1st place, 2nd, first place in league])]\n", + "ori_query": "select `date` from `2-17577144-2` where `opponents` = 'notts county' and `league position` = '1st'", + "amb_query": "SELECT \"date\" FROM \"2-17577144-2\" WHERE \"opponents\" = 'notts county' AND league position IN ('1st place', '1st', 'first', 'first place in league', 'leading position')" + } +] \ No newline at end of file