Simple Question (Direct)
Simple Question
Q6831378
P39
Q12737077
USER
Which occupation was a position for which Michael J. Carberry was appointed ?
(Q6831378,P39,c(Q12737077))
action filter_type
action find
entity Q6831378
relation P39
type Q12737077
['Q6831378', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6831378 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Michael J. Carberry
action filter_type
action find
entity Michael J. Carberry
relation position held
type occupation
['Michael J. Carberry', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Michael_J._Carberry property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q17495450
SYSTEM
member of the Illinois House of Representatives
Q17495450
(Q6831378,P39,c(Q12737077))
action filter_type
action find
entity Q6831378
relation P39
type Q12737077
A [ANSWER] was a position for which Michael J. Carberry was appointed
['Q6831378', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6831378 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
member of the Illinois House of Representatives
A member of the Illinois House of Representatives was a position for which Michael J. Carberry was appointed
member of the Illinois House of Representatives
action filter_type
action find
entity Michael J. Carberry
relation position held
type occupation
['Michael J. Carberry', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Michael_J._Carberry property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6831378
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q17495450,P27,c(Q15617994))
action filter_type
action find
entity Q6831378
relation P27
type Q15617994
['Q17495450', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q6831378 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Michael J. Carberry
action filter_type
action find
entity Michael J. Carberry
relation country of citizenship
type designation for an administrative territorial entity
['member of the Illinois House of Representatives', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Michael_J._Carberry property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q17495450,P27,c(Q15617994))
action filter_type
action find
entity Q6831378
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q17495450', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q6831378 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person an inhabitant of
United States of America
action filter_type
action find
entity Michael J. Carberry
relation country of citizenship
type designation for an administrative territorial entity
['member of the Illinois House of Representatives', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Michael_J._Carberry property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6831378
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q30,P102,c(Q7210356))
action filter_type
action find
entity Q6831378
relation P102
type Q7210356
['Q30', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q6831378 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Michael J. Carberry
action filter_type
action find
entity Michael J. Carberry
relation member of political party
type political organization
['United States of America', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Michael_J._Carberry property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q30,P102,c(Q7210356))
action filter_type
action find
entity Q6831378
relation P102
type Q7210356
Party [ANSWER] is that person a member of
['Q30', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q6831378 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Democratic Party
Party Democratic Party is that person a member of
Democratic Party
action filter_type
action find
entity Michael J. Carberry
relation member of political party
type political organization
['United States of America', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Michael_J._Carberry property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
How many administrative territories have atmost 1 people or holidays as their patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action count
action atmost
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 1
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { { ?b rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15617994 . ?t property:P417 ?b } UNION { ?b rdf:type ontology:Q1445650 . ?t rdf:type ontology:Q15617994 . ?t property:P417 ?b } } GROUP BY ?t } . FILTER ( ?h <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { { ?b rdf:type ontology:common_name . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:patron_saint ?b } UNION { ?b rdf:type ontology:holiday . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:patron_saint ?b } } GROUP BY ?t } . FILTER ( ?h <= 1 ) }
[]
common name holiday designation for an administrative territorial entity
SYSTEM
824
Q102547 Q51179 Q103832 Q265483 Q18339 Q46304 Q268902 Q124005 Q55000 Q55009 Q43005 Q43000 Q22497 Q39633 Q56075 Q103572 Q42950 Q386898 Q490936 Q20203 Q328037 Q9525 Q9520 Q20208 Q18022 Q53164 Q18348 Q99937 Q283857 Q112226 Q18029 Q391326 Q111749 Q58491 Q46939 Q72069 Q51294 Q224131 Q47238 Q20067 Q17677 Q116604 Q206966 Q41058 Q53524 Q10212 Q9044 Q155 Q42896 Q52085 Q47342 Q45 Q52244 Q111113 Q101067 Q216492 Q490770 Q17268 Q54612 Q9065 Q54617 Q80554 Q267241 Q42974 Q112143 Q42972 Q17674 Q390108 Q51207 Q13470 Q9148 Q51202 Q54751 Q54742 Q295538 Q9000 Q13378 Q34742 Q58890 Q51370 Q42110 Q101526 Q224813 Q10307 Q112131 Q52019 Q10302 Q252343 Q94644 Q17313 Q17312 Q103999 Q52624 Q9400 Q50134 Q117368 Q390854 Q243371 Q478277 Q223504 Q34603 Q17822 Q17821 Q188499 Q54585 Q95069 Q54587 Q19277 Q186538 Q294805 Q42977 Q34360 Q18075 Q283697 Q39263 Q100404 Q40379 Q9569 Q285089 Q20387 Q34519 Q42777 Q198320 Q34694 Q9105 Q42476 Q39835 Q20247 Q53124 Q46357 Q34684 Q111800 Q18206 Q111415 Q48114 Q95095 Q128060 Q111966 Q39701 Q56048 Q9370 Q242126 Q52200 Q9373 Q490416 Q100654 Q25009 Q490412 Q157673 Q53235 Q48027 Q18377 Q53339 Q39910 Q101651 Q176292 Q72728 Q340610 Q22170 Q22173 Q58719 Q55852 Q490907 Q242692 Q123981 Q47368 Q279682 Q221900 Q101151 Q105045 Q265588 Q43092 Q22571 Q123505 Q116731 Q278237 Q42942 Q244048 Q40127 Q100829 Q94779 Q104653 Q17862 Q17861 Q477537 Q53946 Q9031 Q53694 Q6558 Q10336 Q10337 Q10331 Q10234 Q10231 Q10339 Q53492 Q53496 Q40336 Q17321 Q19918 Q53886 Q53881 Q295289 Q53883 Q34324 Q42300 Q13649 Q53284 Q25179 Q42306 Q279247 Q25175 Q267183 Q53288 Q17816 Q52110 Q17811 Q34547 Q51417 Q47585 Q17368 Q39403 Q47429 Q24997 Q295602 Q42885 Q50165 Q18080 Q104963 Q489881 Q265498 Q18088 Q40937 Q1465 Q51349 Q270578 Q53835 Q100973 Q478925 Q285110 Q430988 Q35220 Q34423 Q91160 Q53177 Q242139 Q18400 Q22655 Q111602 Q242710 Q216853 Q46168 Q51288 Q55104 Q123941 Q58461 Q9432 Q20353 Q9435 Q270058 Q20056 Q20435 Q51442 Q17777 Q123540 Q117471 Q36471 Q217391 Q17779 Q111972 Q33 Q265651 Q53304 Q37 Q94588 Q17350 Q25056 Q101057 Q9153 Q490851 Q101358 Q17686 Q54746 Q9076 Q53909 Q271011 Q23632 Q53903 Q18382 Q100365 Q51851 Q42167 Q20128 Q23285 Q20122 Q56210 Q9489 Q56063 Q52026 Q72272 Q80883 Q58844 Q117211 Q54521 Q42343 Q326968 Q81687 Q53992 Q224272 Q81138 Q42269 Q91199 Q42266 Q50128 Q42260 Q17659 Q124836 Q17851 Q17854 Q10207 Q17257 Q23217 Q10200 Q23662 Q219641 Q24896 Q10208 Q10209 Q53874 Q53876 Q53877 Q207395 Q18040 Q53879 Q103768 Q81755 Q20244 Q39985 Q46746 Q42580 Q50157 Q47671 Q42744 Q123763 Q73218 Q495734 Q42466 Q34406 Q100094 Q241780 Q53136 Q2107 Q46320 Q298424 Q51405 Q20405 Q83083 Q493482 Q55956 Q128170 Q23669 Q103465 Q388085 Q102562 Q52213 Q39912 Q22182 Q42513 Q42512 Q52191 Q340908 Q55890 Q9508 Q34386 Q53225 Q72732 Q101648 Q391349 Q42752 Q51274 Q54708 Q52132 Q54701 Q59234 Q105142 Q54705 Q91228 Q51473 Q279302 Q20166 Q18356 Q80753 Q22543 Q53355 Q9447 Q10338 Q72036 Q36198 Q52102 Q17741 Q53957 Q54673 Q54672 Q477423 Q23226 Q23224 Q72146 Q101187 Q42963 Q101182 Q47093 Q91096 Q389292 Q80574 Q124979 Q218027 Q53686 Q19209 Q22468 Q47500 Q200925 Q18394 Q25216 Q52282 Q72712 Q53884 Q17290 Q101269 Q10328 Q23706 Q101699 Q277474 Q252320 Q9352 Q128226 Q51304 Q20530 Q42318 Q39862 Q50059 Q53882 Q54516 Q34545 Q42259 Q17804 Q53511 Q493491 Q20431 Q54685 Q20184 Q160262 Q283554 Q100199 Q270968 Q9451 Q99962 Q477618 Q99969 Q46673 Q51358 Q81622 Q81151 Q20284 Q39227 Q47371 Q40985 Q128134 Q48092 Q48090 Q42413 Q8983 Q42553 Q100125 Q42557 Q53995 Q56081 Q56086 Q56085 Q94754 Q53260 Q56088 Q101423 Q17796 Q18388 Q41077 Q18385 Q55053 Q55054 Q80655 Q51435 Q168670 Q42379 Q52146 Q40851 Q53508 Q278952 Q40913 Q39884 Q25187 Q53313 Q17666 Q25189 Q52227 Q168551 Q49605 Q9167 Q54736 Q22216 Q9048 Q268291 Q101251 Q54739 Q9169 Q53720 Q269134 Q102677 Q42983 Q9493 Q42986 Q17695 Q20036 Q10284 Q52661 Q286671 Q390646 Q82755 Q10281 Q17409 Q278199 Q52133 Q23592 Q52038 Q51861 Q18380 Q17404 Q51867 Q17691 Q23178 Q117342 Q244185 Q266630 Q267134 Q56207 Q288273 Q100394 Q100396 Q58690 Q492625 Q53967 Q478357 Q54643 Q53961 Q496978 Q46968 Q9194 Q19279 Q10211 Q19925 Q17244 Q24883 Q16337 Q326780 Q104007 Q53865 Q53864 Q13660 Q42456 Q99956 Q42450 Q25155 Q100070 Q34579 Q22039 Q42757 Q20503 Q20507 Q267032 Q382482 Q46334 Q55017 Q9019 Q478703 Q40951 Q52184 Q128161 Q490431 Q40408 Q51360 Q101770 Q22079 Q17627 Q43031 Q17628 Q72527 Q43037 Q9050 Q53212 Q478906 Q18357 Q34972 Q103891 Q101519 Q20604 Q22155 Q55901 Q224048 Q41046 Q185748 Q51460 Q47341 Q20170 Q46793 Q95066 Q52073 Q52072 Q100916 Q39783 Q182689 Q103155 Q100854 Q102780 Q102781 Q58433 Q52179 Q72009 Q391241 Q17757 Q17753 Q58549 Q101205 Q9017 Q51926 Q40539 Q23232 Q116573 Q42629 Q54636 Q101194 Q101759 Q496936 Q82766 Q105325 Q46870 Q17883 Q17287 Q34759 Q17283 Q17281 Q51181 Q20105 Q20103 Q91243 Q51812 Q390160 Q42812 Q40036 Q72708 Q40033 Q100135 Q40216 Q270613 Q19937 Q42241 Q390865 Q17371 Q54500 Q54503 Q42249 Q42367 Q223513 Q52959 Q54699 Q17833 Q20425 Q59225 Q42397 Q20197 Q54591 Q20191 Q46833 Q42391 Q23607 Q386350 Q46935 Q17378 Q58898 Q432678 Q116404 Q581 Q111906 Q42565 Q47046 Q59236 Q19948 Q53852 Q19944 Q207448 Q9363 Q40690 Q13619 Q20551 Q341096 Q382223 Q40699 Q53397 Q22626 Q42403 Q214691 Q56091 Q56090 Q55097 Q53159 Q53152 Q254139 Q39070 Q55042 Q101382 Q54035 Q80851 Q123965 Q101388 Q54034 Q128057 Q46693 Q51423 Q269788 Q103297 Q43040 Q339993 Q43049 Q120399 Q40967 Q40964 Q40965 Q390609 Q34598 Q112019 Q39933 Q101702 Q17654 Q55284 Q224176 Q54723 Q257357 Q477800 Q47835 Q72221 Q269943 Q55958 Q19915 Q46282 Q10361 Q51258 Q13320 Q34440 Q53732 Q34791 Q117621 Q20386 Q111888 Q20028 Q9467 Q20389 Q71832 Q10364 Q52125 Q59269 Q266259 Q157720 Q50148 Q101148 Q59265 Q388325 Q20585 Q496878 Q42208 Q17877 Q53824 Q9028 Q100141 Q34638 Q58901 Q243022 Q270299 Q478346 Q40094 Q6662 Q34703 Q34702 Q42366 Q42192 Q23648 Q9187 Q95090 Q20095 Q10226 Q111147 Q42298 Q488240 Q9298 Q271236 Q49603 Q100044 Q100040 Q17749 Q52953 Q24918 Q177713 Q47125 Q20299 Q39849 Q34568 Q13657 Q50079 Q9428 Q42680 Q42723 Q491724 Q20517 Q9336 Q42219 Q46293 Q40396 Q6244
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action count
action atmost
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { { ?b rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15617994 . ?t property:P417 ?b } UNION { ?b rdf:type ontology:Q1445650 . ?t rdf:type ontology:Q15617994 . ?t property:P417 ?b } } GROUP BY ?t } . FILTER ( ?h <= 1 ) }
Abetone Altino, Abruzzo Castelcovati Campomorone Aisone Foza Diano Castello Falconara Marittima Ariano Irpino Cairano Sesto San Giovanni Lomagna Meina Cairate Monsampolo del Tronto Borgosatollo San Martino in Strada Nughedu Santa Vittoria Belmonte Mezzagno Montemale di Cuneo Villa Lagarina Osasio Orio Canavese Monterosso Grana Bioglio Clauzetto Bagnasco Cesenatico Decimoputzu Vobarno Callabiana Pozzomaggiore Seniga Carinaro Enego Comiziano Scerni Fara in Sabina Trissino Gaiola Spineto Scrivia Castelliri Gabicce Mare Galliavola Gagliato Quassolo Barone Canavese Brazil Albairate Marciano della Chiana Arzignano Portugal Zeri Brescello Foppolo Borgo a Mozzano San Giuseppe Jato Belforte Monferrato Gerace Borgomasino Laganadi Alfano Favale di Malvaro Cesano Boscone Urago d'Oglio Cusano Milanino Solonghello Anela Civitella Messer Raimondo Barletta Candiolo Castiglione Messer Marino Zaccanopoli Soriano Calabro Orosei Alpignano Arezzo Arquà Polesine Sant'Angelo d'Alife Manoppello Bellinzago Lombardo Rovetta Lampedusa e Linosa Sparone Trenzano Manduria Sestriere Eppan an der Weinstraße Casalfiumanese Casal Cermelli Cartosio Chiari Noepoli Ingria Rocca di Botte Sgurgola Ittireddu San Polo dei Cavalieri Castiglione di Sicilia Casperia Abano Terme Mombaruzzo Mombaldone Castel del Piano Calanna Antegnate Campo Calabro Cerignola Arzachena Gadoni Zelo Buon Persico Cartura Graglia Burcei Sernio Comun Nuovo Siziano Pianezza Sestu Poggio a Caiano Maserà di Padova Abbiategrasso Ziano di Fiemme Fiesso Umbertiano Buriasco Cappella de' Picenardi Bianzone Narzole Cormons Breganze Battaglia Terme Cattolica Castelmagno Polpenazze del Garda Thiene Codigoro Campodimele Torriana Mello Castorano Front Castelnuovo di Porto Squinzano Frossasco Merì Curno Collobiano Priolo Gargallo Bibbona Carlino Legnago Bosia Rigolato Azzio Terno d'Isola Lucito Tufino Talana Cavaglio d'Agogna Cavallirio Mondragone Baselice Scillato Gerano Cupramontana Vigonovo Sesto Campano Pozzilli Grassobbio Longhena Crocefieschi Meleti Pombia Agugliano Colfelice Spinete Lierna Argegno Gerola Alta Langhirano Castel San Pietro Terme Gussago San Marzano Oliveto San Martino Alfieri Marianopoli Rende Banchette Satriano Belluno Valprato Soana Varisella Valgioie Rocca Canavese Rivoli Venaria Reale Andali Belcastro Gravellona Lomellina Cassine Castiglione Falletto Grimaldi, Calabria Fiumefreddo Bruzio Noragugume Frascineto Pozzonovo Comazzo Nuoro Moggio Udinese Quarona Bertonico Macchiagodena Postua Carasco Mortegliano Isola d'Asti Alessano Frinco Bagnolo di Po Alba Adriatica Garda Gavi, Piedmont Borgarello Ramponio Verna Civiasco Mezzolombardo Isola Dovarese Trasacco Massazza Leno Santa Marina Salina Ceranesi Mottalciata Zeme Feltre Cappelle sul Tavo Calizzano Belmonte Calabro Valmozzola Trecastagni Seulo Alessandria della Rocca Montjovet Castelbaldo Cetona Montereale Valcellina Cerreto Laziale Alatri Vinzaglio Rezzato Guidonia Montecelio Camaiore Montegalda San Salvo Santa Lucia di Serino Chiaravalle, Marche Camigliano Lombriasco Piobesi d'Alba Lugnacco Brugnato Frabosa Soprana Sale delle Langhe Colledara Castel Rocchero Arcevia Trevi nel Lazio Pompei Giuncugnano Castellero Verucchio Finland Cavedine Pasian di Prato Lithuania Borgo Tossignano Cremolino Fobello Fiorano al Serio Canischio Termini Imerese Palosco Tortona Stefanaconi Brandizzo Mangone Osiglia Massiola Malito Bra Chiuduno Santeramo in Colle Dovera Magliano Alpi Cannero Riviera Lisio Regalbuto Montanaro Folignano Montemesola Monte di Procida Conca dei Marini San Gregorio Matese Roccasecca Scandale Guidizzolo Tenno, Trentino Serramezzana Santa Sofia d'Epiro Orvinio Nocera Inferiore Cusago Gaiole in Chianti Cervignano d'Adda Prata d'Ansidonia Montevecchia Sala Monferrato San Paolo di Jesi Roatto Roccaverano Prarostino Arquata Scrivia San Ferdinando di Puglia Porte Omegna San Romano in Garfagnana Borgo d'Ale Prascorsano Pratiglione Dipignano Domanico Fagnano Castello Montecopiolo Candelo Figline Vegliaturo Capriano del Colle Torre Orsaia Murello Brugherio Susegana Dairago Sulmona Citta' Mezzane di Sotto Spino d'Adda Castel Colonna Belforte del Chienti Alcara li Fusi Veroli Urbana San Felice sul Panaro Bellegra Romans d'Isonzo Wuppertal Chiampo Pergine Valsugana Tocco da Casauria Roascio Monte San Giusto Librizzi San Giorgio La Molara San Felice Circeo Pallanzeno Bagolino Sedilo Alseno Trepuzzi Usmate Velate Colazza Liscate Vizzolo Predabissi Sannicola Luogosanto Castelvenere Nomaglio Trebaseleghe Bertiolo Vico Equense Telgate Santa Maria Coghinas Crotta d'Adda Roccamontepiano Filandari Collepasso Cessaniti Magliano di Tenna Manerba del Garda Drapia Monteriggioni Valle Castellana Montenero Val Cocchiara Margarita Barolo Casalbuono Paruzzaro San Giorgio di Nogaro Lusigliè Vauda Canavese Cicciano Siligo Subbiano Agliano Terme San Cosmo Albanese Sinopoli Siderno Campofranco Baceno Aurano Liveri Lallio Senna Lodigiana Isso, Lombardy Anversa degli Abruzzi Abbadia San Salvatore Tramatza Aquara Serra San Quirico Zoagli San Floro Caprauna Grignasco Dolcè Lona-Lases Canale Varallo Sesia Cirigliano Torre Annunziata Fuscaldo Brignano-Frascata Nembro Usseglio Trasquera Valbondione Colle d'Anchise Pleinfeld Fenestrelle Terracina Torrebruna Verduno Terranova dei Passerini Menarola Campo di Giove Francavilla Marittima San Mauro Marchesato Vò Corte Palasio Cortiglione Conflenti Castel di Lucio Rossana Terranova Sappo Minulio Monasterolo Casotto Caprarola Armungia Cenate Sopra Noli Marentino Barbata Resuttano Blello Spresiano Civitella Casanova Sant'Egidio del Monte Albino Ogliastro Cilento Paesana Ronco Briantino Tarzo Rocca Pietore Ponza, Lazio Cologna Veneta Marostica Noviglio Alice Superiore Settala Calcio, Lombardy Pandino Saracena Montegallo Ripatransone Palmiano Castel Guelfo di Bologna Flaibano Roccafluvione Ponte Nossa Cisterna d'Asti Brossasco Lavena Ponte Tresa Briga Alta Mercogliano Mirabella Eclano Bellizzi Castiglione Messer Raimondo Maccastorna Crespiatica Guagnano Garlasco Cerva Castel del Giudice Caiolo Albuzzano Rimella Povoletto Sardigliano Riva Valdobbia Aulla Caselle Landi Montecatini Terme Caprie San Gregorio d'Ippona Dormelletto Beinasco Carpasio Montello, Lombardy Serra San Bruno Caravino Settingiano Lucinasco Pieve a Nievole Agnadello Monteu da Po Grezzago Villadeati Envie Sangano San Costantino Albanese Santadi Cargeghe Londa, Tuscany San Secondo di Pinerolo Morsasco Sant'Angelo Limosano Copertino Gurro Statte Ceglie Messapica Boves Montemarzino Latiano Vignale Monferrato Bisceglie Santopadre Cadorago Sori, Liguria Borzonasca Nissoria Serrenti Cologno al Serio Colzate Macerata Campania Basicò San Giorgio Albanese Maletto Roghudi San Demetrio Corone Roccapalumba Noale Casalborgone Aversa Quagliuzzo Cavallerleone Acqui Terme Borgo Vercelli Novi Ligure Strigno Cigole Cerzeto Cervicati Carbonia Motta Baluffi Sarsina Ripalta Guerina Motta de' Conti Montefiorino Arre Ameno San Martino del Lago Sommariva del Bosco Torre Bormida Santo Stefano d'Aveto Aidomaggiore Camisano Vicentino Casalbore Baldissero Canavese Motta Sant'Anastasia Bema Salice Salentino Roccagorga Reitano San Gregorio nelle Alpi Corvara Villa di Serio Boca Orsara Bormida Casalmaiocco Ottiglio San Sebastiano al Vesuvio Annone di Brianza Bibiana Aiello del Friuli Santa Venerina Bastia Mondovì Cogne Cerveno Roncola Trevi Casalvolone Dugenta Collalto Sabino Bregano Sant'Elia a Pianisi Pietracamela Laglio Martiniana Po Marano Vicentino Alzano Lombardo Castiglion Fibocchi Castelfranco di Sopra Salsomaggiore Terme Mel Sillano Monteverdi Marittimo Noceto Serravalle Pistoiese Gragnano Trebbiense Alife, Campania Porto Cesareo Casoria Perfugas Bubbio Berzano di San Pietro Castel Campagnano Lurano Balangero Faeto Agrate Brianza Bannio Anzino Casalattico Parabiago Platì Lenna, Lombardy Villa d'Adda Sciara Montelupo Fiorentino Nuvolento Bardolino Villafranca d'Asti Bosio Arvier Bosco Marengo Borgoratto Alessandrino Ari, Abruzzo Guarene Assisi Monteroni d'Arbia Alberobello Banari Capralba Tromello Terzigno Cesiomaggiore Canonica d'Adda Sappada Celle Ligure Cerretto Langhe Morimondo Ittiri Gremiasco Cerenzia Cotronei Mulazzano Valera Fratta Castel di Tora Bagnara di Romagna Brognaturo Montechiaro d'Asti Roddi Campofilone Massalengo Montaldo di Mondovì Caraffa del Bianco Monforte d'Alba Albettone Airuno Macugnaga Masullas Lazise Malvicino Sessa Aurunca Sant'Angelo Muxaro Anagni Canegrate San Clemente, Emilia-Romagna Oggiono Silea Monsampietro Morico Chiusa di Pesio Casole Bruzio Ceva Monreale Forno Canavese Forcola Cosenza Vezza d'Alba Trinità d'Agultu e Vignola Romana, Sardinia Sesto Calende Villa Vicentina Sillavengo Acquanegra Cremonese Magliano in Toscana Venarotta Spinetoli San Sossio Baronia Cavasso Nuovo Azzano Decimo Levanto, Liguria Andalo Valtellino Guardia Lombardi Piario Verbicaro Celle di Bulgheria Corinaldo Piazza Brembana Vaccarizzo Albanese Bassiano Caprino Veronese Bellante Santo Stefano al Mare Vicopisano Secugnago Jerzu Esino Lario Carloforte Civo Rogolo Romagnese Bultei Stienta Sirmione Cadrezzate Valbrembo Rocca Grimalda Sedini Longone Sabino Nardodipace Caldonazzo Vallelunga Pratameno Selva di Progno Marano di Napoli Ameglia San Giorgio del Sannio Castellino Tanaro Castel d'Azzano Vinovo Palena, Abruzzo Savona Villafranca Padovana Tiriolo Aymavilles Viticuso Castel Ritaldi Riccione Entracque Meugliano Montemurlo Bacoli Vische Casarano Montelparo Tiglieto Capoliveri Scanno, Abruzzo Gorno Montefalcone Appennino Siamaggiore Villanova Mondovì Capaci Malagnino Vesime Alessandria del Carretto Balme Capriate San Gervasio Arquà Petrarca Sparanise Morlupo Rocchetta di Vara Licodia Eubea Morbegno Cesena Torreglia Tribano Livraga San Donato Milanese Montecrestese Carmagnola Argenta, Emilia–Romagna Barasso Rivarolo Canavese Carpineti Codogno Lentini Coazze Spotorno Ponte Buggianese Castelnuovo Rangone Camposanto Azzano d'Asti Alfonsine Campertogno San Lorenzo Nuovo Avezzano Paroldo Robbio Melara Lanusei Celano Locana Cumignano sul Naviglio Torlino Vimercati Sant'Agata di Militello Treiso Druento Montanaso Lombardo Asigliano Veneto Limbiate Lodi
824
action count
action atmost
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { { ?b rdf:type ontology:common_name . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:patron_saint ?b } UNION { ?b rdf:type ontology:holiday . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:patron_saint ?b } } GROUP BY ?t } . FILTER ( ?h <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29552
P355
Q7210356
USER
Which political organizations serve as a subsidiary of Democratic Party ?
(Q29552,P355,c(Q7210356))
action filter_type
action find
entity Q29552
relation P355
type Q7210356
['Q29552', 'P355', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . resource:Q29552 property:P355 ?v }
Democratic Party
action filter_type
action find
entity Democratic Party
relation subsidiary
type political organization
['Democratic Party', 'subsidiary', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . resource:Democratic_Party property:subsidiary ?v }
[]
political organization
Q7008134 Q5020399
SYSTEM
New Hampshire Democratic Party, California Democratic Party
Q7008134 Q5020399
(Q29552,P355,c(Q7210356))
action filter_type
action find
entity Q29552
relation P355
type Q7210356
And [ANSWERS] serve as a subsidiary of Democratic Party
['Q29552', 'P355', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . resource:Q29552 property:P355 ?v }
New Hampshire Democratic Party California Democratic Party
And New Hampshire Democratic Party and California Democratic Party serve as a subsidiary of Democratic Party
New Hampshire Democratic Party California Democratic Party
action filter_type
action find
entity Democratic Party
relation subsidiary
type political organization
['Democratic Party', 'subsidiary', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . resource:Democratic_Party property:subsidiary ?v }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5020399
P488
Q502895
USER
Who chaired that political organization ?
(Q5020399,P488,c(Q502895))
action filter_type
action find
entity Q5020399
relation P488
type Q502895
['Q5020399', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q5020399 property:P488 ?m . ?m rdf:type ontology:Q502895 }
California Democratic Party
action filter_type
action find
entity California Democratic Party
relation chairperson
type common name
['California Democratic Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:California_Democratic_Party property:chairperson ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5020399
SYSTEM
Did you mean California Democratic Party ?
Q7008134 Q5020399
(Q7008134,P488,c(Q502895)) (Q5020399,P488,c(Q502895))
[ANSWER]
['Q7008134', 'P488', {'concept': 'Q502895'}] ['Q5020399', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q5020399 property:P488 ?m . ?m rdf:type ontology:Q502895 }
New Hampshire Democratic Party California Democratic Party
Did you mean California Democratic Party ?
California Democratic Party
['New Hampshire Democratic Party', 'chairperson', {'concept': 'common name'}] ['California Democratic Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:California_Democratic_Party property:chairperson ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5020399,P488,c(Q502895))
['Q5020399', 'P488', {'concept': 'Q502895'}]
['California Democratic Party', 'chairperson', {'concept': 'common name'}]
[]
Q1700888
SYSTEM
John L. Burton
Q1700888
(Q5020399,P488,c(Q502895))
action filter_type
action find
entity Q5020399
relation P488
type Q502895
[ANSWER] chaired that political organization
['Q5020399', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q5020399 property:P488 ?m . ?m rdf:type ontology:Q502895 }
John L. Burton
John L. Burton chaired that political organization
John L. Burton
action filter_type
action find
entity California Democratic Party
relation chairperson
type common name
['California Democratic Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:California_Democratic_Party property:chairperson ?m . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?q } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?h = ?y ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?q } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?h = ?y ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?q } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?h = ?y ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?q } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?h = ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P272
Q838948
USER
Which work of art was produced by United States of America ?
(c(Q838948),P272,Q30)
action filter_type
action find_reverse
entity Q30
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q30']
SELECT DISTINCT ?b WHERE { ?b property:P272 resource:Q30 . ?b rdf:type ontology:Q838948 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'United States of America']
SELECT DISTINCT ?b WHERE { ?b property:production_company resource:United_States_of_America . ?b rdf:type ontology:work_of_art }
[]
work of art
Q1424889
SYSTEM
Crustacés et Coquillages
Q1424889
(c(Q838948),P272,Q30)
action filter_type
action find_reverse
entity Q30
relation P272
type Q838948
France [ANSWER] was produced by United States of America
[{'concept': 'Q838948'}, 'P272', 'Q30']
SELECT DISTINCT ?b WHERE { ?b property:P272 resource:Q30 . ?b rdf:type ontology:Q838948 }
Crustacés et Coquillages
France Crustacés et Coquillages was produced by United States of America
Crustacés et Coquillages
action filter_type
action find_reverse
entity United States of America
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'United States of America']
SELECT DISTINCT ?b WHERE { ?b property:production_company resource:United_States_of_America . ?b rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P138
Q2221906
USER
Which geographic location is that administrative territory named after ?
(Q1424889,P138,c(Q2221906))
action filter_type
action find
entity Q30
relation P138
type Q2221906
['Q1424889', 'P138', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { resource:Q30 property:P138 ?g . ?g rdf:type ontology:Q2221906 }
United States of America
action filter_type
action find
entity United States of America
relation named after
type geographic location
['Crustacés et Coquillages', 'named after', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { resource:United_States_of_America property:named_after ?g . ?g rdf:type ontology:geographic_location }
[]
geographic location
Q828
SYSTEM
Americas
Q828
(Q1424889,P138,c(Q2221906))
action filter_type
action find
entity Q30
relation P138
type Q2221906
That administrative territory is named the [ANSWER]
['Q1424889', 'P138', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { resource:Q30 property:P138 ?g . ?g rdf:type ontology:Q2221906 }
Americas
That administrative territory is named the Americas
Americas
action filter_type
action find
entity United States of America
relation named after
type geographic location
['Crustacés et Coquillages', 'named after', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { resource:United_States_of_America property:named_after ?g . ?g rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P47
Q15617994
USER
Which administrative territories have a shared border with United States of America ?
(Q30,P47,c(Q15617994))
action filter_type
action find
entity Q30
relation P47
type Q15617994
['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q30 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
United States of America
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:United_States_of_America property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q17 Q96
SYSTEM
Russia, Japan, Mexico
Q702 Q804 Q159 Q96 Q17 Q786 Q241 Q683 Q710 Q678 Q717 Q790
(Q30,P47,c(Q15617994))
action filter_type
action find
entity Q30
relation P47
type Q15617994
[ANSWERS] have a shared border with United States of America
['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q30 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Federated States of Micronesia Panama Russia Mexico Japan Dominican Republic Cuba Samoa Kiribati Tonga Venezuela Haiti
Russia, Japan and Mexico have a shared border with United States of America
Russia Japan Mexico
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:United_States_of_America property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]