sentence
stringlengths
3
347
sql
stringlengths
18
804
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'
How about project AeH3
SELECT count ( * ) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project where T1.Code = "AeH3"
What is the verb meaning of *haldaną *fanhaną in part 1?
SELECT verb_meaning FROM table_name_26 WHERE part_1 = "*haldaną *fanhaną"
List all instructors who taught a class in Fall 2009 | Did you mean the instructor IDs who taught a class in Fall 2009 | yes
SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009
* I have left the chat *
SELECT market_share FROM browser where name = "Safari"
How many high assists did the Lakers have?
SELECT high_assists FROM table_name_84 WHERE team = "lakers"
Which entrant used the chassis de tomaso 505?
SELECT entrant FROM table_name_9 WHERE chassis = "de tomaso 505"
where is Auto Club Speedway located?
SELECT T2.Location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id where T2.Name = 'Auto Club Speedway'
Which Party has a Representative of brian bosma?
SELECT party FROM table_name_61 WHERE representative = "brian bosma"
What was the location of the club where the home ground is wilfred taylor reserve?
SELECT location FROM table_name_80 WHERE home_ground = "wilfred taylor reserve"
What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?
SELECT rd FROM table_1132568_3 WHERE fastest_lap = "Michael Schumacher" AND constructor = "Ferrari" AND pole_position = "Michael Schumacher"
Who is the Driver on Bob Keselowski's team?
SELECT driver_s_ FROM table_name_57 WHERE owner_s_ = "bob keselowski"
What is Score, when Country is "United States", and when Player is "Raymond Floyd"?
SELECT score FROM table_name_98 WHERE country = "united states" AND player = "raymond floyd"
What is the total enrollment number of all colleges?
SELECT sum(enr) FROM College
When did the earliest killing take place?
SELECT date FROM perpetrator order by date asc limit 1
Which cities have 2 to 4 parks?
SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
List official names of cities in descending order of population.
SELECT Official_Name FROM city ORDER BY Population DESC
Which wine has the most cases available?
SELECT * FROM WINE ORDER BY cases desc limit 1
Which Country has a Place of t8 and byron nelson?
SELECT country FROM table_name_11 WHERE place = "t8" AND player = "byron nelson"
How many invoices do we have?
SELECT count(*) FROM Invoices
Show name, opening year, and capacity for each cinema.
SELECT name , openning_year , capacity FROM cinema
What are the student ids of the students with the last name Smith?
SELECT StuID from Student where LName = 'Smith'
Tell me the name for round of e
SELECT name FROM table_name_29 WHERE round = "e"
show the outcome code in the Table Name: Project Outcomes
SELECT DISTINCT outcome_code FROM Project_Outcomes
What was the final score for the January 23 game?
SELECT score FROM table_name_23 WHERE date = "january 23"
What is the total number of females where the total population is less than 2,195?
SELECT COUNT(female) FROM table_name_65 WHERE total_population < 2 OFFSET 195
Find the id of the candidate who got the lowest oppose rate.
SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
Which the Fastest Laps that have Poles of 0, and a Season of 2002, and a Podiums smaller than 0?
SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = "2002" AND podiums < 0
What is the name of the episode with 418 as the production code?
SELECT title FROM table_2818164_5 WHERE production_code = 418
What's Ontario's highest Ends Lost?
SELECT MAX(ends_lost) FROM table_name_11 WHERE locale = "ontario"
What are the titles of episodes with 5.66 million US viewers?
SELECT title FROM table_2866514_1 WHERE us_viewers__million_ = "5.66"
For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?
SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell"
Give the client ID of the complaint received on April 16, 2014 and submitted through fax.
SELECT T2.Client_ID FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Fax' AND T1.`Date received` = '2014-04-16'
What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?
SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley"
What is the Clubs when there are 4 for the number of fixtures?
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 4
What was the number of nickname founded 1918?
SELECT COUNT(nickname) FROM table_11604804_5 WHERE founded = 1918
What was the result when John Barrow was the incumbent first elected in 2004?
SELECT result FROM table_19753079_13 WHERE first_elected = 2004 AND incumbent = "John Barrow"
Find the name and country of origin for all artists who have release at least one song of resolution above 900.
SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING count(*) >= 1
What is the id of Rio de Janeiro?
SELECT id FROM city WHERE city_name = 'Rio de Janeiro'
What was the qual when the rank was 2?
SELECT qual FROM table_name_63 WHERE rank = "2"
Describe the violation dates, risk categories, descriptions and names of the eateries under Jade Chocolates LLC.
SELECT T1.`date`, T1.risk_category, T1.description, T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_name = 'Jade Chocolates LLC'
What day was the location Cleveland, Ohio in Round 6?
SELECT date FROM table_name_2 WHERE city_location = "cleveland, ohio" AND round = 6
What are the names, address roads, and cities of the branches ordered by opening year?
SELECT name , address_road , city FROM branch ORDER BY open_year
What is the Console when Space Invaders is the Arcade?
SELECT console FROM table_name_59 WHERE arcade = "space invaders"
Show the code and description of the least frequent detention type?
SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count ( * ) ASC LIMIT 1
What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?
SELECT score FROM table_name_60 WHERE home = "cavaliers" AND leading_scorer = "lebron james (46)"
Which school left in 1968 and has the team name of Panthers?
SELECT school FROM table_name_81 WHERE team_name = "panthers" AND year_left = "1968"
Which country won in 1988?
SELECT country FROM table_name_19 WHERE year_s__won = "1988"
How many tags does the release "city funk" have?
SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'city funk'
Which directors had a movie both in the year 1999 and 2000?
SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999
what is the location of Bootup Baltimore
select ClubLocation from Club where ClubName = 'Bootup Baltimore'
What was the score in the final on 14 august 1994?
SELECT score_in_the_final FROM table_name_36 WHERE date = "14 august 1994"
Show the budget type code and description and the corresponding document id.
SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
Show the ids of the faculty who don't participate in any activity.
SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Which tournament had a winning score of −5 (69-69-73=211)?
SELECT tournament FROM table_name_37 WHERE winning_score = −5(69 - 69 - 73 = 211)
Find the name of the target user with the lowest trust score.
SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1
Count the number of different nationalities.
SELECT count(DISTINCT Nationality) FROM people
What is the number of faculty lines in campus "Long Beach State University" in 2002?
SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = "Long Beach State University"
What are the majors of all the students with sex F?
SELECT Major FROM STUDENT where sex = "F"
Among the supplied products from Australia, describe the discontinued products and the category.
SELECT T2.ProductName, T3.CategoryName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T1.Country = 'Australia' AND T2.Discontinued = 1
If -750 is 45.505, what is the maximum rank?
SELECT MAX(rank) FROM table_1912276_2 WHERE __750m = "45.505"
How many seasons are there with Formula Holden?
SELECT COUNT(seasons) FROM table_2822193_1 WHERE series = "Formula Holden"
Find the name and building of the department with the highest budget.
SELECT dept_name, building FROM department ORDER BY budget DESC LIMIT 1
Find the states where both owners and professionals live.
SELECT state FROM Owners INTERSECT SELECT state FROM Professionals
Thanks. Could you please tell me the Club Location?
SELECT clublocation from club where clubname = "Bootup Baltimore"
Sum up the number of business with "ambience_romantic" attribute.
SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name = 'ambience_romantic' AND T2.attribute_value = 'true'
What are the name, phone number and email address of the customer who made the largest number of orders?
SELECT T1.customer_name , T1.customer_phone , T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1
Find the average number of staff working for the museums that were open before 2009.
SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009
Please list any three events that have the longitude and latitude of 0.
SELECT event_id FROM events WHERE longitude = 0 AND latitude = 0 LIMIT 3
Return the name of the member who is in charge of the most events.
SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1
List the names of all distinct medications, ordered in an alphabetical order.
SELECT DISTINCT name FROM medication ORDER BY name
how many students are in the history department?
SELECT count ( name ) FROM student WHERE dept_name = 'History'
Count all of the living patients that had a stroke.
SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.description = 'Stroke' AND T2.deathdate IS NULL
In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?
SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = "episode 7" AND entrepreneur_s_ = "jerry mantalvanos & paul merker"
What's the score of Lee Janzen in T4 place?
SELECT score FROM table_name_94 WHERE place = "t4" AND player = "lee janzen"
How many wins did SD Eibar, which played less than 38 games, have?
SELECT SUM(wins) FROM table_name_24 WHERE club = "sd eibar" AND played < 38
Where did Brendon Labatte get picked?
SELECT MIN(pick__number) FROM table_16575609_1 WHERE player = "Brendon LaBatte"
How man innings were there during the period with a career average of 41.43?
SELECT innings FROM table_21100348_10 WHERE average = "41.43"
How many units of item 7 have been sold by store 7 when the snow is less than 5 inches?
SELECT SUM(units) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr INNER JOIN sales_in_weather AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.store_nbr = 7 AND T3.item_nbr = 7 AND T1.snowfall < 5
What are the order quantities and dates for all orders that were paid for with cash?
SELECT t3.order_quantity, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.payment_method = "Cash"
What is the average number of hours spent practicing for students who got rejected?
SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'
Find the last names of the teachers that teach fifth grade.
SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5
When did TDB depart?
SELECT MAX(year) FROM table_name_16 WHERE departed_from = "tdb"
Among the shipments to a customer from Texas, what percentage of the shipments shipped in 2017?
SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', T1.ship_date) = '2017' THEN 1 ELSE 0 END) AS REAL ) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'TX'
What is the lowest effic with a 58.9 avg/g?
SELECT MIN(effic) FROM table_name_58 WHERE avg_g = 58.9
What is Team, when Circuit is Queensland Raceway, and when Winner is Garth Tander?
SELECT team FROM table_name_96 WHERE circuit = "queensland raceway" AND winner = "garth tander"
Which venue has a Score of 1–0, and a Competition of 2002 world cup qualifier?
SELECT venue FROM table_name_91 WHERE score = "1–0" AND competition = "2002 world cup qualifier"
Show ids of students who play video games and sports?
SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games
How many apartment bookings are there in total?
SELECT count(*) FROM Apartment_Bookings
Please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in Brooklyn.
SELECT T2.donation_message FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' AND T1.school_magnet = 't'
What is the viewership on november 9, 2007?
SELECT viewers__m_ FROM table_11251109_3 WHERE air_date = "November 9, 2007"
What was the average temperature difference between store number 18 and 19 on 16 September 2022?
SELECT SUM(CASE WHEN T1.store_nbr = 18 THEN T2.tavg ELSE 0 END) - SUM(CASE WHEN T1.store_nbr = 19 THEN T2.tavg ELSE 0 END) FROM relation AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.`date` = '2012-09-16'
Name the date for s. valentino alla muta , italia
SELECT date FROM table_30073089_2 WHERE location = "S. Valentino Alla Muta , Italia"
What is the current official Instagram handle of current legislator Bob Corker?
SELECT T2.instagram FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Bob Corker'
Who did the most high rebounds in the game played on November 1?
SELECT high_rebounds FROM table_17326036_5 WHERE date = "November 1"
Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70
SELECT COUNT(grid) FROM table_name_66 WHERE time_retired = "+2 laps" AND laps < 70
Who many games were played for the series with the Sawhorse Dollar trophy?
SELECT games_played FROM table_name_77 WHERE trophy = "sawhorse dollar"
which country did participated in the most number of Tournament competitions?
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1
When relay is the station type and 5kw is the power kw what is the branding?
SELECT branding FROM table_23394920_1 WHERE power_kw = "5kW" AND station_type = "Relay"
What is the score of university ID 68 in 2015?
SELECT score FROM university_ranking_year WHERE year = 2015 AND university_id = 68