instruction
stringlengths
67
299
input
stringlengths
110
572
output
stringlengths
18
557
Write a SQL query that answers the following question: When arthur heinemann is the writer who is the director?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1854728_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_1854728_2 WHERE written_by = "Arthur Heinemann"
Write a SQL query that answers the following question: What Report has the Date of June 5, 2005?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_6 WHERE date = "june 5, 2005"
Write a SQL query that answers the following question: Name the most championships for club of erie seawolves
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_76 (championships INTEGER, club VARCHAR)
SELECT MAX(championships) FROM table_name_76 WHERE club = "erie seawolves"
Write a SQL query that answers the following question: What is the Purpose of the Callsign with a Freq currently of 4gld?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_59 (purpose VARCHAR, freq_currently VARCHAR)
SELECT purpose FROM table_name_59 WHERE freq_currently = "4gld"
Write a SQL query that answers the following question: What date did Mike Rockenfeller have the fastest lap?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_24732149_2 (date VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_24732149_2 WHERE fastest_lap = "Mike Rockenfeller"
Write a SQL query that answers the following question: What is the population density of Siglunes when the change was smaller than -8.1 percent?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR)
SELECT COUNT(population_density) FROM table_name_6 WHERE name = "siglunes" AND change___percentage_ < -8.1
Write a SQL query that answers the following question: What is the sum of yards for a 118.7 rating?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (yards INTEGER, rating VARCHAR)
SELECT SUM(yards) FROM table_name_43 WHERE rating = 118.7
Write a SQL query that answers the following question: Name the result for total attendance-regular season
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_21436373_11 (result_games VARCHAR, type_of_record VARCHAR)
SELECT result_games FROM table_21436373_11 WHERE type_of_record = "Total attendance-Regular season"
Write a SQL query that answers the following question: What is the ad frequency for the Show Off The Bench?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (ad_freq VARCHAR, show_name VARCHAR)
SELECT ad_freq FROM table_name_28 WHERE show_name = "off the bench"
Write a SQL query that answers the following question: What Engine does the w123.026 chassis have?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_53 (engine VARCHAR, chassis_code VARCHAR)
SELECT engine FROM table_name_53 WHERE chassis_code = "w123.026"
Write a SQL query that answers the following question: What venue features geelong as the away side?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_64 WHERE away_team = "geelong"
Write a SQL query that answers the following question: Which position has a player at Arizona state?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_95 WHERE school_club_team = "arizona state"
Write a SQL query that answers the following question: How many million U.S. viewers watched the epiode with a production code of 1arc12?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25668962_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT us_viewers__million_ FROM table_25668962_1 WHERE production_code = "1ARC12"
Write a SQL query that answers the following question: What Album has a Year that's larger than 2001?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_39 (album VARCHAR, year INTEGER)
SELECT album FROM table_name_39 WHERE year > 2001
Write a SQL query that answers the following question: What team was the away team when Footscray was the home team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_19 WHERE home_team = "footscray"
Write a SQL query that answers the following question: What was the record when the game was played at Cleveland Municipal Stadium?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14984078_1 (record VARCHAR, game_site VARCHAR)
SELECT record FROM table_14984078_1 WHERE game_site = "Cleveland Municipal Stadium"
Write a SQL query that answers the following question: How many flights have destination ATO?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE FLIGHTS (DestAirport VARCHAR)
SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = "ATO"
Write a SQL query that answers the following question: On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_24919137_2 (date VARCHAR, ladder_position VARCHAR, opposition VARCHAR)
SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition = "Hawthorn"
Write a SQL query that answers the following question: Name the record for new york giants
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_15607589_2 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_15607589_2 WHERE opponent = "New York Giants"
Write a SQL query that answers the following question: Which political party is involved where John J. Delaney is the sitting Representative?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1342256_32 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342256_32 WHERE incumbent = "John J. Delaney"
Write a SQL query that answers the following question: Who were the umpires when Paul Vines (S) won the Simpson Medal?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_13514348_7 (umpires VARCHAR, simpson_medal VARCHAR)
SELECT umpires FROM table_13514348_7 WHERE simpson_medal = "Paul Vines (S)"
Write a SQL query that answers the following question: Which driver drove car McLaren M23 at the Snetterton Circuit?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_car VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_name_66 WHERE winning_car = "mclaren m23" AND circuit = "snetterton"
Write a SQL query that answers the following question: What is the number of monarchs that had Yan Maw la Mon as the heir?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26460435_5 (monarch VARCHAR, heir VARCHAR)
SELECT COUNT(monarch) FROM table_26460435_5 WHERE heir = "Yan Maw La Mon"
Write a SQL query that answers the following question: How many directors are there for the episode that had 1.59 million U.S. viewers?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22347090_6 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(directed_by) FROM table_22347090_6 WHERE us_viewers__million_ = "1.59"
Write a SQL query that answers the following question: what is the object type when the ngc number is 3314?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_98 (object_type VARCHAR, ngc_number VARCHAR)
SELECT object_type FROM table_name_98 WHERE ngc_number = 3314
Write a SQL query that answers the following question: Which Location has a Record of 5–2–1?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_31 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_31 WHERE record = "5–2–1"
Write a SQL query that answers the following question: find the program owners that have some programs in both morning and night time.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE broadcast (program_id VARCHAR, Time_of_day VARCHAR); CREATE TABLE program (owner VARCHAR, program_id VARCHAR)
SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night"
Write a SQL query that answers the following question: Who was in the East when TUS Geretsried II was in the South?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_9 (east VARCHAR, south VARCHAR)
SELECT east FROM table_name_9 WHERE south = "tus geretsried ii"
Write a SQL query that answers the following question: What state/country was the yacht from that had 15.79 LOA (metres)?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25595107_1 (state_country VARCHAR, loa__metres_ VARCHAR)
SELECT state_country FROM table_25595107_1 WHERE loa__metres_ = "15.79"
Write a SQL query that answers the following question: what is the h/a round of round 2
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_34 (h___a VARCHAR, round VARCHAR)
SELECT h___a FROM table_name_34 WHERE round = "round 2"
Write a SQL query that answers the following question: Which Speed has a Rank smaller than 9 in kawasaki zx6 600cc Team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (speed VARCHAR, rank VARCHAR, team VARCHAR)
SELECT speed FROM table_name_6 WHERE rank < 9 AND team = "kawasaki zx6 600cc"
Write a SQL query that answers the following question: Who is the player from Japan?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_9 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_9 WHERE country = "japan"
Write a SQL query that answers the following question: On April 28, what was the average number of people attending?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_6 WHERE date = "april 28"
Write a SQL query that answers the following question: What is the tie number when the away team is Lewes?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_73 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_73 WHERE away_team = "lewes"
Write a SQL query that answers the following question: Which episode number drew in 3.84 million viewers in the U.S.?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14929574_3 (series__number INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.84"
Write a SQL query that answers the following question: What are the birth date and birth place of the body builder with the highest total points?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Birth_Date VARCHAR, Birth_Place VARCHAR, People_ID VARCHAR)
SELECT T2.Birth_Date, T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1
Write a SQL query that answers the following question: What batting partners were the most successful in 2004?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR)
SELECT batting_partners FROM table_1670921_2 WHERE season = "2004"
Write a SQL query that answers the following question: How many years have a weeks at #1 value of exactly 8?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27441210_6 (year VARCHAR, weeks_at__number1 VARCHAR)
SELECT COUNT(year) FROM table_27441210_6 WHERE weeks_at__number1 = 8
Write a SQL query that answers the following question: Find all details for each swimmer.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE swimmer (Id VARCHAR)
SELECT * FROM swimmer
Write a SQL query that answers the following question: What position did kyle mckenzie play?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_41 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_41 WHERE name = "kyle mckenzie"
Write a SQL query that answers the following question: Name the total number of date for score being l 106–116 (ot)
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23281862_10 (date VARCHAR, score VARCHAR)
SELECT COUNT(date) FROM table_23281862_10 WHERE score = "L 106–116 (OT)"
Write a SQL query that answers the following question: What Event has a Competition of world championships?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_77 (event VARCHAR, competition VARCHAR)
SELECT event FROM table_name_77 WHERE competition = "world championships"
Write a SQL query that answers the following question: What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_80 (time_retired VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_80 WHERE grid < 9 AND laps = 21 AND rider = "jeremy mcwilliams"
Write a SQL query that answers the following question: Which tournament has a value of a for 2009?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT tournament FROM table_name_42 WHERE 2009 = "a"
Write a SQL query that answers the following question: What is the average year that the club located in enfield was founded with an unknown coach?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (founded INTEGER, coach VARCHAR, location VARCHAR)
SELECT AVG(founded) FROM table_name_87 WHERE coach = "unknown" AND location = "enfield"
Write a SQL query that answers the following question: Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_63 (name VARCHAR, comparative VARCHAR, intra_molecular_structure VARCHAR, link VARCHAR)
SELECT name FROM table_name_63 WHERE intra_molecular_structure = "no" AND link = "webserver" AND comparative = "no"
Write a SQL query that answers the following question: What is the highest ERP W of the translator with a call sign of w284av?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_94 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av"
Write a SQL query that answers the following question: Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR)
SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 5
Write a SQL query that answers the following question: what's the acronym with department being department of finance kagawaran ng pananalapi
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1331313_1 (acronym VARCHAR, department VARCHAR)
SELECT acronym FROM table_1331313_1 WHERE department = "department of Finance Kagawaran ng Pananalapi"
Write a SQL query that answers the following question: What is the highest value of Total Goals?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10240125_1 (total_goals INTEGER)
SELECT MAX(total_goals) FROM table_10240125_1
Write a SQL query that answers the following question: List the weight for 56 kilograms.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2581397_3 (distance VARCHAR, weight__kg_ VARCHAR)
SELECT distance FROM table_2581397_3 WHERE weight__kg_ = "56"
Write a SQL query that answers the following question: What Shooter has a Total of 28?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_9 (shooter VARCHAR, total VARCHAR)
SELECT shooter FROM table_name_9 WHERE total = "28"
Write a SQL query that answers the following question: What is the total number of To Par, when Total is "295"?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (to_par VARCHAR, total VARCHAR)
SELECT COUNT(to_par) FROM table_name_38 WHERE total = 295
Write a SQL query that answers the following question: What rocket has a block i/ii hybrid?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_30 (rocket VARCHAR, block VARCHAR)
SELECT rocket FROM table_name_30 WHERE block = "block i/ii hybrid"
Write a SQL query that answers the following question: What year did Tom Watson win?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_87 WHERE player = "tom watson"
Write a SQL query that answers the following question: What Label released an album in August 1996?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_84 (label VARCHAR, release_date VARCHAR)
SELECT label FROM table_name_84 WHERE release_date = "august 1996"
Write a SQL query that answers the following question: What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_10 (chosen_by VARCHAR, couple VARCHAR, choreographer_s_ VARCHAR)
SELECT chosen_by FROM table_name_10 WHERE couple = "katee shean joshua allen" AND choreographer_s_ = "nakul dev mahajan"
Write a SQL query that answers the following question: How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_45 WHERE rank > 1 AND gold = 4
Write a SQL query that answers the following question: Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10798421_1 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR)
SELECT MIN(number_of_people_1991) FROM table_10798421_1 WHERE percent_of_slovenes_1991 = "92.5%"
Write a SQL query that answers the following question: What location shows round was 1, and against Ricky Shivers?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_43 WHERE round = 1 AND opponent = "ricky shivers"
Write a SQL query that answers the following question: Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_77 (winning_constructor VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT winning_constructor FROM table_name_77 WHERE fastest_lap = "mark webber" AND grand_prix = "malaysian grand prix"
Write a SQL query that answers the following question: what is the title when the imprint is dengeki bunko and the artist is kiyotaka haimura?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_96 (title VARCHAR, imprint VARCHAR, artist VARCHAR)
SELECT title FROM table_name_96 WHERE imprint = "dengeki bunko" AND artist = "kiyotaka haimura"
Write a SQL query that answers the following question: What is the average Ends with a Since of 2003, and a Name with márquez?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_93 (ends INTEGER, since VARCHAR, name VARCHAR)
SELECT AVG(ends) FROM table_name_93 WHERE since = 2003 AND name = "márquez"
Write a SQL query that answers the following question: What is the first round that had #67 the racer's group with the fastest lap?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_19751479_4 (rnd INTEGER, fastest_lap VARCHAR)
SELECT MIN(rnd) FROM table_19751479_4 WHERE fastest_lap = "#67 The Racer's Group"
Write a SQL query that answers the following question: What are the Notes of the dinosaur, whose Status is nomen dubium, and whose Location is China?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_26 (notes VARCHAR, status VARCHAR, location VARCHAR)
SELECT notes FROM table_name_26 WHERE status = "nomen dubium" AND location = "china"
Write a SQL query that answers the following question: What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1505809_2 (shot_pct VARCHAR, blank_ends VARCHAR)
SELECT COUNT(shot_pct) FROM table_1505809_2 WHERE blank_ends = 8
Write a SQL query that answers the following question: Show all ministers and parties they belong to in descending order of the time they took office.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE party (minister VARCHAR, party_name VARCHAR, took_office VARCHAR)
SELECT minister, party_name FROM party ORDER BY took_office DESC
Write a SQL query that answers the following question: What school did Pat Osborn attend?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_11677100_5 (school VARCHAR, player VARCHAR)
SELECT school FROM table_11677100_5 WHERE player = "Pat Osborn"
Write a SQL query that answers the following question: What date was the men's 100m breaststroke in heat 6?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR)
SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6"
Write a SQL query that answers the following question: How many open cups were hosted in 1993?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12002388_1 (open_cup VARCHAR, year VARCHAR)
SELECT COUNT(open_cup) FROM table_12002388_1 WHERE year = 1993
Write a SQL query that answers the following question: What is the visitor team of the game with Rudy Gay (18) as the leading scorer?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR)
SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)"
Write a SQL query that answers the following question: Name the date for princes park
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_87 WHERE venue = "princes park"
Write a SQL query that answers the following question: If the hometown is Omuthiya, what is the contestant name?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23576576_2 (contestant VARCHAR, hometown VARCHAR)
SELECT contestant FROM table_23576576_2 WHERE hometown = "Omuthiya"
Write a SQL query that answers the following question: What is Average Year, when Round is R128 (First Round)?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (year INTEGER, round VARCHAR)
SELECT AVG(year) FROM table_name_46 WHERE round = "r128 (first round)"
Write a SQL query that answers the following question: Show the locations that have more than one railways.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE railway (LOCATION VARCHAR)
SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*) > 1
Write a SQL query that answers the following question: What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_92 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR)
SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon state"
Write a SQL query that answers the following question: what is the city when the country is libya and the iata is ben?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, iata VARCHAR)
SELECT city FROM table_name_57 WHERE country = "libya" AND iata = "ben"
Write a SQL query that answers the following question: What is Pos., when Date To is "30 June 2009", and when Name is "Eddie Johnson"?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_18 (pos VARCHAR, date_to VARCHAR, name VARCHAR)
SELECT pos FROM table_name_18 WHERE date_to = "30 june 2009" AND name = "eddie johnson"
Write a SQL query that answers the following question: How many different numbers of cantons does the province with the Armenian name վասպուրական have?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23887174_1 (number_of_cantons__gavars_ VARCHAR, armenian_name VARCHAR)
SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական"
Write a SQL query that answers the following question: With 1.97 million HK viewers and a finale more than 33, what was the total number of peaks?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (peak VARCHAR, hk_viewers VARCHAR, finale VARCHAR)
SELECT COUNT(peak) FROM table_name_16 WHERE hk_viewers = "1.97 million" AND finale > 33
Write a SQL query that answers the following question: In what year did Iljuštšenko compete in Barcelona, Spain?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR)
SELECT year FROM table_name_70 WHERE venue = "barcelona, spain"
Write a SQL query that answers the following question: Name the player that is 1.85 m
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23670057_6 (player VARCHAR, height__m_ VARCHAR)
SELECT player FROM table_23670057_6 WHERE height__m_ = "1.85"
Write a SQL query that answers the following question: What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_54 (report VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT report FROM table_name_54 WHERE pole_position = "mario andretti" AND fastest_lap = "jean-pierre jarier"
Write a SQL query that answers the following question: Which Year has Playoffs which did not qualify?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_94 (year INTEGER, playoffs VARCHAR)
SELECT AVG(year) FROM table_name_94 WHERE playoffs = "did not qualify"
Write a SQL query that answers the following question: Who was the away team for the game played in front of more than 41,402 fans?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (away_team VARCHAR, crowd INTEGER)
SELECT away_team FROM table_name_46 WHERE crowd > 41 OFFSET 402
Write a SQL query that answers the following question: Which Week has a Result of w 23–22?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_77 WHERE result = "w 23–22"
Write a SQL query that answers the following question: What instrument did the musician with last name "Heilo" use in the song "Le Pop"?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR)
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop"
Write a SQL query that answers the following question: What is the enrollment for Foote Field?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12896884_1 (enrollment INTEGER, football_stadium VARCHAR)
SELECT MAX(enrollment) FROM table_12896884_1 WHERE football_stadium = "Foote Field"
Write a SQL query that answers the following question: What actor plays glen cole?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR)
SELECT actor FROM table_name_66 WHERE character = "glen cole"
Write a SQL query that answers the following question: Who is riding the Ducati 999 RS in Round 7?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_31 (rider VARCHAR, rounds VARCHAR, motorcycle VARCHAR)
SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs"
Write a SQL query that answers the following question: What is the highest Year, when Finish is "51", and when Start is less than 64?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR)
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64
Write a SQL query that answers the following question: What is a colt racing entrant engine?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_17 (engine VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_17 WHERE entrant = "colt racing"
Write a SQL query that answers the following question: What is the average L/100km urban (cold) for engine capacities over 1910, mpg in the US (urban) under 25.3, mpg in the UK (combined) over 27.2, and mpg in the UK (urban, cold) of 22.4?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_27 (l_100km_urban__cold_ INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR, engine_capacity VARCHAR, mpg_us_urban VARCHAR)
SELECT AVG(l_100km_urban__cold_) FROM table_name_27 WHERE engine_capacity > 1910 AND mpg_us_urban < 25.3 AND mpg_uk_combined > 27.2 AND mpg_uk_urban__cold_ = 22.4
Write a SQL query that answers the following question: How many events had participants whose details had the substring 'Dr.'
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE participants (Participant_ID VARCHAR, participant_details VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR)
SELECT COUNT(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'
Write a SQL query that answers the following question: What is the Partner with Opponents in the final with roy emerson rod laver, with Date smaller than 1975?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_31 (partner VARCHAR, opponents_in_the_final VARCHAR, date VARCHAR)
SELECT partner FROM table_name_31 WHERE opponents_in_the_final = "roy emerson rod laver" AND date < 1975
Write a SQL query that answers the following question: Which settlement has the cyrillic name сигет?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2562572_30 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Сигет"
Write a SQL query that answers the following question: What RolePlay actor played the same role Alison Pargeter played in the original production?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_in_original_production VARCHAR)
SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = "Alison Pargeter"
Write a SQL query that answers the following question: What is every example for the equivalent of NTE160?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_30011_2 (example VARCHAR, equivalent VARCHAR)
SELECT example FROM table_30011_2 WHERE equivalent = "NTE160"
Write a SQL query that answers the following question: What place in the United States has a To par of e?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e"
Write a SQL query that answers the following question: Who was the opponent on carpet in a final?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_55 (opponent_in_final VARCHAR, surface VARCHAR)
SELECT opponent_in_final FROM table_name_55 WHERE surface = "carpet"