Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
json
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
10K - 100K
DOI:
License:
| {"question_id":13692,"db_id":"retail_complains","dber_id":"bird:train.json:282","question":"Among the clients born between 1980 and 2000, list the name of male clients who complained through referral.","SQL":"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year BETWEEN 1980 AND 2000 AND T1.sex = 'Male' AND T2.`Submitted via` = 'Referral'","tokens":["Among","the","clients","born","between","1980","and","2000",",","list","the","name","of","male","clients","who","complained","through","referral","."],"entities":[{"id":0,"type":"table","value":"clients"},{"id":1,"type":"value","value":"1980"},{"id":2,"type":"value","value":"2000"},{"id":3,"type":"value","value":"male"},{"id":4,"type":"table","value":"clients"},{"id":5,"type":"value","value":"referral"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[13]},{"entity_id":4,"token_idxs":[14]},{"entity_id":5,"token_idxs":[18]}],"dber_tags":["O","O","B-TABLE","O","O","B-VALUE","O","B-VALUE","O","O","O","O","O","B-VALUE","B-TABLE","O","O","O","B-VALUE","O"]} | |
| {"question_id":10813,"db_id":"superhero","dber_id":"bird:dev.json:736","question":"Who is the dumbest superhero?","SQL":"SELECT T1.superhero_name 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 WHERE T3.attribute_name = 'Intelligence' ORDER BY T2.attribute_value LIMIT 1","tokens":["Who","is","the","dumbest","superhero","?"],"entities":[{"id":0,"type":"table","value":"superhero"}],"entity_to_token":[{"entity_id":0,"token_idxs":[4]}],"dber_tags":["O","O","O","O","B-TABLE","O"]} | |
| {"question_id":15884,"db_id":"superstore","dber_id":"bird:train.json:2385","question":"Who is the customer from the East region that purchased the order with the highest profit?","SQL":"SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'East' ORDER BY T1.Profit DESC LIMIT 1","tokens":["Who","is","the","customer","from","the","East","region","that","purchased","the","order","with","the","highest","profit","?"],"entities":[{"id":0,"type":"column","value":"customer"},{"id":1,"type":"value","value":"East"},{"id":2,"type":"column","value":"region"},{"id":3,"type":"column","value":"order"},{"id":4,"type":"column","value":"profit"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[11]},{"entity_id":4,"token_idxs":[15]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-VALUE","B-COLUMN","O","O","O","B-COLUMN","O","O","O","B-COLUMN","O"]} | |
| {"question_id":2664,"db_id":"manufactory_1","dber_id":"bird:train_spider.json:5301","question":"What are the names of manufacturers with revenue greater than the average of all revenues?","SQL":"SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)","tokens":["What","are","the","names","of","manufacturers","with","revenue","greater","than","the","average","of","all","revenues","?"],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"manufacturers"},{"id":2,"type":"column","value":"revenue"},{"id":3,"type":"column","value":"revenues"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[14]}],"dber_tags":["O","O","O","B-COLUMN","O","B-TABLE","O","B-COLUMN","O","O","O","O","O","O","B-COLUMN","O"]} | |
| {"question_id":7749,"db_id":"college_2","dber_id":"bird:train_spider.json:1425","question":"What is the title of the course with Differential Geometry as a prerequisite?","SQL":"SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')","tokens":["What","is","the","title","of","the","course","with","Differential","Geometry","as","a","prerequisite","?"],"entities":[{"id":0,"type":"column","value":"title"},{"id":1,"type":"table","value":"course"},{"id":2,"type":"value","value":"Differential Geometry"},{"id":3,"type":"table","value":"prerequisite"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[8,9]},{"entity_id":3,"token_idxs":[12]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","B-VALUE","I-VALUE","O","O","B-TABLE","O"]} | |
| {"question_id":14617,"db_id":"address","dber_id":"bird:train.json:5109","question":"Which state is Outagamie County in? Give the full name of the state.","SQL":"SELECT DISTINCT T2.name FROM country AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.county = 'OUTAGAMIE'","tokens":["Which","state","is","Outagamie","County","in","?","Give","the","full","name","of","the","state","."],"entities":[{"id":0,"type":"table","value":"state"},{"id":1,"type":"value","value":"Outagamie"},{"id":2,"type":"column","value":"County"},{"id":3,"type":"column","value":"name"},{"id":4,"type":"table","value":"state"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1]},{"entity_id":1,"token_idxs":[3]},{"entity_id":2,"token_idxs":[4]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[13]}],"dber_tags":["O","B-TABLE","O","B-VALUE","B-COLUMN","O","O","O","O","O","B-COLUMN","O","O","B-TABLE","O"]} | |
| {"question_id":626,"db_id":"university","dber_id":"bird:train.json:8072","question":"In which year did university ID 1 have the most students?","SQL":"SELECT year FROM university_year WHERE university_id = 1 ORDER BY num_students DESC LIMIT 1","tokens":["In","which","year","did","university","ID","1","have","the","most","students","?"],"entities":[{"id":0,"type":"column","value":"year"},{"id":1,"type":"column","value":"university ID"},{"id":2,"type":"value","value":"1"},{"id":3,"type":"column","value":"students"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[4,5]},{"entity_id":2,"token_idxs":[6]},{"entity_id":3,"token_idxs":[10]}],"dber_tags":["O","O","B-COLUMN","O","B-COLUMN","I-COLUMN","B-VALUE","O","O","O","B-COLUMN","O"]} | |
| {"question_id":7573,"db_id":"e_learning","dber_id":"bird:train_spider.json:3798","question":"List the personal names and family names of all the students in alphabetical order of family name.","SQL":"SELECT personal_name , family_name FROM Students ORDER BY family_name","tokens":["List","the","personal","names","and","family","names","of","all","the","students","in","alphabetical","order","of","family","name","."],"entities":[{"id":0,"type":"column","value":"personal names"},{"id":1,"type":"column","value":"family names"},{"id":2,"type":"table","value":"students"},{"id":3,"type":"column","value":"family name"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[5,6]},{"entity_id":2,"token_idxs":[10]},{"entity_id":3,"token_idxs":[15,16]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","B-COLUMN","I-COLUMN","O","O","O","B-TABLE","O","O","O","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":9749,"db_id":"soccer_2016","dber_id":"bird:train.json:1916","question":"What is the name of the player who has been chosen the most times for 'Man of the Series'?","SQL":"SELECT T3.Player_Name FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Man_of_the_Series = T2.Man_of_the_Match INNER JOIN Player AS T3 ON T2.Man_of_the_Match = T3.Player_Id GROUP BY T3.Player_Name ORDER BY COUNT(T1.Man_of_the_Series) DESC LIMIT 1","tokens":["What","is","the","name","of","the","player","who","has","been","chosen","the","most","times","for","'","Man","of","the","Series","'","?"],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"table","value":"player"},{"id":2,"type":"column","value":"Man of the Series"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[16,17,18,19]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","O","O","O","O","O","B-COLUMN","I-COLUMN","I-COLUMN","I-COLUMN","O","O"]} | |
| {"question_id":15180,"db_id":"cs_semester","dber_id":"bird:train.json:922","question":"Describe the full names, emails and intelligence of the students with the highest capability and salary.","SQL":"SELECT f_name, l_name, email, intelligence FROM student WHERE student_id IN ( SELECT student_id FROM RA WHERE salary = 'high' AND capability = ( SELECT MAX(capability) FROM RA ) )","tokens":["Describe","the","full","names",",","emails","and","intelligence","of","the","students","with","the","highest","capability","and","salary","."],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"column","value":"emails"},{"id":2,"type":"column","value":"intelligence"},{"id":3,"type":"table","value":"students"},{"id":4,"type":"column","value":"capability"},{"id":5,"type":"column","value":"salary"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[14]},{"entity_id":5,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","O","B-COLUMN","O","B-COLUMN","O","O","B-TABLE","O","O","O","B-COLUMN","O","B-COLUMN","O"]} | |
| {"question_id":11266,"db_id":"bbc_channels","dber_id":"bird:test.json:132","question":"Find the name and internet web of the channel that is directed by the most directors.","SQL":"SELECT t1.name , t1.internet FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id ORDER BY count(*) DESC LIMIT 1","tokens":["Find","the","name","and","internet","web","of","the","channel","that","is","directed","by","the","most","directors","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"column","value":"internet"},{"id":2,"type":"table","value":"channel"},{"id":3,"type":"table","value":"directors"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[15]}],"dber_tags":["O","O","B-COLUMN","O","B-COLUMN","O","O","O","B-TABLE","O","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":10339,"db_id":"movie_3","dber_id":"bird:train.json:9211","question":"How many films in the horror category were included in PG-13-rated?","SQL":"SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Horror' AND T1.rating = 'PG-13'","tokens":["How","many","films","in","the","horror","category","were","included","in","PG-13","-","rated","?"],"entities":[{"id":0,"type":"table","value":"films"},{"id":1,"type":"value","value":"horror"},{"id":2,"type":"table","value":"category"},{"id":3,"type":"value","value":"PG-13"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[6]},{"entity_id":3,"token_idxs":[10]}],"dber_tags":["O","O","B-TABLE","O","O","B-VALUE","B-TABLE","O","O","O","B-VALUE","O","O","O"]} | |
| {"question_id":11931,"db_id":"customers_and_addresses","dber_id":"bird:train_spider.json:6102","question":"Compute the average active time span of contact channels.","SQL":"SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels","tokens":["Compute","the","average","active","time","span","of","contact","channels","."],"entities":[{"id":0,"type":"column","value":"active"},{"id":1,"type":"table","value":"contact channels"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[7,8]}],"dber_tags":["O","O","O","B-COLUMN","O","O","O","B-TABLE","I-TABLE","O"]} | |
| {"question_id":10972,"db_id":"bike_1","dber_id":"bird:train_spider.json:123","question":"For each zip code, return the average mean temperature of August there.","SQL":"SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code","tokens":["For","each","zip","code",",","return","the","average","mean","temperature","of","August","there","."],"entities":[{"id":0,"type":"column","value":"zip code"},{"id":1,"type":"column","value":"mean temperature"},{"id":2,"type":"value","value":"August"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[8,9]},{"entity_id":2,"token_idxs":[11]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","O","O","O","B-COLUMN","I-COLUMN","O","B-VALUE","O","O"]} | |
| {"question_id":10501,"db_id":"menu","dber_id":"bird:train.json:5515","question":"What is the page count for menu with page ID of 130?","SQL":"SELECT T1.page_count FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.id = 130","tokens":["What","is","the","page","count","for","menu","with","page","ID","of","130","?"],"entities":[{"id":0,"type":"column","value":"page count"},{"id":1,"type":"table","value":"menu"},{"id":2,"type":"column","value":"page ID"},{"id":3,"type":"value","value":"130"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[8,9]},{"entity_id":3,"token_idxs":[11]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","B-COLUMN","I-COLUMN","O","B-VALUE","O"]} | |
| {"question_id":10468,"db_id":"video_games","dber_id":"bird:train.json:3496","question":"List down the name of strategy games.","SQL":"SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Strategy'","tokens":["List","down","the","name","of","strategy","games","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"value","value":"strategy"},{"id":2,"type":"table","value":"games"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[6]}],"dber_tags":["O","O","O","B-COLUMN","O","B-VALUE","B-TABLE","O"]} | |
| {"question_id":7491,"db_id":"soccer_2016","dber_id":"bird:train.json:1794","question":"Among the players who use the right hand as their batting hand, how many of them were born after 1985?","SQL":"SELECT SUM(CASE WHEN SUBSTR(T1.DOB, 1, 4) > 1985 THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_Hand = 'Right-hand bat'","tokens":["Among","the","players","who","use","the","right","hand","as","their","batting","hand",",","how","many","of","them","were","born","after","1985","?"],"entities":[{"id":0,"type":"table","value":"players"},{"id":1,"type":"value","value":"right hand"},{"id":2,"type":"column","value":"batting hand"},{"id":3,"type":"value","value":"1985"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[6,7]},{"entity_id":2,"token_idxs":[10,11]},{"entity_id":3,"token_idxs":[20]}],"dber_tags":["O","O","B-TABLE","O","O","O","B-VALUE","I-VALUE","O","O","B-COLUMN","I-COLUMN","O","O","O","O","O","O","O","O","B-VALUE","O"]} | |
| {"question_id":12432,"db_id":"party_people","dber_id":"bird:train_spider.json:2044","question":"Count the number of different parties.","SQL":"SELECT count(DISTINCT party_name) FROM party","tokens":["Count","the","number","of","different","parties","."],"entities":[{"id":0,"type":"table","value":"parties"}],"entity_to_token":[{"entity_id":0,"token_idxs":[5]}],"dber_tags":["O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":13905,"db_id":"railway","dber_id":"bird:train_spider.json:5648","question":"List the object number of railways that do not have any trains.","SQL":"SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)","tokens":["List","the","object","number","of","railways","that","do","not","have","any","trains","."],"entities":[{"id":0,"type":"column","value":"object number"},{"id":1,"type":"table","value":"railways"},{"id":2,"type":"table","value":"trains"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[11]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":10403,"db_id":"ship_mission","dber_id":"bird:train_spider.json:4007","question":"What are the names of the ships that are from either the US or the UK?","SQL":"SELECT Name FROM ship WHERE Nationality = \"United States\" OR Nationality = \"United Kingdom\"","tokens":["What","are","the","names","of","the","ships"," ","that","are","from","either","the","US","or","the","UK","?"],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"ships"},{"id":2,"type":"value","value":"US"},{"id":3,"type":"value","value":"UK"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[13]},{"entity_id":3,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","O","O","B-VALUE","O","O","B-VALUE","O"]} | |
| {"question_id":9132,"db_id":"assets_maintenance","dber_id":"bird:train_spider.json:3128","question":"How many assets does each third party company supply? List the count and the company id.","SQL":"SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id","tokens":["How","many","assets","does","each","third","party","company","supply","?","List","the","count","and","the","company","i","d."],"entities":[{"id":0,"type":"table","value":"assets"},{"id":1,"type":"table","value":"third party company"},{"id":2,"type":"column","value":"company i d."}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5,6,7]},{"entity_id":2,"token_idxs":[15,16,17]}],"dber_tags":["O","O","B-TABLE","O","O","B-TABLE","I-TABLE","I-TABLE","O","O","O","O","O","O","O","B-COLUMN","I-COLUMN","I-COLUMN"]} | |
| {"question_id":3997,"db_id":"college_2","dber_id":"bird:train_spider.json:1407","question":"What is the year and semester with the most courses?","SQL":"SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1","tokens":["What","is","the","year","and","semester","with","the","most","courses","?"],"entities":[{"id":0,"type":"column","value":"year"},{"id":1,"type":"column","value":"semester"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]}],"dber_tags":["O","O","O","B-COLUMN","O","B-COLUMN","O","O","O","O","O"]} | |
| {"question_id":10862,"db_id":"loan_1","dber_id":"bird:train_spider.json:3079","question":"What are the names of banks that have loaned money to customers with credit scores below 100?","SQL":"SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100","tokens":["What","are","the","names","of","banks","that","have","loaned","money","to","customers","with","credit","scores","below","100","?"],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"banks"},{"id":2,"type":"table","value":"loaned"},{"id":3,"type":"table","value":"customers"},{"id":4,"type":"column","value":"credit scores"},{"id":5,"type":"value","value":"100"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[11]},{"entity_id":4,"token_idxs":[13,14]},{"entity_id":5,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","O","B-TABLE","O","O","B-TABLE","O","O","B-TABLE","O","B-COLUMN","I-COLUMN","O","B-VALUE","O"]} | |
| {"question_id":3111,"db_id":"retails","dber_id":"bird:train.json:6822","question":"What is the largest supplier's account balance?","SQL":"SELECT MAX(s_acctbal) FROM supplier","tokens":["What","is","the","largest","supplier","'s","account","balance","?"],"entities":[{"id":0,"type":"table","value":"supplier"},{"id":1,"type":"column","value":"account balance"}],"entity_to_token":[{"entity_id":0,"token_idxs":[4]},{"entity_id":1,"token_idxs":[6,7]}],"dber_tags":["O","O","O","O","B-TABLE","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":3119,"db_id":"cars","dber_id":"bird:train.json:3132","question":"Calculate the average production rate per year from 1971 to 1980. Among them, name the cars with a weight of fewer than 1800 lbs.","SQL":"SELECT CAST(COUNT(T1.ID) AS REAL) / 9 FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 UNION ALL SELECT DISTINCT T2.car_name FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 AND T2.weight < 1800","tokens":["Calculate","the","average","production","rate","per","year","from","1971","to","1980",".","Among","them",",","name","the","cars","with","a","weight","of","fewer","than","1800","lbs","."],"entities":[{"id":0,"type":"table","value":"production"},{"id":1,"type":"column","value":"year"},{"id":2,"type":"value","value":"1971"},{"id":3,"type":"value","value":"1980"},{"id":4,"type":"column","value":"name"},{"id":5,"type":"column","value":"cars"},{"id":6,"type":"column","value":"weight"},{"id":7,"type":"value","value":"1800"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[15]},{"entity_id":5,"token_idxs":[17]},{"entity_id":6,"token_idxs":[20]},{"entity_id":7,"token_idxs":[24]}],"dber_tags":["O","O","O","B-TABLE","O","O","B-COLUMN","O","B-VALUE","O","B-VALUE","O","O","O","O","B-COLUMN","O","B-COLUMN","O","O","B-COLUMN","O","O","O","B-VALUE","O","O"]} | |
| {"question_id":9771,"db_id":"books","dber_id":"bird:train.json:6080","question":"Name the title of the book with the most number of pages that was published from 1990 to 2000 by publisher Free Press.","SQL":"SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Free Press' AND STRFTIME('%Y', T1.publication_date) BETWEEN '1990' AND '2000' ORDER BY T1.num_pages DESC LIMIT 1","tokens":["Name","the","title","of","the","book","with","the","most","number","of","pages","that","was","published","from","1990","to","2000","by","publisher","Free","Press","."],"entities":[{"id":0,"type":"column","value":"title"},{"id":1,"type":"table","value":"book"},{"id":2,"type":"column","value":"pages"},{"id":3,"type":"value","value":"1990"},{"id":4,"type":"value","value":"2000"},{"id":5,"type":"table","value":"publisher"},{"id":6,"type":"value","value":"Free Press"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[16]},{"entity_id":4,"token_idxs":[18]},{"entity_id":5,"token_idxs":[20]},{"entity_id":6,"token_idxs":[21,22]}],"dber_tags":["O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","O","B-COLUMN","O","O","O","O","B-VALUE","O","B-VALUE","O","B-TABLE","B-VALUE","I-VALUE","O"]} | |
| {"question_id":1124,"db_id":"small_bank_1","dber_id":"bird:train_spider.json:1822","question":"Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.","SQL":"SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance","tokens":["Find","the","name","and","total","checking","and","savings","balance","of","the","accounts","whose","savings","balance","is","lower","than","corresponding","checking","balance","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"table","value":"checking"},{"id":2,"type":"table","value":"savings"},{"id":3,"type":"column","value":"balance"},{"id":4,"type":"table","value":"accounts"},{"id":5,"type":"table","value":"savings"},{"id":6,"type":"column","value":"balance"},{"id":7,"type":"table","value":"checking"},{"id":8,"type":"column","value":"balance"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[8]},{"entity_id":4,"token_idxs":[11]},{"entity_id":5,"token_idxs":[13]},{"entity_id":6,"token_idxs":[14]},{"entity_id":7,"token_idxs":[19]},{"entity_id":8,"token_idxs":[20]}],"dber_tags":["O","O","B-COLUMN","O","O","B-TABLE","O","B-TABLE","B-COLUMN","O","O","B-TABLE","O","B-TABLE","B-COLUMN","O","O","O","O","B-TABLE","B-COLUMN","O"]} | |
| {"question_id":4861,"db_id":"car_racing","dber_id":"bird:test.json:1605","question":"What are the maximum and minimum points of drivers.","SQL":"SELECT max(Points) , min(Points) FROM driver","tokens":["What","are","the","maximum","and","minimum","points","of","drivers","."],"entities":[{"id":0,"type":"column","value":"points"},{"id":1,"type":"table","value":"drivers"}],"entity_to_token":[{"entity_id":0,"token_idxs":[6]},{"entity_id":1,"token_idxs":[8]}],"dber_tags":["O","O","O","O","O","O","B-COLUMN","O","B-TABLE","O"]} | |
| {"question_id":11149,"db_id":"retail_world","dber_id":"bird:train.json:6364","question":"What is the most widely used shipping company in the United States of America?","SQL":"SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.ShipCountry = 'USA' GROUP BY T2.CompanyName ORDER BY COUNT(T2.CompanyName) DESC LIMIT 1","tokens":["What","is","the","most","widely","used","shipping","company","in","the","United","States","of","America","?"],"entities":[{"id":0,"type":"table","value":"shipping"},{"id":1,"type":"column","value":"company"},{"id":2,"type":"value","value":"United States of America"}],"entity_to_token":[{"entity_id":0,"token_idxs":[6]},{"entity_id":1,"token_idxs":[7]},{"entity_id":2,"token_idxs":[10,11,12,13]}],"dber_tags":["O","O","O","O","O","O","B-TABLE","B-COLUMN","O","O","B-VALUE","I-VALUE","I-VALUE","I-VALUE","O"]} | |
| {"question_id":1020,"db_id":"image_and_language","dber_id":"bird:train.json:7486","question":"Please list the IDs of all the images with more than 2 pairs of object samples with the relation \"parked on\".","SQL":"SELECT T2.IMG_ID FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.PRED_CLASS = 'parked on' AND T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID GROUP BY T2.IMG_ID HAVING COUNT(T2.IMG_ID) > 2","tokens":["Please","list","the","IDs","of","all","the","images","with","more","than","2","pairs","of","object","samples","with","the","relation","\"","parked","on","\"","."],"entities":[{"id":0,"type":"table","value":"images"},{"id":1,"type":"value","value":"2"},{"id":2,"type":"column","value":"object samples"},{"id":3,"type":"value","value":"parked on"}],"entity_to_token":[{"entity_id":0,"token_idxs":[7]},{"entity_id":1,"token_idxs":[11]},{"entity_id":2,"token_idxs":[14,15]},{"entity_id":3,"token_idxs":[20,21]}],"dber_tags":["O","O","O","O","O","O","O","B-TABLE","O","O","O","B-VALUE","O","O","B-COLUMN","I-COLUMN","O","O","O","O","B-VALUE","I-VALUE","O","O"]} | |
| {"question_id":12184,"db_id":"mondial_geo","dber_id":"bird:train.json:8281","question":"What is the area of Egypt as a percentage of Asia?","SQL":"SELECT T1.Area * 100 / T3.Area FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt'","tokens":["What","is","the","area","of","Egypt","as","a","percentage","of","Asia","?"],"entities":[{"id":0,"type":"column","value":"area"},{"id":1,"type":"value","value":"Egypt"},{"id":2,"type":"column","value":"percentage"},{"id":3,"type":"value","value":"Asia"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[10]}],"dber_tags":["O","O","O","B-COLUMN","O","B-VALUE","O","O","B-COLUMN","O","B-VALUE","O"]} | |
| {"question_id":15047,"db_id":"legislator","dber_id":"bird:train.json:4873","question":"How many Jewish legislators do not have facebook?","SQL":"SELECT COUNT(T3.bioguide_id) FROM ( SELECT T1.bioguide_id FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook IS NULL GROUP BY T1.bioguide_id ) T3","tokens":["How","many","Jewish","legislators","do","not","have","facebook","?"],"entities":[{"id":0,"type":"value","value":"Jewish"},{"id":1,"type":"column","value":"facebook"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[7]}],"dber_tags":["O","O","B-VALUE","O","O","O","O","B-COLUMN","O"]} | |
| {"question_id":14791,"db_id":"region_building","dber_id":"bird:test.json:335","question":"Show the names of regions that have more than one building.","SQL":"SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*) > 1","tokens":["Show","the","names","of","regions","that","have","more","than","one","building","."],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"regions"},{"id":2,"type":"value","value":"one"},{"id":3,"type":"table","value":"building"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[9]},{"entity_id":3,"token_idxs":[10]}],"dber_tags":["O","O","B-COLUMN","O","B-TABLE","O","O","O","O","B-VALUE","B-TABLE","O"]} | |
| {"question_id":4173,"db_id":"codebase_community","dber_id":"bird:dev.json:676","question":"Please list all display names of users who are adults.","SQL":"SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65","tokens":["Please","list","all","display","names","of","users","who","are","adults","."],"entities":[{"id":0,"type":"column","value":"display names"},{"id":1,"type":"table","value":"users"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[6]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","O","O","O"]} | |
| {"question_id":15346,"db_id":"student_1","dber_id":"bird:train_spider.json:4072","question":"How many teachers does the student named CHRISSY NABOZNY have?","SQL":"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"CHRISSY\" AND T1.lastname = \"NABOZNY\"","tokens":["How","many","teachers","does","the","student","named","CHRISSY","NABOZNY","have","?"],"entities":[{"id":0,"type":"table","value":"teachers"},{"id":1,"type":"column","value":"named"},{"id":2,"type":"value","value":"CHRISSY NABOZNY"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[7,8]}],"dber_tags":["O","O","B-TABLE","O","O","O","B-COLUMN","B-VALUE","I-VALUE","O","O"]} | |
| {"question_id":7814,"db_id":"network_2","dber_id":"bird:train_spider.json:4469","question":"Which friend of Zach has the longest-lasting friendship?","SQL":"SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')","tokens":["Which","friend","of","Zach","has","the","longest","-","lasting","friendship","?"],"entities":[{"id":0,"type":"column","value":"friend"},{"id":1,"type":"value","value":"Zach"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1]},{"entity_id":1,"token_idxs":[3]}],"dber_tags":["O","B-COLUMN","O","B-VALUE","O","O","O","O","O","O","O"]} | |
| {"question_id":5728,"db_id":"college_2","dber_id":"bird:train_spider.json:1415","question":"Give id of the instructor who advises students in the History department.","SQL":"SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'","tokens":["Give","i","d","of","the","instructor","who","advises","students","in","the","History","department","."],"entities":[{"id":0,"type":"column","value":"i d"},{"id":1,"type":"table","value":"advises students"},{"id":2,"type":"value","value":"History"},{"id":3,"type":"table","value":"department"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1,2]},{"entity_id":1,"token_idxs":[7,8]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[12]}],"dber_tags":["O","B-COLUMN","I-COLUMN","O","O","O","O","B-TABLE","I-TABLE","O","O","B-VALUE","B-TABLE","O"]} | |
| {"question_id":8786,"db_id":"olympics","dber_id":"bird:train.json:5027","question":"How many competitors were there who participated in 2000 Summer with age 31?","SQL":"SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2000 Summer' AND T2.age = 31","tokens":["How","many","competitors","were","there","who","participated","in","2000","Summer","with","age","31","?"],"entities":[{"id":0,"type":"table","value":"competitors"},{"id":1,"type":"value","value":"2000 Summer"},{"id":2,"type":"column","value":"age"},{"id":3,"type":"value","value":"31"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[8,9]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[12]}],"dber_tags":["O","O","B-TABLE","O","O","O","O","O","B-VALUE","I-VALUE","O","B-COLUMN","B-VALUE","O"]} | |
| {"question_id":2900,"db_id":"public_review_platform","dber_id":"bird:train.json:3973","question":"Based on all user compliments, find the percentage of low number of compliments on all compliments ID.","SQL":"SELECT CAST(SUM(CASE WHEN number_of_compliments = 'Low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(user_id) FROM Users_compliments","tokens":["Based","on","all","user","compliments",",","find","the","percentage","of","low","number","of","compliments","on","all","compliments","ID","."],"entities":[{"id":0,"type":"table","value":"user compliments"},{"id":1,"type":"value","value":"low"},{"id":2,"type":"column","value":"number"},{"id":3,"type":"column","value":"compliments"},{"id":4,"type":"column","value":"compliments ID"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[10]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[13]},{"entity_id":4,"token_idxs":[16,17]}],"dber_tags":["O","O","O","B-TABLE","I-TABLE","O","O","O","O","O","B-VALUE","B-COLUMN","O","B-COLUMN","O","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":3388,"db_id":"tracking_grants_for_research","dber_id":"bird:train_spider.json:4323","question":"What are the details of the project that is producing both patents and papers as outcomes?","SQL":"SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'","tokens":["What","are","the","details","of","the","project","that","is","producing","both","patents","and","papers","as","outcomes","?"],"entities":[{"id":0,"type":"column","value":"details"},{"id":1,"type":"table","value":"project"},{"id":2,"type":"value","value":"patents"},{"id":3,"type":"value","value":"papers"},{"id":4,"type":"column","value":"outcomes"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[13]},{"entity_id":4,"token_idxs":[15]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","B-VALUE","O","B-VALUE","O","B-COLUMN","O"]} | |
| {"question_id":1104,"db_id":"restaurant_1","dber_id":"bird:train_spider.json:2833","question":"Which major has between 2 and 30 number of students? List major and the number of students.","SQL":"SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;","tokens":["Which","major","has","between","2","and","30","number","of","students","?","List","major","and","the","number","of","students","."],"entities":[{"id":0,"type":"column","value":"major"},{"id":1,"type":"value","value":"2"},{"id":2,"type":"value","value":"30"},{"id":3,"type":"table","value":"students"},{"id":4,"type":"column","value":"major"},{"id":5,"type":"table","value":"students"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[6]},{"entity_id":3,"token_idxs":[9]},{"entity_id":4,"token_idxs":[12]},{"entity_id":5,"token_idxs":[17]}],"dber_tags":["O","B-COLUMN","O","O","B-VALUE","O","B-VALUE","O","O","B-TABLE","O","O","B-COLUMN","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":11438,"db_id":"party_host","dber_id":"bird:train_spider.json:2666","question":"Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".","SQL":"SELECT First_year , Last_year FROM party WHERE Party_Theme = \"Spring\" OR Party_Theme = \"Teqnology\"","tokens":["Show","the","first","year","and","last","year","of","parties","with","theme","\"","Spring","\"","or","\"","Teqnology","\"","."],"entities":[{"id":0,"type":"column","value":"first year"},{"id":1,"type":"column","value":"last year"},{"id":2,"type":"table","value":"parties"},{"id":3,"type":"column","value":"theme"},{"id":4,"type":"value","value":"Spring"},{"id":5,"type":"value","value":"Teqnology"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[5,6]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[12]},{"entity_id":5,"token_idxs":[16]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","B-COLUMN","O","B-VALUE","O","O","O","B-VALUE","O","O"]} | |
| {"question_id":3752,"db_id":"gymnast","dber_id":"bird:train_spider.json:1750","question":"What is the age of the tallest person?","SQL":"SELECT Age FROM people ORDER BY Height DESC LIMIT 1","tokens":["What","is","the","age","of","the","tallest","person","?"],"entities":[{"id":0,"type":"column","value":"age"},{"id":1,"type":"table","value":"person"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[7]}],"dber_tags":["O","O","O","B-COLUMN","O","O","O","B-TABLE","O"]} | |
| {"question_id":931,"db_id":"dorm_1","dber_id":"bird:train_spider.json:5731","question":"How many students are from each city, and which cities have more than one cities?","SQL":"SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1","tokens":["How","many","students","are","from","each","city",",","and","which","cities","have","more","than","one","cities","?"],"entities":[{"id":0,"type":"table","value":"students"},{"id":1,"type":"column","value":"city"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[6]}],"dber_tags":["O","O","B-TABLE","O","O","O","B-COLUMN","O","O","O","O","O","O","O","O","O","O"]} | |
| {"question_id":10532,"db_id":"music_2","dber_id":"bird:train_spider.json:5196","question":"What is the last name of the musician that have produced the most number of songs?","SQL":"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1","tokens":["What","is","the","last","name","of","the","musician","that","have","produced","the","most","number","of","songs","?"],"entities":[{"id":0,"type":"column","value":"last name"},{"id":1,"type":"table","value":"songs"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[15]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","O","O","O","O","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":685,"db_id":"car_retails","dber_id":"bird:train.json:1639","question":"List all the name of customers who have orders that are still processing.","SQL":"SELECT t2.customerName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.status = 'In Process'","tokens":["List","all","the","name","of","customers","who","have","orders","that","are","still","processing","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"table","value":"customers"},{"id":2,"type":"table","value":"orders"},{"id":3,"type":"value","value":"processing"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[12]}],"dber_tags":["O","O","O","B-COLUMN","O","B-TABLE","O","O","B-TABLE","O","O","O","B-VALUE","O"]} | |
| {"question_id":13261,"db_id":"authors","dber_id":"bird:train.json:3536","question":"What are the paper IDs of papers presented in conferences has a homepage starts with \"http://www.informatik.uni-trier.de/~ley/db/conf/\"?","SQL":"SELECT T1.Id FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.HomePage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%'","tokens":["What","are","the","paper","IDs","of","papers","presented","in","conferences","has","a","homepage","starts","with","\"","http://www.informatik.uni-trier.de/~ley/db/conf/","\"","?"],"entities":[{"id":0,"type":"table","value":"paper"},{"id":1,"type":"column","value":"IDs"},{"id":2,"type":"table","value":"conferences"},{"id":3,"type":"column","value":"homepage"},{"id":4,"type":"value","value":"http://www.informatik.uni-trier.de/~ley/db/conf/"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[9]},{"entity_id":3,"token_idxs":[12]},{"entity_id":4,"token_idxs":[16]}],"dber_tags":["O","O","O","B-TABLE","B-COLUMN","O","O","O","O","B-TABLE","O","O","B-COLUMN","O","O","O","B-VALUE","O","O"]} | |
| {"question_id":7517,"db_id":"student_loan","dber_id":"bird:train.json:4498","question":"Calculate the percentage of female students.","SQL":"SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name","tokens":["Calculate","the","percentage","of","female","students","."],"entities":[{"id":0,"type":"table","value":"female"}],"entity_to_token":[{"entity_id":0,"token_idxs":[4]}],"dber_tags":["O","O","O","O","B-TABLE","O","O"]} | |
| {"question_id":15388,"db_id":"mondial_geo","dber_id":"bird:train.json:8472","question":"What is the organization(s) that has 'National Society' as member type.","SQL":"SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T2.Type = 'National Society'","tokens":["What","is","the","organization(s",")","that","has","'","National","Society","'","as","member","type","."],"entities":[{"id":0,"type":"table","value":"organization(s"},{"id":1,"type":"value","value":"National Society"},{"id":2,"type":"table","value":"member"},{"id":3,"type":"column","value":"type"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[8,9]},{"entity_id":2,"token_idxs":[12]},{"entity_id":3,"token_idxs":[13]}],"dber_tags":["O","O","O","B-TABLE","O","O","O","O","B-VALUE","I-VALUE","O","O","B-TABLE","B-COLUMN","O"]} | |
| {"question_id":9697,"db_id":"movie_3","dber_id":"bird:train.json:9413","question":"What is the postal code of the address 692 Joliet Street?","SQL":"SELECT postal_code FROM address WHERE address = '692 Joliet Street'","tokens":["What","is","the","postal","code","of","the","address","692","Joliet","Street","?"],"entities":[{"id":0,"type":"column","value":"postal code"},{"id":1,"type":"table","value":"address"},{"id":2,"type":"value","value":"692 Joliet Street"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[7]},{"entity_id":2,"token_idxs":[8,9,10]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","O","B-TABLE","B-VALUE","I-VALUE","I-VALUE","O"]} | |
| {"question_id":13692,"db_id":"retail_complains","dber_id":"bird:train.json:282","question":"Among the clients born between 1980 and 2000, list the name of male clients who complained through referral.","SQL":"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year BETWEEN 1980 AND 2000 AND T1.sex = 'Male' AND T2.`Submitted via` = 'Referral'","tokens":["Among","the","clients","born","between","1980","and","2000",",","list","the","name","of","male","clients","who","complained","through","referral","."],"entities":[{"id":0,"type":"table","value":"clients"},{"id":1,"type":"value","value":"1980"},{"id":2,"type":"value","value":"2000"},{"id":3,"type":"value","value":"male"},{"id":4,"type":"table","value":"clients"},{"id":5,"type":"value","value":"referral"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[13]},{"entity_id":4,"token_idxs":[14]},{"entity_id":5,"token_idxs":[18]}],"dber_tags":["O","O","B-TABLE","O","O","B-VALUE","O","B-VALUE","O","O","O","O","O","B-VALUE","B-TABLE","O","O","O","B-VALUE","O"]} | |
| {"question_id":10813,"db_id":"superhero","dber_id":"bird:dev.json:736","question":"Who is the dumbest superhero?","SQL":"SELECT T1.superhero_name 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 WHERE T3.attribute_name = 'Intelligence' ORDER BY T2.attribute_value LIMIT 1","tokens":["Who","is","the","dumbest","superhero","?"],"entities":[{"id":0,"type":"table","value":"superhero"}],"entity_to_token":[{"entity_id":0,"token_idxs":[4]}],"dber_tags":["O","O","O","O","B-TABLE","O"]} | |
| {"question_id":15884,"db_id":"superstore","dber_id":"bird:train.json:2385","question":"Who is the customer from the East region that purchased the order with the highest profit?","SQL":"SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'East' ORDER BY T1.Profit DESC LIMIT 1","tokens":["Who","is","the","customer","from","the","East","region","that","purchased","the","order","with","the","highest","profit","?"],"entities":[{"id":0,"type":"table","value":"customer"},{"id":1,"type":"value","value":"East"},{"id":2,"type":"column","value":"region"},{"id":3,"type":"table","value":"the"},{"id":4,"type":"column","value":"profit"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[15]}],"dber_tags":["O","O","O","B-TABLE","O","O","B-VALUE","B-COLUMN","O","O","B-TABLE","O","O","O","O","B-COLUMN","O"]} | |
| {"question_id":2664,"db_id":"manufactory_1","dber_id":"bird:train_spider.json:5301","question":"What are the names of manufacturers with revenue greater than the average of all revenues?","SQL":"SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)","tokens":["What","are","the","names","of","manufacturers","with","revenue","greater","than","the","average","of","all","revenues","?"],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"manufacturers"},{"id":2,"type":"column","value":"revenue"},{"id":3,"type":"column","value":"revenues"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[14]}],"dber_tags":["O","O","O","B-COLUMN","O","B-TABLE","O","B-COLUMN","O","O","O","O","O","O","B-COLUMN","O"]} | |
| {"question_id":7749,"db_id":"college_2","dber_id":"bird:train_spider.json:1425","question":"What is the title of the course with Differential Geometry as a prerequisite?","SQL":"SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')","tokens":["What","is","the","title","of","the","course","with","Differential","Geometry","as","a","prerequisite","?"],"entities":[{"id":0,"type":"column","value":"title"},{"id":1,"type":"table","value":"course"},{"id":2,"type":"value","value":"Differential Geometry"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[8,9]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","B-VALUE","I-VALUE","O","O","O","O"]} | |
| {"question_id":14617,"db_id":"address","dber_id":"bird:train.json:5109","question":"Which state is Outagamie County in? Give the full name of the state.","SQL":"SELECT DISTINCT T2.name FROM country AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.county = 'OUTAGAMIE'","tokens":["Which","state","is","Outagamie","County","in","?","Give","the","full","name","of","the","state","."],"entities":[{"id":0,"type":"table","value":"state"},{"id":1,"type":"value","value":"Outagamie County"},{"id":2,"type":"column","value":"name"},{"id":3,"type":"table","value":"state"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1]},{"entity_id":1,"token_idxs":[3,4]},{"entity_id":2,"token_idxs":[10]},{"entity_id":3,"token_idxs":[13]}],"dber_tags":["O","B-TABLE","O","B-VALUE","I-VALUE","O","O","O","O","O","B-COLUMN","O","O","B-TABLE","O"]} | |
| {"question_id":626,"db_id":"university","dber_id":"bird:train.json:8072","question":"In which year did university ID 1 have the most students?","SQL":"SELECT year FROM university_year WHERE university_id = 1 ORDER BY num_students DESC LIMIT 1","tokens":["In","which","year","did","university","ID","1","have","the","most","students","?"],"entities":[{"id":0,"type":"column","value":"year"},{"id":1,"type":"table","value":"university"},{"id":2,"type":"column","value":"ID"},{"id":3,"type":"value","value":"1"},{"id":4,"type":"column","value":"students"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[5]},{"entity_id":3,"token_idxs":[6]},{"entity_id":4,"token_idxs":[10]}],"dber_tags":["O","O","B-COLUMN","O","B-TABLE","B-COLUMN","B-VALUE","O","O","O","B-COLUMN","O"]} | |
| {"question_id":7573,"db_id":"e_learning","dber_id":"bird:train_spider.json:3798","question":"List the personal names and family names of all the students in alphabetical order of family name.","SQL":"SELECT personal_name , family_name FROM Students ORDER BY family_name","tokens":["List","the","personal","names","and","family","names","of","all","the","students","in","alphabetical","order","of","family","name","."],"entities":[{"id":0,"type":"column","value":"personal names"},{"id":1,"type":"column","value":"family names"},{"id":2,"type":"table","value":"students"},{"id":3,"type":"column","value":"family name"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[5,6]},{"entity_id":2,"token_idxs":[10]},{"entity_id":3,"token_idxs":[15,16]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","B-COLUMN","I-COLUMN","O","O","O","B-TABLE","O","O","O","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":9749,"db_id":"soccer_2016","dber_id":"bird:train.json:1916","question":"What is the name of the player who has been chosen the most times for 'Man of the Series'?","SQL":"SELECT T3.Player_Name FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Man_of_the_Series = T2.Man_of_the_Match INNER JOIN Player AS T3 ON T2.Man_of_the_Match = T3.Player_Id GROUP BY T3.Player_Name ORDER BY COUNT(T1.Man_of_the_Series) DESC LIMIT 1","tokens":["What","is","the","name","of","the","player","who","has","been","chosen","the","most","times","for","'","Man","of","the","Series","'","?"],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"table","value":"player"},{"id":2,"type":"column","value":"Man of the Series"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[16,17,18,19]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","O","O","O","O","O","B-COLUMN","I-COLUMN","I-COLUMN","I-COLUMN","O","O"]} | |
| {"question_id":15180,"db_id":"cs_semester","dber_id":"bird:train.json:922","question":"Describe the full names, emails and intelligence of the students with the highest capability and salary.","SQL":"SELECT f_name, l_name, email, intelligence FROM student WHERE student_id IN ( SELECT student_id FROM RA WHERE salary = 'high' AND capability = ( SELECT MAX(capability) FROM RA ) )","tokens":["Describe","the","full","names",",","emails","and","intelligence","of","the","students","with","the","highest","capability","and","salary","."],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"column","value":"emails"},{"id":2,"type":"column","value":"intelligence"},{"id":3,"type":"table","value":"students"},{"id":4,"type":"column","value":"capability"},{"id":5,"type":"column","value":"salary"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[14]},{"entity_id":5,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","O","B-COLUMN","O","B-COLUMN","O","O","B-TABLE","O","O","O","B-COLUMN","O","B-COLUMN","O"]} | |
| {"question_id":11266,"db_id":"bbc_channels","dber_id":"bird:test.json:132","question":"Find the name and internet web of the channel that is directed by the most directors.","SQL":"SELECT t1.name , t1.internet FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id ORDER BY count(*) DESC LIMIT 1","tokens":["Find","the","name","and","internet","web","of","the","channel","that","is","directed","by","the","most","directors","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"column","value":"internet web"},{"id":2,"type":"table","value":"channel"},{"id":3,"type":"table","value":"directors"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[4,5]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[15]}],"dber_tags":["O","O","B-COLUMN","O","B-COLUMN","I-COLUMN","O","O","B-TABLE","O","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":10339,"db_id":"movie_3","dber_id":"bird:train.json:9211","question":"How many films in the horror category were included in PG-13-rated?","SQL":"SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Horror' AND T1.rating = 'PG-13'","tokens":["How","many","films","in","the","horror","category","were","included","in","PG-13","-","rated","?"],"entities":[{"id":0,"type":"table","value":"films"},{"id":1,"type":"value","value":"horror"},{"id":2,"type":"table","value":"category"},{"id":3,"type":"value","value":"PG-13"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[6]},{"entity_id":3,"token_idxs":[10]}],"dber_tags":["O","O","B-TABLE","O","O","B-VALUE","B-TABLE","O","O","O","B-VALUE","O","O","O"]} | |
| {"question_id":11931,"db_id":"customers_and_addresses","dber_id":"bird:train_spider.json:6102","question":"Compute the average active time span of contact channels.","SQL":"SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels","tokens":["Compute","the","average","active","time","span","of","contact","channels","."],"entities":[{"id":0,"type":"table","value":"contact channels"}],"entity_to_token":[{"entity_id":0,"token_idxs":[7,8]}],"dber_tags":["O","O","O","O","O","O","O","B-TABLE","I-TABLE","O"]} | |
| {"question_id":10972,"db_id":"bike_1","dber_id":"bird:train_spider.json:123","question":"For each zip code, return the average mean temperature of August there.","SQL":"SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code","tokens":["For","each","zip","code",",","return","the","average","mean","temperature","of","August","there","."],"entities":[{"id":0,"type":"column","value":"zip code"},{"id":1,"type":"column","value":"mean temperature"},{"id":2,"type":"value","value":"August"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[8,9]},{"entity_id":2,"token_idxs":[11]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","O","O","O","B-COLUMN","I-COLUMN","O","B-VALUE","O","O"]} | |
| {"question_id":10501,"db_id":"menu","dber_id":"bird:train.json:5515","question":"What is the page count for menu with page ID of 130?","SQL":"SELECT T1.page_count FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.id = 130","tokens":["What","is","the","page","count","for","menu","with","page","ID","of","130","?"],"entities":[{"id":0,"type":"column","value":"page count"},{"id":1,"type":"table","value":"menu"},{"id":2,"type":"column","value":"page ID"},{"id":3,"type":"value","value":"130"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[8,9]},{"entity_id":3,"token_idxs":[11]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","B-COLUMN","I-COLUMN","O","B-VALUE","O"]} | |
| {"question_id":10468,"db_id":"video_games","dber_id":"bird:train.json:3496","question":"List down the name of strategy games.","SQL":"SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Strategy'","tokens":["List","down","the","name","of","strategy","games","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"value","value":"strategy"},{"id":2,"type":"table","value":"games"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[6]}],"dber_tags":["O","O","O","B-COLUMN","O","B-VALUE","B-TABLE","O"]} | |
| {"question_id":7491,"db_id":"soccer_2016","dber_id":"bird:train.json:1794","question":"Among the players who use the right hand as their batting hand, how many of them were born after 1985?","SQL":"SELECT SUM(CASE WHEN SUBSTR(T1.DOB, 1, 4) > 1985 THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_Hand = 'Right-hand bat'","tokens":["Among","the","players","who","use","the","right","hand","as","their","batting","hand",",","how","many","of","them","were","born","after","1985","?"],"entities":[{"id":0,"type":"table","value":"players"},{"id":1,"type":"value","value":"right hand"},{"id":2,"type":"column","value":"batting hand"},{"id":3,"type":"value","value":"1985"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[6,7]},{"entity_id":2,"token_idxs":[10,11]},{"entity_id":3,"token_idxs":[20]}],"dber_tags":["O","O","B-TABLE","O","O","O","B-VALUE","I-VALUE","O","O","B-COLUMN","I-COLUMN","O","O","O","O","O","O","O","O","B-VALUE","O"]} | |
| {"question_id":12432,"db_id":"party_people","dber_id":"bird:train_spider.json:2044","question":"Count the number of different parties.","SQL":"SELECT count(DISTINCT party_name) FROM party","tokens":["Count","the","number","of","different","parties","."],"entities":[{"id":0,"type":"table","value":"parties"}],"entity_to_token":[{"entity_id":0,"token_idxs":[5]}],"dber_tags":["O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":13905,"db_id":"railway","dber_id":"bird:train_spider.json:5648","question":"List the object number of railways that do not have any trains.","SQL":"SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)","tokens":["List","the","object","number","of","railways","that","do","not","have","any","trains","."],"entities":[{"id":0,"type":"column","value":"object number"},{"id":1,"type":"table","value":"railways"},{"id":2,"type":"table","value":"trains"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[11]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":10403,"db_id":"ship_mission","dber_id":"bird:train_spider.json:4007","question":"What are the names of the ships that are from either the US or the UK?","SQL":"SELECT Name FROM ship WHERE Nationality = \"United States\" OR Nationality = \"United Kingdom\"","tokens":["What","are","the","names","of","the","ships"," ","that","are","from","either","the","US","or","the","UK","?"],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"ships"},{"id":2,"type":"value","value":"US"},{"id":3,"type":"value","value":"UK"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[13]},{"entity_id":3,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","O","O","B-VALUE","O","O","B-VALUE","O"]} | |
| {"question_id":9132,"db_id":"assets_maintenance","dber_id":"bird:train_spider.json:3128","question":"How many assets does each third party company supply? List the count and the company id.","SQL":"SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id","tokens":["How","many","assets","does","each","third","party","company","supply","?","List","the","count","and","the","company","i","d."],"entities":[{"id":0,"type":"table","value":"assets"},{"id":1,"type":"table","value":"third party company"},{"id":2,"type":"column","value":"company i d."}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5,6,7]},{"entity_id":2,"token_idxs":[15,16,17]}],"dber_tags":["O","O","B-TABLE","O","O","B-TABLE","I-TABLE","I-TABLE","O","O","O","O","O","O","O","B-COLUMN","I-COLUMN","I-COLUMN"]} | |
| {"question_id":3997,"db_id":"college_2","dber_id":"bird:train_spider.json:1407","question":"What is the year and semester with the most courses?","SQL":"SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1","tokens":["What","is","the","year","and","semester","with","the","most","courses","?"],"entities":[{"id":0,"type":"column","value":"year"},{"id":1,"type":"column","value":"semester"},{"id":2,"type":"table","value":"courses"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[9]}],"dber_tags":["O","O","O","B-COLUMN","O","B-COLUMN","O","O","O","B-TABLE","O"]} | |
| {"question_id":10862,"db_id":"loan_1","dber_id":"bird:train_spider.json:3079","question":"What are the names of banks that have loaned money to customers with credit scores below 100?","SQL":"SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100","tokens":["What","are","the","names","of","banks","that","have","loaned","money","to","customers","with","credit","scores","below","100","?"],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"banks"},{"id":2,"type":"table","value":"customers"},{"id":3,"type":"column","value":"credit scores"},{"id":4,"type":"value","value":"100"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[13,14]},{"entity_id":4,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","O","B-TABLE","O","O","O","O","O","B-TABLE","O","B-COLUMN","I-COLUMN","O","B-VALUE","O"]} | |
| {"question_id":3111,"db_id":"retails","dber_id":"bird:train.json:6822","question":"What is the largest supplier's account balance?","SQL":"SELECT MAX(s_acctbal) FROM supplier","tokens":["What","is","the","largest","supplier","'s","account","balance","?"],"entities":[{"id":0,"type":"table","value":"supplier"},{"id":1,"type":"column","value":"account balance"}],"entity_to_token":[{"entity_id":0,"token_idxs":[4]},{"entity_id":1,"token_idxs":[6,7]}],"dber_tags":["O","O","O","O","B-TABLE","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":3119,"db_id":"cars","dber_id":"bird:train.json:3132","question":"Calculate the average production rate per year from 1971 to 1980. Among them, name the cars with a weight of fewer than 1800 lbs.","SQL":"SELECT CAST(COUNT(T1.ID) AS REAL) / 9 FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 UNION ALL SELECT DISTINCT T2.car_name FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 AND T2.weight < 1800","tokens":["Calculate","the","average","production","rate","per","year","from","1971","to","1980",".","Among","them",",","name","the","cars","with","a","weight","of","fewer","than","1800","lbs","."],"entities":[{"id":0,"type":"column","value":"year"},{"id":1,"type":"value","value":"1971"},{"id":2,"type":"value","value":"1980"},{"id":3,"type":"column","value":"name"},{"id":4,"type":"table","value":"cars"},{"id":5,"type":"column","value":"weight"},{"id":6,"type":"value","value":"1800"}],"entity_to_token":[{"entity_id":0,"token_idxs":[6]},{"entity_id":1,"token_idxs":[8]},{"entity_id":2,"token_idxs":[10]},{"entity_id":3,"token_idxs":[15]},{"entity_id":4,"token_idxs":[17]},{"entity_id":5,"token_idxs":[20]},{"entity_id":6,"token_idxs":[24]}],"dber_tags":["O","O","O","O","O","O","B-COLUMN","O","B-VALUE","O","B-VALUE","O","O","O","O","B-COLUMN","O","B-TABLE","O","O","B-COLUMN","O","O","O","B-VALUE","O","O"]} | |
| {"question_id":9771,"db_id":"books","dber_id":"bird:train.json:6080","question":"Name the title of the book with the most number of pages that was published from 1990 to 2000 by publisher Free Press.","SQL":"SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Free Press' AND STRFTIME('%Y', T1.publication_date) BETWEEN '1990' AND '2000' ORDER BY T1.num_pages DESC LIMIT 1","tokens":["Name","the","title","of","the","book","with","the","most","number","of","pages","that","was","published","from","1990","to","2000","by","publisher","Free","Press","."],"entities":[{"id":0,"type":"column","value":"title"},{"id":1,"type":"table","value":"book"},{"id":2,"type":"column","value":"pages"},{"id":3,"type":"value","value":"1990"},{"id":4,"type":"value","value":"2000"},{"id":5,"type":"table","value":"publisher"},{"id":6,"type":"value","value":"Free Press"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[16]},{"entity_id":4,"token_idxs":[18]},{"entity_id":5,"token_idxs":[20]},{"entity_id":6,"token_idxs":[21,22]}],"dber_tags":["O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","O","B-COLUMN","O","O","O","O","B-VALUE","O","B-VALUE","O","B-TABLE","B-VALUE","I-VALUE","O"]} | |
| {"question_id":1124,"db_id":"small_bank_1","dber_id":"bird:train_spider.json:1822","question":"Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.","SQL":"SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance","tokens":["Find","the","name","and","total","checking","and","savings","balance","of","the","accounts","whose","savings","balance","is","lower","than","corresponding","checking","balance","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"table","value":"checking"},{"id":2,"type":"table","value":"savings"},{"id":3,"type":"column","value":"balance"},{"id":4,"type":"table","value":"accounts"},{"id":5,"type":"table","value":"savings"},{"id":6,"type":"column","value":"balance"},{"id":7,"type":"table","value":"checking"},{"id":8,"type":"column","value":"balance"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7]},{"entity_id":3,"token_idxs":[8]},{"entity_id":4,"token_idxs":[11]},{"entity_id":5,"token_idxs":[13]},{"entity_id":6,"token_idxs":[14]},{"entity_id":7,"token_idxs":[19]},{"entity_id":8,"token_idxs":[20]}],"dber_tags":["O","O","B-COLUMN","O","O","B-TABLE","O","B-TABLE","B-COLUMN","O","O","B-TABLE","O","B-TABLE","B-COLUMN","O","O","O","O","B-TABLE","B-COLUMN","O"]} | |
| {"question_id":4861,"db_id":"car_racing","dber_id":"bird:test.json:1605","question":"What are the maximum and minimum points of drivers.","SQL":"SELECT max(Points) , min(Points) FROM driver","tokens":["What","are","the","maximum","and","minimum","points","of","drivers","."],"entities":[{"id":0,"type":"column","value":"points"},{"id":1,"type":"table","value":"drivers"}],"entity_to_token":[{"entity_id":0,"token_idxs":[6]},{"entity_id":1,"token_idxs":[8]}],"dber_tags":["O","O","O","O","O","O","B-COLUMN","O","B-TABLE","O"]} | |
| {"question_id":11149,"db_id":"retail_world","dber_id":"bird:train.json:6364","question":"What is the most widely used shipping company in the United States of America?","SQL":"SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.ShipCountry = 'USA' GROUP BY T2.CompanyName ORDER BY COUNT(T2.CompanyName) DESC LIMIT 1","tokens":["What","is","the","most","widely","used","shipping","company","in","the","United","States","of","America","?"],"entities":[{"id":0,"type":"table","value":"shipping company"},{"id":1,"type":"value","value":"United States of America"}],"entity_to_token":[{"entity_id":0,"token_idxs":[6,7]},{"entity_id":1,"token_idxs":[10,11,12,13]}],"dber_tags":["O","O","O","O","O","O","B-TABLE","I-TABLE","O","O","B-VALUE","I-VALUE","I-VALUE","I-VALUE","O"]} | |
| {"question_id":1020,"db_id":"image_and_language","dber_id":"bird:train.json:7486","question":"Please list the IDs of all the images with more than 2 pairs of object samples with the relation \"parked on\".","SQL":"SELECT T2.IMG_ID FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.PRED_CLASS = 'parked on' AND T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID GROUP BY T2.IMG_ID HAVING COUNT(T2.IMG_ID) > 2","tokens":["Please","list","the","IDs","of","all","the","images","with","more","than","2","pairs","of","object","samples","with","the","relation","\"","parked","on","\"","."],"entities":[{"id":0,"type":"column","value":"IDs"},{"id":1,"type":"table","value":"images"},{"id":2,"type":"value","value":"2"},{"id":3,"type":"column","value":"relation"},{"id":4,"type":"value","value":"parked on"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[7]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[18]},{"entity_id":4,"token_idxs":[20,21]}],"dber_tags":["O","O","O","B-COLUMN","O","O","O","B-TABLE","O","O","O","B-VALUE","O","O","O","O","O","O","B-COLUMN","O","B-VALUE","I-VALUE","O","O"]} | |
| {"question_id":12184,"db_id":"mondial_geo","dber_id":"bird:train.json:8281","question":"What is the area of Egypt as a percentage of Asia?","SQL":"SELECT T1.Area * 100 / T3.Area FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt'","tokens":["What","is","the","area","of","Egypt","as","a","percentage","of","Asia","?"],"entities":[{"id":0,"type":"column","value":"area"},{"id":1,"type":"value","value":"Egypt"},{"id":2,"type":"value","value":"Asia"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[10]}],"dber_tags":["O","O","O","B-COLUMN","O","B-VALUE","O","O","O","O","B-VALUE","O"]} | |
| {"question_id":15047,"db_id":"legislator","dber_id":"bird:train.json:4873","question":"How many Jewish legislators do not have facebook?","SQL":"SELECT COUNT(T3.bioguide_id) FROM ( SELECT T1.bioguide_id FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook IS NULL GROUP BY T1.bioguide_id ) T3","tokens":["How","many","Jewish","legislators","do","not","have","facebook","?"],"entities":[{"id":0,"type":"value","value":"Jewish"},{"id":1,"type":"table","value":"legislators"},{"id":2,"type":"column","value":"facebook"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[3]},{"entity_id":2,"token_idxs":[7]}],"dber_tags":["O","O","B-VALUE","B-TABLE","O","O","O","B-COLUMN","O"]} | |
| {"question_id":14791,"db_id":"region_building","dber_id":"bird:test.json:335","question":"Show the names of regions that have more than one building.","SQL":"SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*) > 1","tokens":["Show","the","names","of","regions","that","have","more","than","one","building","."],"entities":[{"id":0,"type":"column","value":"names"},{"id":1,"type":"table","value":"regions"},{"id":2,"type":"table","value":"building"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[10]}],"dber_tags":["O","O","B-COLUMN","O","B-TABLE","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":4173,"db_id":"codebase_community","dber_id":"bird:dev.json:676","question":"Please list all display names of users who are adults.","SQL":"SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65","tokens":["Please","list","all","display","names","of","users","who","are","adults","."],"entities":[{"id":0,"type":"column","value":"display names"},{"id":1,"type":"table","value":"users"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[6]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","O","O","O"]} | |
| {"question_id":15346,"db_id":"student_1","dber_id":"bird:train_spider.json:4072","question":"How many teachers does the student named CHRISSY NABOZNY have?","SQL":"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"CHRISSY\" AND T1.lastname = \"NABOZNY\"","tokens":["How","many","teachers","does","the","student","named","CHRISSY","NABOZNY","have","?"],"entities":[{"id":0,"type":"table","value":"teachers"},{"id":1,"type":"table","value":"student"},{"id":2,"type":"value","value":"CHRISSY NABOZNY"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[7,8]}],"dber_tags":["O","O","B-TABLE","O","O","B-TABLE","O","B-VALUE","I-VALUE","O","O"]} | |
| {"question_id":7814,"db_id":"network_2","dber_id":"bird:train_spider.json:4469","question":"Which friend of Zach has the longest-lasting friendship?","SQL":"SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')","tokens":["Which","friend","of","Zach","has","the","longest","-","lasting","friendship","?"],"entities":[{"id":0,"type":"column","value":"friend"},{"id":1,"type":"value","value":"Zach"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1]},{"entity_id":1,"token_idxs":[3]}],"dber_tags":["O","B-COLUMN","O","B-VALUE","O","O","O","O","O","O","O"]} | |
| {"question_id":5728,"db_id":"college_2","dber_id":"bird:train_spider.json:1415","question":"Give id of the instructor who advises students in the History department.","SQL":"SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'","tokens":["Give","i","d","of","the","instructor","who","advises","students","in","the","History","department","."],"entities":[{"id":0,"type":"column","value":"i d"},{"id":1,"type":"table","value":"instructor"},{"id":2,"type":"table","value":"students"},{"id":3,"type":"value","value":"History"},{"id":4,"type":"table","value":"department"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1,2]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[11]},{"entity_id":4,"token_idxs":[12]}],"dber_tags":["O","B-COLUMN","I-COLUMN","O","O","B-TABLE","O","O","B-TABLE","O","O","B-VALUE","B-TABLE","O"]} | |
| {"question_id":8786,"db_id":"olympics","dber_id":"bird:train.json:5027","question":"How many competitors were there who participated in 2000 Summer with age 31?","SQL":"SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2000 Summer' AND T2.age = 31","tokens":["How","many","competitors","were","there","who","participated","in","2000","Summer","with","age","31","?"],"entities":[{"id":0,"type":"table","value":"competitors"},{"id":1,"type":"value","value":"2000 Summer"},{"id":2,"type":"column","value":"age"},{"id":3,"type":"value","value":"31"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[8,9]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[12]}],"dber_tags":["O","O","B-TABLE","O","O","O","O","O","B-VALUE","I-VALUE","O","B-COLUMN","B-VALUE","O"]} | |
| {"question_id":2900,"db_id":"public_review_platform","dber_id":"bird:train.json:3973","question":"Based on all user compliments, find the percentage of low number of compliments on all compliments ID.","SQL":"SELECT CAST(SUM(CASE WHEN number_of_compliments = 'Low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(user_id) FROM Users_compliments","tokens":["Based","on","all","user","compliments",",","find","the","percentage","of","low","number","of","compliments","on","all","compliments","ID","."],"entities":[{"id":0,"type":"table","value":"user"},{"id":1,"type":"table","value":"compliments"},{"id":2,"type":"column","value":"number of compliments"},{"id":3,"type":"column","value":"compliments ID"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[4]},{"entity_id":2,"token_idxs":[11,12,13]},{"entity_id":3,"token_idxs":[16,17]}],"dber_tags":["O","O","O","B-TABLE","B-TABLE","O","O","O","O","O","O","B-COLUMN","I-COLUMN","I-COLUMN","O","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":3388,"db_id":"tracking_grants_for_research","dber_id":"bird:train_spider.json:4323","question":"What are the details of the project that is producing both patents and papers as outcomes?","SQL":"SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'","tokens":["What","are","the","details","of","the","project","that","is","producing","both","patents","and","papers","as","outcomes","?"],"entities":[{"id":0,"type":"column","value":"details"},{"id":1,"type":"table","value":"project"},{"id":2,"type":"value","value":"patents"},{"id":3,"type":"value","value":"papers"},{"id":4,"type":"table","value":"outcomes"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[11]},{"entity_id":3,"token_idxs":[13]},{"entity_id":4,"token_idxs":[15]}],"dber_tags":["O","O","O","B-COLUMN","O","O","B-TABLE","O","O","O","O","B-VALUE","O","B-VALUE","O","B-TABLE","O"]} | |
| {"question_id":1104,"db_id":"restaurant_1","dber_id":"bird:train_spider.json:2833","question":"Which major has between 2 and 30 number of students? List major and the number of students.","SQL":"SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;","tokens":["Which","major","has","between","2","and","30","number","of","students","?","List","major","and","the","number","of","students","."],"entities":[{"id":0,"type":"column","value":"major"},{"id":1,"type":"table","value":"students"},{"id":2,"type":"column","value":"major"},{"id":3,"type":"table","value":"students"}],"entity_to_token":[{"entity_id":0,"token_idxs":[1]},{"entity_id":1,"token_idxs":[9]},{"entity_id":2,"token_idxs":[12]},{"entity_id":3,"token_idxs":[17]}],"dber_tags":["O","B-COLUMN","O","O","O","O","O","O","O","B-TABLE","O","O","B-COLUMN","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":11438,"db_id":"party_host","dber_id":"bird:train_spider.json:2666","question":"Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".","SQL":"SELECT First_year , Last_year FROM party WHERE Party_Theme = \"Spring\" OR Party_Theme = \"Teqnology\"","tokens":["Show","the","first","year","and","last","year","of","parties","with","theme","\"","Spring","\"","or","\"","Teqnology","\"","."],"entities":[{"id":0,"type":"column","value":"first year"},{"id":1,"type":"column","value":"last year"},{"id":2,"type":"table","value":"parties"},{"id":3,"type":"column","value":"theme"},{"id":4,"type":"value","value":"Spring"},{"id":5,"type":"value","value":"Teqnology"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2,3]},{"entity_id":1,"token_idxs":[5,6]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[10]},{"entity_id":4,"token_idxs":[12]},{"entity_id":5,"token_idxs":[16]}],"dber_tags":["O","O","B-COLUMN","I-COLUMN","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","B-COLUMN","O","B-VALUE","O","O","O","B-VALUE","O","O"]} | |
| {"question_id":3752,"db_id":"gymnast","dber_id":"bird:train_spider.json:1750","question":"What is the age of the tallest person?","SQL":"SELECT Age FROM people ORDER BY Height DESC LIMIT 1","tokens":["What","is","the","age","of","the","tallest","person","?"],"entities":[{"id":0,"type":"column","value":"age"},{"id":1,"type":"table","value":"person"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[7]}],"dber_tags":["O","O","O","B-COLUMN","O","O","O","B-TABLE","O"]} | |
| {"question_id":931,"db_id":"dorm_1","dber_id":"bird:train_spider.json:5731","question":"How many students are from each city, and which cities have more than one cities?","SQL":"SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1","tokens":["How","many","students","are","from","each","city",",","and","which","cities","have","more","than","one","cities","?"],"entities":[{"id":0,"type":"table","value":"students"},{"id":1,"type":"column","value":"city"},{"id":2,"type":"column","value":"cities"},{"id":3,"type":"column","value":"cities"}],"entity_to_token":[{"entity_id":0,"token_idxs":[2]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[10]},{"entity_id":3,"token_idxs":[15]}],"dber_tags":["O","O","B-TABLE","O","O","O","B-COLUMN","O","O","O","B-COLUMN","O","O","O","O","B-COLUMN","O"]} | |
| {"question_id":10532,"db_id":"music_2","dber_id":"bird:train_spider.json:5196","question":"What is the last name of the musician that have produced the most number of songs?","SQL":"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1","tokens":["What","is","the","last","name","of","the","musician","that","have","produced","the","most","number","of","songs","?"],"entities":[{"id":0,"type":"column","value":"last name"},{"id":1,"type":"table","value":"musician"},{"id":2,"type":"table","value":"songs"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[7]},{"entity_id":2,"token_idxs":[15]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","O","B-TABLE","O","O","O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":685,"db_id":"car_retails","dber_id":"bird:train.json:1639","question":"List all the name of customers who have orders that are still processing.","SQL":"SELECT t2.customerName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.status = 'In Process'","tokens":["List","all","the","name","of","customers","who","have","orders","that","are","still","processing","."],"entities":[{"id":0,"type":"column","value":"name"},{"id":1,"type":"table","value":"customers"},{"id":2,"type":"table","value":"orders"},{"id":3,"type":"value","value":"processing"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[5]},{"entity_id":2,"token_idxs":[8]},{"entity_id":3,"token_idxs":[12]}],"dber_tags":["O","O","O","B-COLUMN","O","B-TABLE","O","O","B-TABLE","O","O","O","B-VALUE","O"]} | |
| {"question_id":13261,"db_id":"authors","dber_id":"bird:train.json:3536","question":"What are the paper IDs of papers presented in conferences has a homepage starts with \"http://www.informatik.uni-trier.de/~ley/db/conf/\"?","SQL":"SELECT T1.Id FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.HomePage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%'","tokens":["What","are","the","paper","IDs","of","papers","presented","in","conferences","has","a","homepage","starts","with","\"","http://www.informatik.uni-trier.de/~ley/db/conf/","\"","?"],"entities":[{"id":0,"type":"column","value":"paper IDs"},{"id":1,"type":"table","value":"papers"},{"id":2,"type":"table","value":"conferences"},{"id":3,"type":"column","value":"homepage"},{"id":4,"type":"value","value":"http://www.informatik.uni-trier.de/~ley/db/conf/"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[6]},{"entity_id":2,"token_idxs":[9]},{"entity_id":3,"token_idxs":[12]},{"entity_id":4,"token_idxs":[16]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","B-TABLE","O","O","B-TABLE","O","O","B-COLUMN","O","O","O","B-VALUE","O","O"]} | |
| {"question_id":7517,"db_id":"student_loan","dber_id":"bird:train.json:4498","question":"Calculate the percentage of female students.","SQL":"SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name","tokens":["Calculate","the","percentage","of","female","students","."],"entities":[{"id":0,"type":"table","value":"students"}],"entity_to_token":[{"entity_id":0,"token_idxs":[5]}],"dber_tags":["O","O","O","O","O","B-TABLE","O"]} | |
| {"question_id":15388,"db_id":"mondial_geo","dber_id":"bird:train.json:8472","question":"What is the organization(s) that has 'National Society' as member type.","SQL":"SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T2.Type = 'National Society'","tokens":["What","is","the","organization(s",")","that","has","'","National","Society","'","as","member","type","."],"entities":[{"id":0,"type":"table","value":"organization(s"},{"id":1,"type":"value","value":"National Society"},{"id":2,"type":"column","value":"member type"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3]},{"entity_id":1,"token_idxs":[8,9]},{"entity_id":2,"token_idxs":[12,13]}],"dber_tags":["O","O","O","B-TABLE","O","O","O","O","B-VALUE","I-VALUE","O","O","B-COLUMN","I-COLUMN","O"]} | |
| {"question_id":9697,"db_id":"movie_3","dber_id":"bird:train.json:9413","question":"What is the postal code of the address 692 Joliet Street?","SQL":"SELECT postal_code FROM address WHERE address = '692 Joliet Street'","tokens":["What","is","the","postal","code","of","the","address","692","Joliet","Street","?"],"entities":[{"id":0,"type":"column","value":"postal code"},{"id":1,"type":"table","value":"address"},{"id":2,"type":"value","value":"692 Joliet Street"}],"entity_to_token":[{"entity_id":0,"token_idxs":[3,4]},{"entity_id":1,"token_idxs":[7]},{"entity_id":2,"token_idxs":[8,9,10]}],"dber_tags":["O","O","O","B-COLUMN","I-COLUMN","O","O","B-TABLE","B-VALUE","I-VALUE","I-VALUE","O"]} | |