Simple Question (Direct)
Simple Question
Q615795
P20
Q56061
USER
Which administrative territory is the place of death of Jacques Dufilho ?
(Q615795,P20,c(Q56061))
action filter_type
action find
entity Q615795
relation P20
type Q56061
['Q615795', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q615795 property:P20 ?h }
Jacques Dufilho
action filter_type
action find
entity Jacques Dufilho
relation place of death
type administrative territorial entity
['Jacques Dufilho', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Jacques_Dufilho property:place_of_death ?h }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q615795,P20,c(Q56061))
action filter_type
action find
entity Q615795
relation P20
type Q56061
[ANSWER] is the place of death of Jacques Dufilho
['Q615795', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q615795 property:P20 ?h }
Paris
Paris is the place of death of Jacques Dufilho
Paris
action filter_type
action find
entity Jacques Dufilho
relation place of death
type administrative territorial entity
['Jacques Dufilho', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Jacques_Dufilho property:place_of_death ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q615795
P1346
Q618779
USER
Which award was won by that person ?
(c(Q618779),P1346,Q90)
action filter_type
action find_reverse
entity Q615795
relation P1346
type Q618779
[{'concept': 'Q618779'}, 'P1346', 'Q90']
SELECT DISTINCT ?l WHERE { ?l property:P1346 resource:Q615795 . ?l rdf:type ontology:Q618779 }
Jacques Dufilho
action filter_type
action find_reverse
entity Jacques Dufilho
relation winner
type award
[{'concept': 'award'}, 'winner', 'Paris']
SELECT DISTINCT ?l WHERE { ?l property:winner resource:Jacques_Dufilho . ?l rdf:type ontology:award }
[]
award
Q900424
SYSTEM
César Award for Best Supporting Actor
Q900424
(c(Q618779),P1346,Q90)
action filter_type
action find_reverse
entity Q615795
relation P1346
type Q618779
The [ANSWER] was won by that person
[{'concept': 'Q618779'}, 'P1346', 'Q90']
SELECT DISTINCT ?l WHERE { ?l property:P1346 resource:Q615795 . ?l rdf:type ontology:Q618779 }
César Award for Best Supporting Actor
The César Award for Best Supporting Actor was won by that person
César Award for Best Supporting Actor
action filter_type
action find_reverse
entity Jacques Dufilho
relation winner
type award
[{'concept': 'award'}, 'winner', 'Paris']
SELECT DISTINCT ?l WHERE { ?l property:winner resource:Jacques_Dufilho . ?l rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q900424 Q2994815
P1346
Q502895
USER
Did Constance Verluca emerge victorious in César Award for Best Supporting Actor ?
(Q900424,P1346,Q2994815)
action is_in
entity Q2994815
action find
entity Q900424
relation P1346
['Q900424', 'P1346', 'Q2994815']
ASK WHERE { resource:Q900424 property:P1346 resource:Q2994815 }
César Award for Best Supporting Actor Constance Verluca
action is_in
entity Constance Verluca
action find
entity César Award for Best Supporting Actor
relation winner
['César Award for Best Supporting Actor', 'winner', 'Constance Verluca']
ASK WHERE { resource:César_Award_for_Best_Supporting_Actor property:winner resource:Constance_Verluca }
[]
common name
SYSTEM
NO
(Q900424,P1346,Q2994815)
action is_in
entity Q2994815
action find
entity Q900424
relation P1346
[ANSWER]
['Q900424', 'P1346', 'Q2994815']
ASK WHERE { resource:Q900424 property:P1346 resource:Q2994815 }
No
action is_in
entity Constance Verluca
action find
entity César Award for Best Supporting Actor
relation winner
['César Award for Best Supporting Actor', 'winner', 'Constance Verluca']
ASK WHERE { resource:César_Award_for_Best_Supporting_Actor property:winner resource:Constance_Verluca }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1929731
P138
Q43229 Q502895 Q56061
USER
Which administrative territories are named after more number of organizations and people than Ter Apelkanaal ?
(c(Q56061),P138,c(Q43229)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q43229
action find_tuple_counts
relation P138
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q1929731
relation P138
type Q43229
type Q502895
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q43229'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?x WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } } GROUP BY ?x } . FILTER ( ?r > ?b ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Q1929731 property:P138 ?g . { { ?g rdf:type ontology:Q43229 } UNION { ?g rdf:type ontology:Q502895 } } } } }
Ter Apelkanaal
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type organization
action find_tuple_counts
relation named after
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Ter Apelkanaal
relation named after
type organization
type common name
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'organization'}, {'concept': 'common name'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?x WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:organization ) ( ontology:common_name ) } } GROUP BY ?x } . FILTER ( ?r > ?b ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Ter_Apelkanaal property:named_after ?g . { { ?g rdf:type ontology:organization } UNION { ?g rdf:type ontology:common_name } } } } }
[]
organization common name administrative territorial entity
Q1829 Q174 Q60
SYSTEM
Kaliningrad, São Paulo, New York City
Q1510724 Q202736 Q5425343 Q1004791 Q1020592 Q1017362 Q2132 Q509541 Q1016100 Q1024892 Q15273 Q567825 Q146811 Q493378 Q574085 Q947001 Q1085963 Q7947 Q155955 Q1152219 Q894 Q2502173 Q891 Q2291816 Q21416521 Q157688 Q25923 Q102334 Q3844 Q6661068 Q11683189 Q963170 Q2583602 Q534957 Q2288 Q810678 Q3481151 Q2768192 Q4217424 Q588 Q484678 Q196501 Q946227 Q4258240 Q2067514 Q19289482 Q6506 Q605113 Q989567 Q1403187 Q606153 Q1018025 Q2403511 Q2890642 Q2685999 Q4067724 Q1297086 Q1829193 Q18471262 Q21999685 Q4116524 Q1186226 Q191642 Q200917 Q124281 Q787828 Q13542193 Q2138 Q1120380 Q128306 Q15242553 Q189295 Q9365 Q3726467 Q976759 Q48329 Q4231936 Q5646251 Q675049 Q264605 Q269222 Q5284497 Q5284494 Q516769 Q525007 Q2315713 Q568563 Q12077645 Q2280179 Q12077647 Q133310 Q132679 Q1509463 Q2583736 Q1410885 Q1253349 Q1144877 Q192235 Q2060859 Q2786965 Q3462820 Q2022921 Q746056 Q14218357 Q4792204 Q208445 Q913476 Q21186160 Q2104736 Q954186 Q16555 Q476835 Q1019187 Q282540 Q2132831 Q20593492 Q28260 Q13129608 Q153490 Q2531632 Q6661799 Q95041 Q1000172 Q874262 Q166065 Q1043381 Q4454 Q2367586 Q155309 Q3396792 Q196724 Q2199406 Q16294796 Q990898 Q488987 Q970540 Q887 Q2082 Q906740 Q491462 Q2141 Q6178987 Q812722 Q37133 Q714650 Q6661272 Q4813216 Q767177 Q3141 Q814163 Q2031463 Q17151 Q5062771 Q14706851 Q605267 Q16559 Q23443 Q1656936 Q1019486 Q3130 Q10843471 Q198125 Q7592847 Q1866604 Q79863 Q1750681 Q690882 Q2615624 Q3567822 Q484870 Q13129631 Q664723 Q87 Q965101 Q211463 Q16274129 Q19289906 Q765823 Q1353744 Q48338 Q5112 Q525618 Q5239 Q2190456 Q175161 Q268782 Q666165 Q93910 Q5284547 Q966492 Q18242285 Q37320 Q642164 Q208000 Q284406 Q17203393 Q806903 Q153609 Q153565 Q786611 Q16869 Q722396 Q5169909 Q175505 Q19289593 Q174 Q60 Q961248 Q18602441 Q823475 Q1144250 Q1659808 Q2198018 Q16648189 Q1878726 Q2003323 Q143697 Q975843 Q15241652 Q1158897 Q368727 Q2204179 Q14912 Q48273 Q1935682 Q10393380 Q105284 Q1176875 Q20593780 Q3406126 Q3497036 Q196934 Q187346 Q5655 Q6226 Q493025 Q34183 Q103850 Q2920311 Q1996519 Q157458 Q51681 Q2198333 Q5384 Q17942 Q953279 Q6936566 Q158357 Q5206 Q12131761 Q1020484 Q20593327 Q895407 Q2840555 Q18161533 Q3047387 Q3152900 Q1856529 Q11568 Q6377788 Q16658206 Q961897 Q153549 Q49219 Q979752 Q1010939 Q156717 Q4207520 Q2063327 Q1829 Q1047189 Q12093400 Q593141 Q1659154 Q457334 Q16015068 Q244025 Q1816203 Q631186 Q6787277 Q2732597 Q43070 Q24639 Q45604 Q1026175 Q3413067 Q134279 Q915 Q914 Q162933 Q1861097 Q6449092 Q3623803 Q44016 Q44013 Q744550 Q197902 Q2540118 Q13640603 Q375185 Q157469 Q2043530 Q2919992 Q5627 Q61 Q62 Q1937099 Q201125 Q105150 Q15552182 Q1026838 Q1025016 Q1297201 Q79588 Q5284526 Q982379 Q5261403 Q1002286 Q72380 Q4867888 Q956545 Q855572 Q795623 Q2483434 Q499169 Q270887 Q1818610 Q2215428 Q8076888 Q132832 Q5491176 Q4620106 Q10313 Q405550 Q3497234 Q40747 Q17486733 Q578669 Q134318 Q632687 Q867468 Q21181 Q187313 Q44059 Q40191 Q955151 Q20252340 Q2603127 Q2464425 Q158292 Q518189 Q5511175 Q9003776 Q784496 Q6665662 Q1040 Q575206 Q152491 Q870864 Q5603908 Q3400083 Q136383 Q19290903 Q2123 Q2127 Q2061265 Q18744510 Q3495314 Q856004 Q3002124 Q133116 Q991515 Q983438 Q3932 Q3305212 Q2029779 Q1187051 Q712567 Q6096033 Q955115 Q1015690 Q886915 Q4336048 Q2997217 Q849292 Q79809 Q1341 Q16106 Q1476342 Q146798 Q1016404 Q8052284 Q916603 Q1013717 Q198748 Q20205972
(c(Q56061),P138,c(Q43229)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q43229
action find_tuple_counts
relation P138
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q1929731
relation P138
type Q43229
type Q502895
[ANSWERS] are named after more number of organizations and people than Ter Apelkanaal
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q43229'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?x WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } } GROUP BY ?x } . FILTER ( ?r > ?b ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Q1929731 property:P138 ?g . { { ?g rdf:type ontology:Q43229 } UNION { ?g rdf:type ontology:Q502895 } } } } }
White Bird Littlefield FELDA L.B. Johnson Douglas Pulaski Mount Hagen Victoria Andrews King William's Town Robertsport Kirovsk Zuid-Beijerland Zanesville Culver City Strahan George Enescu Franklin Pushkin Kuybyshev Baker City Samara Maksyma Horkoho Nizhny Novgorod Gheorghe Doja Settlement of Sullivans Cove Lomonosov Longyearbyen Dmitrov Brazzaville Llanafan Fawr Ingeniero Adolfo Sourdeaux Humboldt Sint-Anna Cleburne Tver Bastrop Shackleton Mahbubnagar Cato Ridge Katowice Berkeley Suvorov Kermit Lenino Quesnel, British Columbia Sztálinváros Varna Gosford Wooster Felipe Carrillo Puerto Port Macquarie Vahdat St Arnaud Beit Berl Pieterburen Anuchino Szentléránt Gardner San Lorenzo Llantrithyd Daintree Lincoln, New Zealand São José dos Campos Zaslawye Antinopolis Aleksa Šantić C.A. Rosetti Fredericton Prescott Denton Llandeloy Serov Dushanbe I.L. Caragiale Kountze Mariehamn Konchanskoe-Suvorovskoe Hampton Lucy Flandreau Humboldt Buchanan, Liberia Braddon Bass Faya-Largeau Kerrville Inkster Lincoln Alexandru Odobescu Ushakovskoye Alexandru Odobescu Volodarsk Willemstad Vaishali Lincolnville Pulaski Rókus Currie Ciudad del Este Nieuw-Beijerland Lincoln Krasnogvardeyskoye, Stavropol Krai Burgemeester Beinsdorp Telečka Holbrook Qarakeçdi Vallejo Albert Lea Kerekszenttamás Port McNeill Campbelltown Houston Givat Brenner Daireaux Thompson Falls Prins Alexander Llandeilo Graban Lincoln Llanbadarn Fynydd Kirov Papagou Llantilio Pertholey Naberezhnye Chelny Pulaski Ladysmith Lelystad Reimersholme Khabarovsk Sint Jacobiparochie Korolyov Melas Tutayev Haslam Stalinstadt Georgetown Türkmenbaşy Wharton Yekaterinburg St. John's Diósgyőr-Vasgyár Anderson Halifax Jennings Bački Gračac Mariupol Obrenovac Llandyssil Athanasios Diakos, Greece Kurchatov Melbourne Beeville Santo Tomé Thessaloniki General Berthelot Mabbettsville Geraldton Austin Provo Sáenz Peña Harper Sydney Aarón Castellanos Chkalovsk St Clether Livingstone, Zambia Tskhinvali Rakovski Municipality Sint Philipsland Lincolnton Whitton Eisleben Llanfechell Henderson Alexandria Emory Agios Nikolaos Bergen Isakhanova Dunapentele Augusta Vindelicorum Marconi Wireless Station Site Kayseri Adelaide Presidente Prudente Vladikavkaz Stawell Novomoskovsk Bady Bassitt Augusta Treverorum Novokuznetsk Lyons Lincoln, California Beruniy Cleveland Beylagan Mahabalipuram José María Morelos Bajaszentistván Banning Kirovsk Kirovo-Chepetsk Püspökszentlászló Constantinople Dusti Cordeaux Heights Nolinsk Leninváros São Paulo New York City Valentine Benczúrfalva Hall Hopetoun Imeni Poliny Osipenko Batadorp Yelizavetovka Willemsoord, Steenwijkerland Warner Robins Kalininsk Kaufman Busse Dampier Mátyásföld Llandeilo Saarlouis Adamstown Kolkhozobod Wenceslao Escalante Bolgar Mihail Kogălniceanu Llanddwywe Llantwit Fardre Kennedy Town Ussuriysk Constantine Chernyakhovsk St Albans Edson Barrie Arsenyev Nordia Agia Varvara Leninogorsk Charlotte Amalie Buweklooster Kirov Haasts Bluff Sveti Petar, Ogulin Victor Larco Herrera Municipality Marks Stavropol Mihai Eminescu Satpayev Llanbadarn y Garreg Bowen Sint Annaparochie Russell Hill Eden Amsterdam, Mpumalanga Alexander Bay, Northern Cape Darwin Oprișani Turgenevo Lincoln Kirovgrad Irvine Post Akhalgori Khmelnytskyi Kazakevichevo Roma Kaliningrad Golovnino Vintilă Vodă Philip Shahrixon Moncton Venyukovo Burnaby Presidente Bernardes Thomasville Mathinna Nikola Tesla Donetsk Vancouver Kandahar Custer Jean-Jaurès Luhansk Perm Volgograd Amaliada Sint Nicolaasga Kuybyshev General Praporgescu Markham Vaughan Belton Chekalin Santo Tomé Banevurovo Hanford Leninsk Oranjedorp Kfar Zoharim Ulyanovsk Washington, D.C. San Francisco Pierz Zrenjanin Biryuch Tikhmenevo Kfar Malal Cooperstown Szentsimon Lincoln Franklin Sherman Derby Donji Milanovac Kurchatov Bass Wildervank Bükkszentlászló Oud-Beijerland Frederiksoord Tyler Lethbridge Lastoursville Souillac, Mauritius Ángel R. Cabada Budyonnovsk Franklin Kərimbəyli Donostia/San Sebastián Suvorovo Motovilikhinsky City District Pierre Llandeilo Abercywyn Albertfalva Gagarin Archer City Ciprian Porumbescu Fredericia Stanley La Plata Hobart Butler Miguel Alemán Valdés Al-Malikiyah Clay Kropyvnytskyi Agostyán Fyansford Hilario Ascasubi Victoria Lockington Karlsruhe Mount Pulaski Herzliya Lenauheim Greenethorpe Llanafan Zhukov Pálhalma Regina Charlottetown Perito Moreno Llanfechan St Endellion C.A. Rosetti Crantock Hamilton Canmore Douglas São Tomé Young Lincolnton Svilojevo Artigas Ivan Cankar, Maribor Kirawsk Hastings Blythe Ordzhonikidze Chkalovsk Pedro Juan Caballero Utqiaġvik Tolyatti Eisenhüttenstadt Hell-Bourg Zanesfield Burketown Yeni yol, Shamkir Cody Hamtramck Engels Colonia Ángel Heladio Aguirre Rivero
Kaliningrad, São Paulo and New York City are named after more number of organizations and people than Ter Apelkanaal
Kaliningrad São Paulo New York City
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type organization
action find_tuple_counts
relation named after
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Ter Apelkanaal
relation named after
type organization
type common name
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'organization'}, {'concept': 'common name'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?x WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:organization ) ( ontology:common_name ) } } GROUP BY ?x } . FILTER ( ?r > ?b ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Ter_Apelkanaal property:named_after ?g . { { ?g rdf:type ontology:organization } UNION { ?g rdf:type ontology:common_name } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5070516 Q174
P190 P1383
Q56061
USER
Which administrative territories are twin cities of São Paulo or do Crasna have administrative control over ?
OR((Q174,P190,c(Q56061)), (Q5070516,P1383,c(Q56061)))
action filter_type
action union
action find
entity Q174
relation P190
action find
entity Q5070516
relation P1383
type Q56061
{'OR': [['Q174', 'P190', {'concept': 'Q56061'}], ['Q5070516', 'P1383', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q174 property:P190 ?s } UNION { resource:Q5070516 property:P1383 ?s } } . ?s rdf:type ontology:Q56061 }
Crasna São Paulo
action filter_type
action union
action find
entity São Paulo
relation sister city
action find
entity Crasna
relation contains settlement
type administrative territorial entity
{'OR': [['São Paulo', 'sister city', {'concept': 'administrative territorial entity'}], ['Crasna', 'contains settlement', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:São_Paulo property:sister_city ?s } UNION { resource:Crasna property:contains_settlement ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q425410 Q3897 Q956 Q12146637 Q433574 Q12085443 Q2606413 Q597 Q1491 Q12114182
SYSTEM
Some of them are Góis Municipality, Luanda, Beijing, Radoși, Alta Floresta, Buzești, Crasna, Lisbon, La Paz, Crasna din Deal
Q8686 Q2606413 Q3703 Q3766 Q181966 Q433574 Q5818 Q44059 Q1297 Q425410 Q44237 Q956 Q1781 Q1489 Q12146637 Q206933 Q1563 Q3897 Q12109655 Q12085443 Q33935 Q54898 Q45412 Q12114182 Q172 Q14314 Q12078788 Q490 Q2868 Q597 Q12078786 Q1335 Q12102382 Q159273 Q3805 Q1491 Q1492 Q12102852
OR((Q174,P190,c(Q56061)), (Q5070516,P1383,c(Q56061)))
action filter_type
action union
action find
entity Q174
relation P190
action find
entity Q5070516
relation P1383
type Q56061
[ANSWERS] are twin cities of São Paulo or do Crasna have administrative control over
{'OR': [['Q174', 'P190', {'concept': 'Q56061'}], ['Q5070516', 'P1383', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q174 property:P190 ?s } UNION { resource:Q5070516 property:P1383 ?s } } . ?s rdf:type ontology:Q56061 }
Shanghai Crasna Bamako Damascus Naha Alta Floresta Córdoba La Plata Chicago Góis Municipality Mendoza Beijing Budapest Mexico City Radoși Leiria Havana Luanda Cărpiniș Buzești Tel Aviv San Cristóbal de La Laguna Coimbra Crasna din Deal Toronto Santiago de Compostela Aninișu din Deal Milan Lima Lisbon Aninișu din Vale Montevideo Drăgoiești Arequipa Amman La Paz Barcelona Dumbrăveni
Góis Municipality, Luanda, Beijing, Radoși, Alta Floresta, Buzești, Crasna, Lisbon, La Paz and Crasna din Deal are twin cities of São Paulo or do Crasna have administrative control over
Góis Municipality Luanda Beijing Radoși Alta Floresta Buzești Crasna Lisbon La Paz Crasna din Deal
action filter_type
action union
action find
entity São Paulo
relation sister city
action find
entity Crasna
relation contains settlement
type administrative territorial entity
{'OR': [['São Paulo', 'sister city', {'concept': 'administrative territorial entity'}], ['Crasna', 'contains settlement', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:São_Paulo property:sister_city ?s } UNION { resource:Crasna property:contains_settlement ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q956 Q4566713
P559
Q34442
USER
How many roads terminates at Beijing or Skeppsbron ?
(c(Q34442),P559,Q956) (c(Q34442),P559,Q4566713)
action count
action union
action filter_type
action find_reverse
entity Q956
relation P559
type Q34442
action filter_type
action find_reverse
entity Q4566713
relation P559
type Q34442
[{'concept': 'Q34442'}, 'P559', 'Q956'] [{'concept': 'Q34442'}, 'P559', 'Q4566713']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?l ) { ( resource:Q4566713 ) ( resource:Q956 ) } . ?z property:P559 ?l }
Beijing Skeppsbron
action count
action union
action filter_type
action find_reverse
entity Beijing
relation terminus
type road
action filter_type
action find_reverse
entity Skeppsbron
relation terminus
type road
[{'concept': 'road'}, 'terminus', 'Beijing'] [{'concept': 'road'}, 'terminus', 'Skeppsbron']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?l ) { ( resource:Skeppsbron ) ( resource:Beijing ) } . ?z property:terminus ?l }
[]
road
SYSTEM
7
Q5516746 Q5305649 Q7541445 Q7541447 Q4979107 Q6520524 Q7542372
(c(Q34442),P559,Q956) (c(Q34442),P559,Q4566713)
action count
action union
action filter_type
action find_reverse
entity Q956
relation P559
type Q34442
action filter_type
action find_reverse
entity Q4566713
relation P559
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P559', 'Q956'] [{'concept': 'Q34442'}, 'P559', 'Q4566713']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?l ) { ( resource:Q4566713 ) ( resource:Q956 ) } . ?z property:P559 ?l }
Gaffelgränd Drakens gränd Slottsbacken Slottskajen Brunnsgränd Lejonbacken Slussplan
7
action count
action union
action filter_type
action find_reverse
entity Beijing
relation terminus
type road
action filter_type
action find_reverse
entity Skeppsbron
relation terminus
type road
[{'concept': 'road'}, 'terminus', 'Beijing'] [{'concept': 'road'}, 'terminus', 'Skeppsbron']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?l ) { ( resource:Skeppsbron ) ( resource:Beijing ) } . ?z property:terminus ?l }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15431922 Q174
P19 P190
Q56061
USER
Which administrative territories are partner towns of São Paulo or were John Sloss born at ?
OR((Q174,P190,c(Q56061)), (Q15431922,P19,c(Q56061)))
action filter_type
action union
action find
entity Q174
relation P190
action find
entity Q15431922
relation P19
type Q56061
{'OR': [['Q174', 'P190', {'concept': 'Q56061'}], ['Q15431922', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q174 property:P190 ?t } UNION { resource:Q15431922 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
John Sloss São Paulo
action filter_type
action union
action find
entity São Paulo
relation sister city
action find
entity John Sloss
relation place of birth
type administrative territorial entity
{'OR': [['São Paulo', 'sister city', {'concept': 'administrative territorial entity'}], ['John Sloss', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:São_Paulo property:sister_city ?t } UNION { resource:John_Sloss property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q44237 Q1297 Q597 Q3766 Q956 Q1563 Q433574 Q44059 Q33935 Q172
SYSTEM
Some of them are Mendoza, Chicago, Lisbon, Damascus, Beijing, Havana, Alta Floresta, La Plata, Tel Aviv, Toronto
Q8686 Q3703 Q3766 Q181966 Q433574 Q5818 Q44059 Q1297 Q12439 Q425410 Q44237 Q1781 Q1489 Q206933 Q1563 Q3897 Q33935 Q54898 Q45412 Q172 Q14314 Q490 Q2868 Q597 Q956 Q1335 Q159273 Q3805 Q1491 Q1492
OR((Q174,P190,c(Q56061)), (Q15431922,P19,c(Q56061)))
action filter_type
action union
action find
entity Q174
relation P190
action find
entity Q15431922
relation P19
type Q56061
[ANSWERS] are partner towns of São Paulo or were John Sloss born at
{'OR': [['Q174', 'P190', {'concept': 'Q56061'}], ['Q15431922', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q174 property:P190 ?t } UNION { resource:Q15431922 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Shanghai Bamako Damascus Naha Alta Floresta Córdoba La Plata Chicago Detroit Góis Municipality Mendoza Budapest Mexico City Leiria Havana Luanda Tel Aviv San Cristóbal de La Laguna Coimbra Toronto Santiago de Compostela Milan Lima Lisbon Beijing Montevideo Arequipa Amman La Paz Barcelona
Mendoza, Chicago, Lisbon, Damascus, Beijing, Havana, Alta Floresta, La Plata, Tel Aviv and Toronto are partner towns of São Paulo or were John Sloss born at
Mendoza Chicago Lisbon Damascus Beijing Havana Alta Floresta La Plata Tel Aviv Toronto
action filter_type
action union
action find
entity São Paulo
relation sister city
action find
entity John Sloss
relation place of birth
type administrative territorial entity
{'OR': [['São Paulo', 'sister city', {'concept': 'administrative territorial entity'}], ['John Sloss', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:São_Paulo property:sister_city ?t } UNION { resource:John_Sloss property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q174
P190
Q56061
USER
Are São Paulo a sister city of those ones ?
(Q174,P190,Q44237) (Q174,P190,Q1297) (Q174,P190,Q597) (Q174,P190,Q3766) (Q174,P190,Q956) (Q174,P190,Q1563) (Q174,P190,Q433574) (Q174,P190,Q44059) (Q174,P190,Q33935) (Q174,P190,Q172)
action is_in
entity prev_answer
action find
entity Q174
relation P190
['Q174', 'P190', 'Q44237'] ['Q174', 'P190', 'Q1297'] ['Q174', 'P190', 'Q597'] ['Q174', 'P190', 'Q3766'] ['Q174', 'P190', 'Q956'] ['Q174', 'P190', 'Q1563'] ['Q174', 'P190', 'Q433574'] ['Q174', 'P190', 'Q44059'] ['Q174', 'P190', 'Q33935'] ['Q174', 'P190', 'Q172']
ASK WHERE { VALUES ( ?l ) { ( resource:Q8686 ) ( resource:Q3703 ) ( resource:Q3766 ) } . resource:Q174 property:P190 ?l }
São Paulo
action is_in
entity prev_answer
action find
entity São Paulo
relation sister city
['São Paulo', 'sister city', 'Mendoza'] ['São Paulo', 'sister city', 'Chicago'] ['São Paulo', 'sister city', 'Lisbon'] ['São Paulo', 'sister city', 'Damascus'] ['São Paulo', 'sister city', 'Beijing'] ['São Paulo', 'sister city', 'Havana'] ['São Paulo', 'sister city', 'Alta Floresta'] ['São Paulo', 'sister city', 'La Plata'] ['São Paulo', 'sister city', 'Tel Aviv'] ['São Paulo', 'sister city', 'Toronto']
ASK WHERE { VALUES ( ?l ) { ( resource:Shanghai ) ( resource:Bamako ) ( resource:Damascus ) } . resource:São_Paulo property:sister_city ?l }
[]
administrative territorial entity
SYSTEM
YES
(Q174,P190,Q44237) (Q174,P190,Q1297) (Q174,P190,Q597) (Q174,P190,Q3766) (Q174,P190,Q956) (Q174,P190,Q1563) (Q174,P190,Q433574) (Q174,P190,Q44059) (Q174,P190,Q33935) (Q174,P190,Q172)
action is_in
entity prev_answer
action find
entity Q174
relation P190
[ANSWER]
['Q174', 'P190', 'Q44237'] ['Q174', 'P190', 'Q1297'] ['Q174', 'P190', 'Q597'] ['Q174', 'P190', 'Q3766'] ['Q174', 'P190', 'Q956'] ['Q174', 'P190', 'Q1563'] ['Q174', 'P190', 'Q433574'] ['Q174', 'P190', 'Q44059'] ['Q174', 'P190', 'Q33935'] ['Q174', 'P190', 'Q172']
ASK WHERE { VALUES ( ?l ) { ( resource:Q8686 ) ( resource:Q3703 ) ( resource:Q3766 ) } . resource:Q174 property:P190 ?l }
Yes
action is_in
entity prev_answer
action find
entity São Paulo
relation sister city
['São Paulo', 'sister city', 'Mendoza'] ['São Paulo', 'sister city', 'Chicago'] ['São Paulo', 'sister city', 'Lisbon'] ['São Paulo', 'sister city', 'Damascus'] ['São Paulo', 'sister city', 'Beijing'] ['São Paulo', 'sister city', 'Havana'] ['São Paulo', 'sister city', 'Alta Floresta'] ['São Paulo', 'sister city', 'La Plata'] ['São Paulo', 'sister city', 'Tel Aviv'] ['São Paulo', 'sister city', 'Toronto']
ASK WHERE { VALUES ( ?l ) { ( resource:Shanghai ) ( resource:Bamako ) ( resource:Damascus ) } . resource:São_Paulo property:sister_city ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q90 Q4902140
P417
Q502895
USER
Is Bhuma Singh Dhillon the name of person who is the patron saint of Paris ?
(Q90,P417,Q4902140)
action is_in
entity Q4902140
action find
entity Q90
relation P417
['Q90', 'P417', 'Q4902140']
ASK WHERE { resource:Q90 property:P417 resource:Q4902140 }
Paris Bhuma Singh Dhillon
action is_in
entity Bhuma Singh Dhillon
action find
entity Paris
relation patron saint
['Paris', 'patron saint', 'Bhuma Singh Dhillon']
ASK WHERE { resource:Paris property:patron_saint resource:Bhuma_Singh_Dhillon }
[]
common name
SYSTEM
NO
(Q90,P417,Q4902140)
action is_in
entity Q4902140
action find
entity Q90
relation P417
[ANSWER]
['Q90', 'P417', 'Q4902140']
ASK WHERE { resource:Q90 property:P417 resource:Q4902140 }
No
action is_in
entity Bhuma Singh Dhillon
action find
entity Paris
relation patron saint
['Paris', 'patron saint', 'Bhuma Singh Dhillon']
ASK WHERE { resource:Paris property:patron_saint resource:Bhuma_Singh_Dhillon }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q956
P551
Q502895
USER
Who reside at Beijing ?
(c(Q502895),P551,Q956)
action filter_type
action find_reverse
entity Q956
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q956']
SELECT DISTINCT ?e WHERE { ?e property:P551 resource:Q956 . ?e rdf:type ontology:Q502895 }
Beijing
action filter_type
action find_reverse
entity Beijing
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Beijing']
SELECT DISTINCT ?e WHERE { ?e property:residence resource:Beijing . ?e rdf:type ontology:common_name }
[]
common name
Q546592 Q8070360 Q430911
SYSTEM
Isao Tomita, Zhang Xin, Peng Liyuan
Q99829 Q18062194 Q546592 Q2594678 Q7967716 Q4801752 Q17505493 Q18211762 Q15907692 Q1786326 Q6653754 Q8070360 Q430911 Q3841829 Q20812953 Q20488353 Q271741 Q3497307 Q24699410 Q202597
(c(Q502895),P551,Q956)
action filter_type
action find_reverse
entity Q956
relation P551
type Q502895
[ANSWERS] reside at Beijing
[{'concept': 'Q502895'}, 'P551', 'Q956']
SELECT DISTINCT ?e WHERE { ?e property:P551 resource:Q956 . ?e rdf:type ontology:Q502895 }
Zhao Ziyang Liang Chen Isao Tomita Wu Yajun Wang Yi Liu Wanting Francoise Moreux-Rodrigues Wang Chuhan Yunggiema Wenchen Qin Liu Wanchuan Zhang Xin Peng Liyuan Ma Gui Maria Zakharova Yann Layma Sun Shengnan Yu Xinyuan Ren Naying Chen Kaige
Isao Tomita, Zhang Xin and Peng Liyuan reside at Beijing
Isao Tomita Zhang Xin Peng Liyuan
action filter_type
action find_reverse
entity Beijing
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Beijing']
SELECT DISTINCT ?e WHERE { ?e property:residence resource:Beijing . ?e rdf:type ontology:common_name }
[]