Simple Question (Direct)
Simple Question
Q3293811
P39
Q12737077
USER
Which occupation was a position held by Marius Hurard ?
(Q3293811,P39,c(Q12737077))
action filter_type
action find
entity Q3293811
relation P39
type Q12737077
['Q3293811', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q3293811 property:P39 ?n }
Marius Hurard
action filter_type
action find
entity Marius Hurard
relation position held
type occupation
['Marius Hurard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Marius_Hurard property:position_held ?n }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q3293811,P39,c(Q12737077))
action filter_type
action find
entity Q3293811
relation P39
type Q12737077
The member of the French National Assembly was a position held by Marius Hurard
['Q3293811', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q3293811 property:P39 ?n }
member of the French National Assembly
The member of the French National Assembly was a position held by Marius Hurard
member of the French National Assembly
action filter_type
action find
entity Marius Hurard
relation position held
type occupation
['Marius Hurard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Marius_Hurard property:position_held ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3088977
Q15617994
USER
And how about Democratic Republic of the Congo–Tanzania border?
(Q3088977,P1001,c(Q15617994))
action filter_type
action find
entity Q3088977
relation P1001
type Q15617994
['Q3088977', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q3088977 property:P1001 ?s . ?s rdf:type ontology:Q15617994 }
Democratic Republic of the Congo–Tanzania border
action filter_type
action find
entity Democratic Republic of the Congo–Tanzania border
relation applies to jurisdiction
type designation for an administrative territorial entity
['Democratic Republic of the Congo–Tanzania border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Democratic_Republic_of_the_Congo–Tanzania_border property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q974 Q924
SYSTEM
Democratic Republic of the Congo, Tanzania
Q974 Q924
(Q3088977,P1001,c(Q15617994))
action filter_type
action find
entity Q3088977
relation P1001
type Q15617994
[ANSWERS]
['Q3088977', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q3088977 property:P1001 ?s . ?s rdf:type ontology:Q15617994 }
Democratic Republic of the Congo Tanzania
Democratic Republic of the Congo Tanzania
action filter_type
action find
entity Democratic Republic of the Congo–Tanzania border
relation applies to jurisdiction
type designation for an administrative territorial entity
['Democratic Republic of the Congo–Tanzania border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Democratic_Republic_of_the_Congo–Tanzania_border property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have tactful political relations with those administrative territories ?
(Q183,P530,Q974) (Q183,P530,Q924)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q974'] ['Q183', 'P530', 'Q924']
ASK WHERE { VALUES ( ?w ) { ( resource:Q974 ) ( resource:Q924 ) } . resource:Q183 property:P530 ?w }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Democratic Republic of the Congo'] ['Germany', 'diplomatic relation', 'Tanzania']
ASK WHERE { VALUES ( ?w ) { ( resource:Democratic_Republic_of_the_Congo ) ( resource:Tanzania ) } . resource:Germany property:diplomatic_relation ?w }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q974) (Q183,P530,Q924)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q974'] ['Q183', 'P530', 'Q924']
ASK WHERE { VALUES ( ?w ) { ( resource:Q974 ) ( resource:Q924 ) } . resource:Q183 property:P530 ?w }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Democratic Republic of the Congo'] ['Germany', 'diplomatic relation', 'Tanzania']
ASK WHERE { VALUES ( ?w ) { ( resource:Democratic_Republic_of_the_Congo ) ( resource:Tanzania ) } . resource:Germany property:diplomatic_relation ?w }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2139159
P138
Q15617994 Q55488 Q502895
USER
Which administrative territories are namesakes of approximately the same number of railway stations and people as Reichenbach ?
(c(Q55488)|c(Q502895),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q55488
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q2139159
relation P138
type Q55488
type Q502895
[[{'concept': 'Q55488'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?o WHERE { { ?u property:P138 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q55488 } UNION { ?u property:P138 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q502895 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:P138 resource:Q2139159 . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:Q55488 ) ( ontology:Q502895 ) } } } } . FILTER ( ?g = ?i ) }
Reichenbach
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type railway station
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find_reverse
entity Reichenbach
relation named after
type railway station
type common name
[[{'concept': 'railway station'}, {'concept': 'common name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?o WHERE { { ?u property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:railway_station } UNION { ?u property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:common_name } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:named_after resource:Reichenbach . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:railway_station ) ( ontology:common_name ) } } } } . FILTER ( ?g = ?i ) }
[]
designation for an administrative territorial entity railway station common name
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q159856 Q279028 Q2396564 Q53127 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q488513 Q243311 Q503160 Q2993085 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q917 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q819 Q654138 Q81261 Q493437 Q863 Q574429 Q869 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q928 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q182248 Q20458 Q20517
(c(Q55488)|c(Q502895),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q55488
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q2139159
relation P138
type Q55488
type Q502895
[ANSWERS] are namesakes of approximately the same number of railway stations and people as Reichenbach
[[{'concept': 'Q55488'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?o WHERE { { ?u property:P138 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q55488 } UNION { ?u property:P138 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q502895 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:P138 resource:Q2139159 . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:Q55488 ) ( ontology:Q502895 ) } } } } . FILTER ( ?g = ?i ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Duchy of Brabant Simmering Mallee Farra d'Isonzo Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands Radeberg North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Diamante Candelo Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Bhutan Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Laos Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Thailand Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Philippines Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Nordwalde Gubbio Treiso
Italy, Brazil and United States of America are namesakes of approximately the same number of railway stations and people as Reichenbach
Italy Brazil United States of America
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type railway station
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find_reverse
entity Reichenbach
relation named after
type railway station
type common name
[[{'concept': 'railway station'}, {'concept': 'common name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?o WHERE { { ?u property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:railway_station } UNION { ?u property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:common_name } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:named_after resource:Reichenbach . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:railway_station ) ( ontology:common_name ) } } } } . FILTER ( ?g = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1630
P138
Q15617994 Q55488 Q502895
USER
And also tell me about Altona?
(c(Q55488)|c(Q502895),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q55488
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1630
relation P138
type Q55488
type Q502895
[[{'concept': 'Q55488'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?x WHERE { VALUES ( ?o ) { ( ontology:Q55488 ) ( ontology:Q502895 ) } . ?z rdf:type ?o } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:Q55488 } UNION { ?i rdf:type ontology:Q502895 } } . ?i property:P138 resource:Q1630 } } . FILTER ( ?h = ?q ) }
Altona
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type railway station
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find_reverse
entity Altona
relation named after
type railway station
type common name
[[{'concept': 'railway station'}, {'concept': 'common name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?x WHERE { VALUES ( ?o ) { ( ontology:railway_station ) ( ontology:common_name ) } . ?z rdf:type ?o } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:railway_station } UNION { ?i rdf:type ontology:common_name } } . ?i property:named_after resource:Altona } } . FILTER ( ?h = ?q ) }
[]
designation for an administrative territorial entity railway station common name
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q159856 Q279028 Q2396564 Q53127 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q488513 Q243311 Q503160 Q2993085 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q917 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q819 Q654138 Q81261 Q493437 Q863 Q574429 Q869 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q928 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q182248 Q20458 Q20517
(c(Q55488)|c(Q502895),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q55488
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1630
relation P138
type Q55488
type Q502895
[ANSWERS]
[[{'concept': 'Q55488'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?x WHERE { VALUES ( ?o ) { ( ontology:Q55488 ) ( ontology:Q502895 ) } . ?z rdf:type ?o } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:Q55488 } UNION { ?i rdf:type ontology:Q502895 } } . ?i property:P138 resource:Q1630 } } . FILTER ( ?h = ?q ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Duchy of Brabant Simmering Mallee Farra d'Isonzo Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands Radeberg North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Diamante Candelo Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Bhutan Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Laos Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Thailand Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Philippines Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Nordwalde Gubbio Treiso
Italy Brazil United States of America
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type railway station
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find_reverse
entity Altona
relation named after
type railway station
type common name
[[{'concept': 'railway station'}, {'concept': 'common name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?x WHERE { VALUES ( ?o ) { ( ontology:railway_station ) ( ontology:common_name ) } . ?z rdf:type ?o } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:railway_station } UNION { ?i rdf:type ontology:common_name } } . ?i property:named_after resource:Altona } } . FILTER ( ?h = ?q ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P36
Q56061
USER
Which administrative territories are the capitals of Italy, Brazil and United States of America ?
(Q38,P36,c(Q56061)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q56061))
action union
action filter_type
action find
entity Q38
relation P36
type Q56061
action filter_type
action find
entity Q155
relation P36
type Q56061
action filter_type
action find
entity Q30
relation P36
type Q56061
['Q38', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { resource:Q38 property:P36 ?x . ?x rdf:type ontology:Q56061 } UNION { ?x rdf:type ontology:Q56061 . resource:Q155 property:P36 ?x } }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { resource:Italy property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?x rdf:type ontology:administrative_territorial_entity . resource:Brazil property:capital ?x } }
[]
administrative territorial entity
Q8678 Q220 Q60
SYSTEM
Rio de Janeiro, Rome, New York City
Q220 Q8678 Q60 Q61
(Q38,P36,c(Q56061)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q56061))
action union
action filter_type
action find
entity Q38
relation P36
type Q56061
action filter_type
action find
entity Q155
relation P36
type Q56061
action filter_type
action find
entity Q30
relation P36
type Q56061
[ANSWERS] are the capitals of Italy, Brazil and United States of America
['Q38', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { resource:Q38 property:P36 ?x . ?x rdf:type ontology:Q56061 } UNION { ?x rdf:type ontology:Q56061 . resource:Q155 property:P36 ?x } }
Rome Rio de Janeiro New York City Washington, D.C.
Rio de Janeiro, Rome and New York City are the capitals of Italy, Brazil and United States of America
Rio de Janeiro Rome New York City
action union
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { resource:Italy property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?x rdf:type ontology:administrative_territorial_entity . resource:Brazil property:capital ?x } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q8678 Q220 Q60
P6
Q502895
USER
Which people have Rio de Janeiro, Rome and New York City as their heads of government ?
(Q8678,P6,c(Q502895)) (Q220,P6,c(Q502895)) (Q60,P6,c(Q502895))
action union
action filter_type
action find
entity Q8678
relation P6
type Q502895
action filter_type
action find
entity Q220
relation P6
type Q502895
action filter_type
action find
entity Q60
relation P6
type Q502895
['Q8678', 'P6', {'concept': 'Q502895'}] ['Q220', 'P6', {'concept': 'Q502895'}] ['Q60', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { resource:Q8678 property:P6 ?x . ?x rdf:type ontology:Q502895 } UNION { resource:Q220 property:P6 ?x . ?x rdf:type ontology:Q502895 } }
Rio de Janeiro Rome New York City
action union
action filter_type
action find
entity Rio de Janeiro
relation head of government
type common name
action filter_type
action find
entity Rome
relation head of government
type common name
action filter_type
action find
entity New York City
relation head of government
type common name
['Rio de Janeiro', 'head of government', {'concept': 'common name'}] ['Rome', 'head of government', {'concept': 'common name'}] ['New York City', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { resource:Rio_de_Janeiro property:head_of_government ?x . ?x rdf:type ontology:common_name } UNION { resource:Rome property:head_of_government ?x . ?x rdf:type ontology:common_name } }
[]
common name
Q607 Q467122 Q23766020
SYSTEM
Michael Bloomberg, Ed Koch, Virginia Raggi
Q972007 Q23766020 Q405098 Q204135 Q467133 Q312502 Q2274772 Q3182321 Q441554 Q2156376 Q6287566 Q467122 Q939458 Q607 Q6233903 Q329910 Q212648 Q4121154 Q4911497 Q1701296 Q2544704 Q666931 Q439156 Q5536568
(Q8678,P6,c(Q502895)) (Q220,P6,c(Q502895)) (Q60,P6,c(Q502895))
action union
action filter_type
action find
entity Q8678
relation P6
type Q502895
action filter_type
action find
entity Q220
relation P6
type Q502895
action filter_type
action find
entity Q60
relation P6
type Q502895
[ANSWERS] have Rio de Janeiro, Rome and New York City as their heads of government
['Q8678', 'P6', {'concept': 'Q502895'}] ['Q220', 'P6', {'concept': 'Q502895'}] ['Q60', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { resource:Q8678 property:P6 ?x . ?x rdf:type ontology:Q502895 } UNION { resource:Q220 property:P6 ?x . ?x rdf:type ontology:Q502895 } }
Eduardo Paes Virginia Raggi Ignazio Marino Jimmy Walker David Dinkins Fiorello H. La Guardia Seth Low John Purroy Mitchel William O'Dwyer Robert Anderson Van Wyck Joseph V. McKee Ed Koch Vincent R. Impellitteri Michael Bloomberg John Francis Hylan Abraham Beame Rudy Giuliani Ardolph L. Kline Bill de Blasio John P. O'Brien William Jay Gaynor John Lindsay Robert F. Wagner George B. McClellan, Jr.
Michael Bloomberg, Ed Koch and Virginia Raggi have Rio de Janeiro, Rome and New York City as their heads of government
Michael Bloomberg Ed Koch Virginia Raggi
action union
action filter_type
action find
entity Rio de Janeiro
relation head of government
type common name
action filter_type
action find
entity Rome
relation head of government
type common name
action filter_type
action find
entity New York City
relation head of government
type common name
['Rio de Janeiro', 'head of government', {'concept': 'common name'}] ['Rome', 'head of government', {'concept': 'common name'}] ['New York City', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { resource:Rio_de_Janeiro property:head_of_government ?x . ?x rdf:type ontology:common_name } UNION { resource:Rome property:head_of_government ?x . ?x rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q467122
P607
Q198
USER
What was was that person a part of ?
(Q467122,P607,c(Q198))
action filter_type
action find
entity Q467122
relation P607
type Q198
['Q467122', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q467122 property:P607 ?c . ?c rdf:type ontology:Q198 }
Ed Koch
action filter_type
action find
entity Ed Koch
relation conflict
type war
['Ed Koch', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Ed_Koch property:conflict ?c . ?c rdf:type ontology:war }
[]
war
Clarification for simple ques.
Q467122
SYSTEM
Did you mean Ed Koch ?
Q607 Q467122 Q23766020
(Q607,P607,c(Q198)) (Q467122,P607,c(Q198)) (Q23766020,P607,c(Q198))
[ANSWER]
['Q607', 'P607', {'concept': 'Q198'}] ['Q467122', 'P607', {'concept': 'Q198'}] ['Q23766020', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q467122 property:P607 ?c . ?c rdf:type ontology:Q198 }
Michael Bloomberg Ed Koch Virginia Raggi
Did you mean Ed Koch ?
Ed Koch
['Michael Bloomberg', 'conflict', {'concept': 'war'}] ['Ed Koch', 'conflict', {'concept': 'war'}] ['Virginia Raggi', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Ed_Koch property:conflict ?c . ?c rdf:type ontology:war }
[]
Simple Question (Coreferenced)
USER
Yes
(Q467122,P607,c(Q198))
['Q467122', 'P607', {'concept': 'Q198'}]
['Ed Koch', 'conflict', {'concept': 'war'}]
[]
Q362
SYSTEM
World War II
Q362
(Q467122,P607,c(Q198))
action filter_type
action find
entity Q467122
relation P607
type Q198
That person was a part of [ANSWER]
['Q467122', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q467122 property:P607 ?c . ?c rdf:type ontology:Q198 }
World War II
That person was a part of World War II
World War II
action filter_type
action find
entity Ed Koch
relation conflict
type war
['Ed Koch', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Ed_Koch property:conflict ?c . ?c rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q467122
P1196
Q1931388
USER
What manner did Ed Koch die ?
(Q467122,P1196,c(Q1931388))
action filter_type
action find
entity Q467122
relation P1196
type Q1931388
['Q467122', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1931388 . resource:Q467122 property:P1196 ?i }
Ed Koch
action filter_type
action find
entity Ed Koch
relation manner of death
type cause of death
['Ed Koch', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:cause_of_death . resource:Ed_Koch property:manner_of_death ?i }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q467122,P1196,c(Q1931388))
action filter_type
action find
entity Q467122
relation P1196
type Q1931388
Ed Koch died of [ANSWER]
['Q467122', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1931388 . resource:Q467122 property:P1196 ?i }
natural causes
Ed Koch died of natural causes
natural causes
action filter_type
action find
entity Ed Koch
relation manner of death
type cause of death
['Ed Koch', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:cause_of_death . resource:Ed_Koch property:manner_of_death ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q467122
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q3739104)
action filter_type
action find_reverse
entity Q467122
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q3739104']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q838948 . ?n property:P161 resource:Q467122 }
Ed Koch
action filter_type
action find_reverse
entity Ed Koch
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'natural causes']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:work_of_art . ?n property:cast_member resource:Ed_Koch }
[]
work of art
Q1492937 Q977372 Q3700505
SYSTEM
Style Wars, New York Stories, How to Survive a Plague
Q1492937 Q977372 Q3700505
(c(Q838948),P161,Q3739104)
action filter_type
action find_reverse
entity Q467122
relation P161
type Q838948
That person star in [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q3739104']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q838948 . ?n property:P161 resource:Q467122 }
Style Wars New York Stories How to Survive a Plague
That person star in Style Wars, New York Stories and How to Survive a Plague
Style Wars New York Stories How to Survive a Plague
action filter_type
action find_reverse
entity Ed Koch
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'natural causes']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:work_of_art . ?n property:cast_member resource:Ed_Koch }
[]