Simple Question (Direct)
Simple Question
Q52241
P17
Q15617994
USER
Which administrative territory is Tresana a part of ?
(Q52241,P17,c(Q15617994))
action filter_type
action find
entity Q52241
relation P17
type Q15617994
['Q52241', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q52241 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Tresana
action filter_type
action find
entity Tresana
relation country
type designation for an administrative territorial entity
['Tresana', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Tresana property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q52241,P17,c(Q15617994))
action filter_type
action find
entity Q52241
relation P17
type Q15617994
Which administrative territory is Tresana a part of
['Q52241', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q52241 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Italy
Which administrative territory is Tresana a part of
Italy
action filter_type
action find
entity Tresana
relation country
type designation for an administrative territorial entity
['Tresana', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Tresana property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P1071
Q2424752
USER
Which product has that administrative territory as its terminal assembly location ?
(c(Q2424752),P1071,Q38)
action filter_type
action find_reverse
entity Q38
relation P1071
type Q2424752
[{'concept': 'Q2424752'}, 'P1071', 'Q38']
SELECT DISTINCT ?q WHERE { ?q property:P1071 resource:Q38 . ?q rdf:type ontology:Q2424752 }
Italy
action filter_type
action find_reverse
entity Italy
relation location of final assembly
type product
[{'concept': 'product'}, 'location of final assembly', 'Italy']
SELECT DISTINCT ?q WHERE { ?q property:location_of_final_assembly resource:Italy . ?q rdf:type ontology:product }
[]
product
Q17861994
SYSTEM
P.180 Avanti II
Q17861994
(c(Q2424752),P1071,Q38)
action filter_type
action find_reverse
entity Q38
relation P1071
type Q2424752
[ANSWER] has that administrative territory as its terminal assembly location
[{'concept': 'Q2424752'}, 'P1071', 'Q38']
SELECT DISTINCT ?q WHERE { ?q property:P1071 resource:Q38 . ?q rdf:type ontology:Q2424752 }
P.180 Avanti II
P.180 Avanti II has that administrative territory as its terminal assembly location
P.180 Avanti II
action filter_type
action find_reverse
entity Italy
relation location of final assembly
type product
[{'concept': 'product'}, 'location of final assembly', 'Italy']
SELECT DISTINCT ?q WHERE { ?q property:location_of_final_assembly resource:Italy . ?q rdf:type ontology:product }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P495
Q15617994
USER
How many administrative territories are the origin of that product ?
(Q17861994,P495,c(Q15617994))
action count
action filter_type
action find
entity Q17861994
relation P495
type Q15617994
['Q17861994', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q17861994 property:P495 ?z }
action count
action filter_type
action find
entity P.180 Avanti II
relation country of origin
type designation for an administrative territorial entity
['P.180 Avanti II', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:P.180_Avanti_II property:country_of_origin ?z }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q17861994,P495,c(Q15617994))
action count
action filter_type
action find
entity Q17861994
relation P495
type Q15617994
[ANSWER]
['Q17861994', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q17861994 property:P495 ?z }
Italy
1
action count
action filter_type
action find
entity P.180 Avanti II
relation country of origin
type designation for an administrative territorial entity
['P.180 Avanti II', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:P.180_Avanti_II property:country_of_origin ?z }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q228
P138
Q15617994 Q13220204 Q874405
USER
How many administrative territories are approximately the same number of administrative country subdivisions or social groups named after as Andorra ?
(c(Q13220204)|c(Q874405),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q228
relation P138
type Q13220204
type Q874405
[[{'concept': 'Q13220204'}, {'concept': 'Q874405'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?i WHERE { VALUES ( ?v ) { ( ontology:Q13220204 ) ( ontology:Q874405 ) } . ?y rdf:type ?v } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P138 resource:Q228 . { { ?a rdf:type ontology:Q13220204 } UNION { ?a rdf:type ontology:Q874405 } } } } . FILTER ( ?z = ?j ) }
Andorra
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type social group
action count
action filter_multi_types
action find_reverse
entity Andorra
relation named after
type second-level administrative country subdivision
type social group
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'social group'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?i WHERE { VALUES ( ?v ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:social_group ) } . ?y rdf:type ?v } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:named_after resource:Andorra . { { ?a rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?a rdf:type ontology:social_group } } } } . FILTER ( ?z = ?j ) }
[]
designation for an administrative territorial entity second-level administrative country subdivision social group
SYSTEM
379
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q42777 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 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 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 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 Q23178 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 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q13220204)|c(Q874405),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q228
relation P138
type Q13220204
type Q874405
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q874405'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?i WHERE { VALUES ( ?v ) { ( ontology:Q13220204 ) ( ontology:Q874405 ) } . ?y rdf:type ?v } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P138 resource:Q228 . { { ?a rdf:type ontology:Q13220204 } UNION { ?a rdf:type ontology:Q874405 } } } } . FILTER ( ?z = ?j ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina 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 Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio 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 Cologno Monzese 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 QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone 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 Bisceglie 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 Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino 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 San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
379
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type social group
action count
action filter_multi_types
action find_reverse
entity Andorra
relation named after
type second-level administrative country subdivision
type social group
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'social group'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?i WHERE { VALUES ( ?v ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:social_group ) } . ?y rdf:type ?v } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:named_after resource:Andorra . { { ?a rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?a rdf:type ontology:social_group } } } } . FILTER ( ?z = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q419
P138
Q15617994 Q13220204 Q874405
USER
And how about Peru?
(c(Q13220204)|c(Q874405),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q419
relation P138
type Q13220204
type Q874405
[[{'concept': 'Q13220204'}, {'concept': 'Q874405'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:P138 ?z . ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q874405 } UNION { ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q13220204 . ?v property:P138 ?z } } GROUP BY ?z } . FILTER ( ?e = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P138 resource:Q419 . { { ?u rdf:type ontology:Q874405 } UNION { ?u rdf:type ontology:Q13220204 } } } } }
Peru
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type social group
action count
action filter_multi_types
action find_reverse
entity Peru
relation named after
type second-level administrative country subdivision
type social group
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'social group'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:named_after ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:social_group } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:second-level_administrative_country_subdivision . ?v property:named_after ?z } } GROUP BY ?z } . FILTER ( ?e = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:named_after resource:Peru . { { ?u rdf:type ontology:social_group } UNION { ?u rdf:type ontology:second-level_administrative_country_subdivision } } } } }
[]
designation for an administrative territorial entity second-level administrative country subdivision social group
SYSTEM
379
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q42777 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 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 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 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 Q23178 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 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q13220204)|c(Q874405),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q419
relation P138
type Q13220204
type Q874405
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q874405'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:P138 ?z . ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q874405 } UNION { ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q13220204 . ?v property:P138 ?z } } GROUP BY ?z } . FILTER ( ?e = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P138 resource:Q419 . { { ?u rdf:type ontology:Q874405 } UNION { ?u rdf:type ontology:Q13220204 } } } } }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina 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 Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio 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 Cologno Monzese 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 QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone 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 Bisceglie 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 Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino 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 San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
379
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type social group
action count
action filter_multi_types
action find_reverse
entity Peru
relation named after
type second-level administrative country subdivision
type social group
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'social group'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?e ) WHERE { { ?v property:named_after ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:social_group } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:second-level_administrative_country_subdivision . ?v property:named_after ?z } } GROUP BY ?z } . FILTER ( ?e = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:named_after resource:Peru . { { ?u rdf:type ontology:social_group } UNION { ?u rdf:type ontology:second-level_administrative_country_subdivision } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P85
Q7725634
USER
Which is the national anthem of Italy ?
(Q38,P85,c(Q7725634))
action filter_type
action find
entity Q38
relation P85
type Q7725634
['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q7725634 . resource:Q38 property:P85 ?a }
Italy
action filter_type
action find
entity Italy
relation anthem
type literary work
['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:literary_work . resource:Italy property:anthem ?a }
[]
literary work
Q187
SYSTEM
Il Canto degli Italiani
Q187
(Q38,P85,c(Q7725634))
action filter_type
action find
entity Q38
relation P85
type Q7725634
The national anthem of Italy is the [ANSWER]
['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q7725634 . resource:Q38 property:P85 ?a }
Il Canto degli Italiani
The national anthem of Italy is the Il Canto degli Italiani
Il Canto degli Italiani
action filter_type
action find
entity Italy
relation anthem
type literary work
['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:literary_work . resource:Italy property:anthem ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that literary work belong to ?
(Q187,P17,c(Q15617994))
action count
action filter_type
action find
entity Q187
relation P17
type Q15617994
['Q187', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Q187 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Il Canto degli Italiani
relation country
type designation for an administrative territorial entity
['Il Canto degli Italiani', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Il_Canto_degli_Italiani property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q187,P17,c(Q15617994))
action count
action filter_type
action find
entity Q187
relation P17
type Q15617994
[ANSWER]
['Q187', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Q187 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity Il Canto degli Italiani
relation country
type designation for an administrative territorial entity
['Il Canto degli Italiani', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Il_Canto_degli_Italiani property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P35
Q502895
USER
Which people are the heads of state of Italy ?
(Q38,P35,c(Q502895))
action filter_type
action find
entity Q38
relation P35
type Q502895
['Q38', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q38 property:P35 ?c . ?c rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation head of state
type common name
['Italy', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Italy property:head_of_state ?c . ?c rdf:type ontology:common_name }
[]
common name
Q1224 Q3956186 Q1242
SYSTEM
Carlo Azeglio Ciampi, Sergio Mattarella, Luigi Einaudi
Q1224 Q1245 Q3956186 Q1241 Q1240 Q1242 Q1238 Q153832 Q1228 Q1230 Q1233 Q1235 Q1220
(Q38,P35,c(Q502895))
action filter_type
action find
entity Q38
relation P35
type Q502895
[ANSWERS] are the heads of state of Italy
['Q38', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q38 property:P35 ?c . ?c rdf:type ontology:Q502895 }
Carlo Azeglio Ciampi Enrico De Nicola Sergio Mattarella Giovanni Gronchi Antonio Segni Luigi Einaudi Giuseppe Saragat Alcide De Gasperi Oscar Luigi Scalfaro Francesco Cossiga Sandro Pertini Giovanni Leone Giorgio Napolitano
Carlo Azeglio Ciampi, Sergio Mattarella and Luigi Einaudi are the heads of state of Italy
Carlo Azeglio Ciampi Sergio Mattarella Luigi Einaudi
action filter_type
action find
entity Italy
relation head of state
type common name
['Italy', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Italy property:head_of_state ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can min number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?c ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?m = ?c ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?c ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?m = ?c ) }
[]
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
Min number of people can perform the [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?c ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?m = ?c ) }
spoon cajón wind instrument
Min number of people can perform the spoon, cajón and wind instrument
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 ?x WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?c ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?m = ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 3043 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3043
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?k = 3043 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3043
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?k = 3043 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3043
[ANSWERS] are played by approximately 3043 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?k = 3043 ) }
violin organ drum kit
Violin, organ and drum kit are played by approximately 3043 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3043
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?k = 3043 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1444
P180
Q838948
USER
Which work of art demonstrates that musical instrument ?
(c(Q838948),P180,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q1444']
SELECT DISTINCT ?a WHERE { ?a property:P180 resource:Q1444 . ?a rdf:type ontology:Q838948 }
organ
action filter_type
action find_reverse
entity organ
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'organ']
SELECT DISTINCT ?a WHERE { ?a property:depicts resource:organ . ?a rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q128309
SYSTEM
Did you mean drum kit ?
Q8355 Q1444 Q128309
(c(Q838948),P180,Q8355) (c(Q838948),P180,Q1444) (c(Q838948),P180,Q128309)
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q1444'] [{'concept': 'Q838948'}, 'P180', 'Q128309']
SELECT DISTINCT ?a WHERE { ?a property:P180 resource:Q1444 . ?a rdf:type ontology:Q838948 }
violin organ drum kit
Did you mean drum kit ?
drum kit
[{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'organ'] [{'concept': 'work of art'}, 'depicts', 'drum kit']
SELECT DISTINCT ?a WHERE { ?a property:depicts resource:organ . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant organ. Could you tell me the answer for that?
(c(Q838948),P180,Q1444)
Q1444
[{'concept': 'Q838948'}, 'P180', 'Q1444']
[{'concept': 'work of art'}, 'depicts', 'organ']
[]
Q18156272
SYSTEM
Hearing
Q18156272
(c(Q838948),P180,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P180
type Q838948
[ANSWER] demonstrates that musical instrument
[{'concept': 'Q838948'}, 'P180', 'Q1444']
SELECT DISTINCT ?a WHERE { ?a property:P180 resource:Q1444 . ?a rdf:type ontology:Q838948 }
Hearing
Hearing demonstrates that musical instrument
Hearing
action filter_type
action find_reverse
entity organ
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'organ']
SELECT DISTINCT ?a WHERE { ?a property:depicts resource:organ . ?a rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q25076 Q228
P47
Q15617994
USER
Which administrative territories are bordered by Andorra or Gattinara ?
OR((Q228,P47,c(Q15617994)), (Q25076,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q228
relation P47
action find
entity Q25076
relation P47
type Q15617994
{'OR': [['Q228', 'P47', {'concept': 'Q15617994'}], ['Q25076', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { ?q property:P47 ?s . VALUES ( ?q ) { ( resource:Q228 ) ( resource:Q25076 ) } } . ?s rdf:type ontology:Q15617994 }
Gattinara Andorra
action filter_type
action union
action find
entity Andorra
relation shares border with
action find
entity Gattinara
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Andorra', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Gattinara', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { ?q property:shares_border_with ?s . VALUES ( ?q ) { ( resource:Andorra ) ( resource:Gattinara ) } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q25131 Q25137 Q25196 Q22593 Q25193 Q29 Q22458 Q25210
SYSTEM
France, Lenta, Lozzolo, Rovasenda, Romagnano Sesia, Roasio, Spain, Ghemme, Serravalle Sesia
Q142 Q25131 Q25137 Q25196 Q22593 Q25193 Q29 Q22458 Q25210
OR((Q228,P47,c(Q15617994)), (Q25076,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q228
relation P47
action find
entity Q25076
relation P47
type Q15617994
[ANSWERS] are bordered by Andorra or Gattinara
{'OR': [['Q228', 'P47', {'concept': 'Q15617994'}], ['Q25076', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { ?q property:P47 ?s . VALUES ( ?q ) { ( resource:Q228 ) ( resource:Q25076 ) } } . ?s rdf:type ontology:Q15617994 }
France Lenta Lozzolo Rovasenda Romagnano Sesia Roasio Spain Ghemme Serravalle Sesia
France, Lenta, Lozzolo, Rovasenda, Romagnano Sesia, Roasio, Spain, Ghemme and Serravalle Sesia are bordered by Andorra or Gattinara
France Lenta Lozzolo Rovasenda Romagnano Sesia Roasio Spain Ghemme Serravalle Sesia
action filter_type
action union
action find
entity Andorra
relation shares border with
action find
entity Gattinara
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Andorra', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Gattinara', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { ?q property:shares_border_with ?s . VALUES ( ?q ) { ( resource:Andorra ) ( resource:Gattinara ) } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P189
Q79529
USER
What was found at France ?
(c(Q79529),P189,Q142)
action filter_type
action find_reverse
entity Q142
relation P189
type Q79529
[{'concept': 'Q79529'}, 'P189', 'Q142']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q79529 . ?j property:P189 resource:Q142 }
France
action filter_type
action find_reverse
entity France
relation location of discovery
type chemical substance
[{'concept': 'chemical substance'}, 'location of discovery', 'France']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:chemical_substance . ?j property:location_of_discovery resource:France }
[]
chemical substance
Q671
SYSTEM
francium
Q671
(c(Q79529),P189,Q142)
action filter_type
action find_reverse
entity Q142
relation P189
type Q79529
[ANSWER] was found at France
[{'concept': 'Q79529'}, 'P189', 'Q142']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q79529 . ?j property:P189 resource:Q142 }
francium
Francium was found at France
francium
action filter_type
action find_reverse
entity France
relation location of discovery
type chemical substance
[{'concept': 'chemical substance'}, 'location of discovery', 'France']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:chemical_substance . ?j property:location_of_discovery resource:France }
[]