Simple Question (Direct)
Simple Question
Q501229
P19
Q56061
USER
Which administrative territory was Andreas Wiebe born in ?
(Q501229,P19,c(Q56061))
action filter_type
action find
entity Q501229
relation P19
type Q56061
['Q501229', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q501229 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Andreas Wiebe
action filter_type
action find
entity Andreas Wiebe
relation place of birth
type administrative territorial entity
['Andreas Wiebe', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Andreas_Wiebe property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2112
SYSTEM
Bielefeld
Q2112
(Q501229,P19,c(Q56061))
action filter_type
action find
entity Q501229
relation P19
type Q56061
Andreas Wiebe was born in [ANSWER]
['Q501229', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q501229 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Bielefeld
Andreas Wiebe was born in Bielefeld
Bielefeld
action filter_type
action find
entity Andreas Wiebe
relation place of birth
type administrative territorial entity
['Andreas Wiebe', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Andreas_Wiebe property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2112
P276
Q1269299
USER
Which business organization is situated at that administrative territory ?
(c(Q1269299),P276,Q2112)
action filter_type
action find_reverse
entity Q2112
relation P276
type Q1269299
[{'concept': 'Q1269299'}, 'P276', 'Q2112']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q2112 . ?p rdf:type ontology:Q1269299 }
Bielefeld
action filter_type
action find_reverse
entity Bielefeld
relation location
type type of business entity
[{'concept': 'type of business entity'}, 'location', 'Bielefeld']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Bielefeld . ?p rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q451851
SYSTEM
Amadeus FiRe AG
Q451851
(c(Q1269299),P276,Q2112)
action filter_type
action find_reverse
entity Q2112
relation P276
type Q1269299
[ANSWER] is situated at that administrative territory
[{'concept': 'Q1269299'}, 'P276', 'Q2112']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q2112 . ?p rdf:type ontology:Q1269299 }
Amadeus FiRe AG
Amadeus FiRe AG is situated at that administrative territory
Amadeus FiRe AG
action filter_type
action find_reverse
entity Bielefeld
relation location
type type of business entity
[{'concept': 'type of business entity'}, 'location', 'Bielefeld']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Bielefeld . ?p rdf:type ontology:type_of_business_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2112
P47
Q56061
USER
Which administrative territories share border with Bielefeld ?
(c(Q56061),P47,Q2112)
action filter_type
action find
entity Q2112
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q2112']
SELECT DISTINCT ?w WHERE { resource:Q2112 property:P47 ?w . ?w rdf:type ontology:Q56061 }
Bielefeld
action filter_type
action find
entity Bielefeld
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Bielefeld']
SELECT DISTINCT ?w WHERE { resource:Bielefeld property:shares_border_with ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3771 Q225375 Q225432
SYSTEM
Gütersloh, Verl, Schloß Holte-Stukenbrock
Q3771 Q225375 Q225432
(c(Q56061),P47,Q2112)
action filter_type
action find
entity Q2112
relation P47
type Q56061
[ANSWERS] share border with Bielefeld
[{'concept': 'Q56061'}, 'P47', 'Q2112']
SELECT DISTINCT ?w WHERE { resource:Q2112 property:P47 ?w . ?w rdf:type ontology:Q56061 }
Gütersloh Verl Schloß Holte-Stukenbrock
Gütersloh, Verl and Schloß Holte-Stukenbrock share border with Bielefeld
Gütersloh Verl Schloß Holte-Stukenbrock
action filter_type
action find
entity Bielefeld
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Bielefeld']
SELECT DISTINCT ?w WHERE { resource:Bielefeld property:shares_border_with ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3771 Q225375 Q225432
P47
Q15617994
USER
Which administrative territories are bordered by Gütersloh, Verl and Schloß Holte-Stukenbrock ?
(c(Q15617994),P47,Q3771) (c(Q15617994),P47,Q225375) (c(Q15617994),P47,Q225432)
action union
action filter_type
action find
entity Q3771
relation P47
type Q15617994
action filter_type
action find
entity Q225375
relation P47
type Q15617994
action filter_type
action find
entity Q225432
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q3771'] [{'concept': 'Q15617994'}, 'P47', 'Q225375'] [{'concept': 'Q15617994'}, 'P47', 'Q225432']
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q15617994 . resource:Q225375 property:P47 ?a } UNION { resource:Q3771 property:P47 ?a . ?a rdf:type ontology:Q15617994 } }
Gütersloh Verl Schloß Holte-Stukenbrock
action union
action filter_type
action find
entity Gütersloh
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Verl
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Schloß Holte-Stukenbrock
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Gütersloh'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Verl'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Schloß Holte-Stukenbrock']
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Verl property:shares_border_with ?a } UNION { resource:Gütersloh property:shares_border_with ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q225621 Q6896 Q225621
SYSTEM
Rietberg for 1st, 3rd, Rheda-Wiedenbrück for 2nd
Q225621 Q225002 Q6896 Q225120 Q225621 Q16146 Q183449 Q242320 Q242757 Q183449 Q242632
(c(Q15617994),P47,Q3771) (c(Q15617994),P47,Q225375) (c(Q15617994),P47,Q225432)
action union
action filter_type
action find
entity Q3771
relation P47
type Q15617994
action filter_type
action find
entity Q225375
relation P47
type Q15617994
action filter_type
action find
entity Q225432
relation P47
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P47', 'Q3771'] [{'concept': 'Q15617994'}, 'P47', 'Q225375'] [{'concept': 'Q15617994'}, 'P47', 'Q225432']
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q15617994 . resource:Q225375 property:P47 ?a } UNION { resource:Q3771 property:P47 ?a . ?a rdf:type ontology:Q15617994 } }
Rietberg Steinhagen Rheda-Wiedenbrück Herzebrock-Clarholz Rietberg Delbrück Hövelhof Schlangen Oerlinghausen Hövelhof Augustdorf
Rietberg, Rheda-Wiedenbrück and Rietberg are bordered by Gütersloh, Verl and Schloß Holte-Stukenbrock
Rietberg Rheda-Wiedenbrück Rietberg
action union
action filter_type
action find
entity Gütersloh
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Verl
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Schloß Holte-Stukenbrock
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Gütersloh'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Verl'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Schloß Holte-Stukenbrock']
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Verl property:shares_border_with ?a } UNION { resource:Gütersloh property:shares_border_with ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6896
P190
Q13220204
USER
Which administrative country subdivision is twin town of that administrative territory ?
(Q6896,P190,c(Q13220204))
action filter_type
action find
entity Q6896
relation P190
type Q13220204
['Q6896', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q6896 property:P190 ?t . ?t rdf:type ontology:Q13220204 }
Rheda-Wiedenbrück
action filter_type
action find
entity Rheda-Wiedenbrück
relation sister city
type second-level administrative country subdivision
['Rheda-Wiedenbrück', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Rheda-Wiedenbrück property:sister_city ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q225621
SYSTEM
Did you mean Rietberg ?
Q225621 Q6896 Q225621
(Q225621,P190,c(Q13220204)) (Q6896,P190,c(Q13220204)) (Q225621,P190,c(Q13220204))
[ANSWER]
['Q225621', 'P190', {'concept': 'Q13220204'}] ['Q6896', 'P190', {'concept': 'Q13220204'}] ['Q225621', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q6896 property:P190 ?t . ?t rdf:type ontology:Q13220204 }
Rietberg Rheda-Wiedenbrück Rietberg
Did you mean Rietberg ?
Rietberg
['Rietberg', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Rheda-Wiedenbrück', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Rietberg', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Rheda-Wiedenbrück property:sister_city ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
USER
No, I meant Rheda-Wiedenbrück. Could you tell me the answer for that?
(Q6896,P190,c(Q13220204))
Q6896
['Q6896', 'P190', {'concept': 'Q13220204'}]
['Rheda-Wiedenbrück', 'sister city', {'concept': 'second-level administrative country subdivision'}]
[]
Q10016
SYSTEM
Oldenzaal
Q10016
(Q6896,P190,c(Q13220204))
action filter_type
action find
entity Q6896
relation P190
type Q13220204
[ANSWER] is twin town of that administrative territory
['Q6896', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q6896 property:P190 ?t . ?t rdf:type ontology:Q13220204 }
Oldenzaal
Oldenzaal is twin town of that administrative territory
Oldenzaal
action filter_type
action find
entity Rheda-Wiedenbrück
relation sister city
type second-level administrative country subdivision
['Rheda-Wiedenbrück', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Rheda-Wiedenbrück property:sister_city ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10016 Q657030
P19
Q502895
USER
Does Germerius have location of birth at that administrative country subdivision ?
(Q657030,P19,Q10016)
action is_in
entity Q657030
action find
entity Q10016
relation P19
['Q657030', 'P19', 'Q10016']
ASK WHERE { resource:Q10016 property:P19 resource:Q657030 }
Oldenzaal Germerius
action is_in
entity Germerius
action find
entity Oldenzaal
relation place of birth
['Germerius', 'place of birth', 'Oldenzaal']
ASK WHERE { resource:Oldenzaal property:place_of_birth resource:Germerius }
[]
common name
SYSTEM
NO
(Q657030,P19,Q10016)
action is_in
entity Q657030
action find
entity Q10016
relation P19
[ANSWER]
['Q657030', 'P19', 'Q10016']
ASK WHERE { resource:Q10016 property:P19 resource:Q657030 }
No
action is_in
entity Germerius
action find
entity Oldenzaal
relation place of birth
['Germerius', 'place of birth', 'Oldenzaal']
ASK WHERE { resource:Oldenzaal property:place_of_birth resource:Germerius }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2807
P840
Q56061 Q2342494 Q166142
USER
How many administrative territories are less number of collectables or applications set in than Madrid ?
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q2807
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:P840 ?g . ?g rdf:type ontology:Q56061 . ?o rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q56061 . ?o rdf:type ontology:Q166142 . ?o property:P840 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P840 resource:Q2807 . { ?u rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } } } . FILTER ( ?v < ?m ) }
Madrid
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Madrid
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:narrative_location ?g . ?g rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:collectable } UNION { ?g rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:application . ?o property:narrative_location ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:narrative_location resource:Madrid . { ?u rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:application ) } } } } . FILTER ( ?v < ?m ) }
[]
administrative territorial entity collectable application
SYSTEM
340
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q10690 Q585 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q2048321 Q1335 Q594807 Q1891 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q8678 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q753121 Q16556 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q52437 Q723329 Q490737 Q1563 Q900 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q2214 Q38022 Q174 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q18419 Q1780 Q1781 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q26 Q1726 Q530090 Q34404 Q3825 Q64 Q159232 Q1757 Q18125 Q5818 Q1867 Q384 Q5813 Q27393 Q12191 Q126148 Q202337 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q41621 Q3012 Q2301524 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q374748 Q485172 Q26793 Q4190 Q897848 Q165413 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q2807
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:P840 ?g . ?g rdf:type ontology:Q56061 . ?o rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q56061 . ?o rdf:type ontology:Q166142 . ?o property:P840 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P840 resource:Q2807 . { ?u rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } } } . FILTER ( ?v < ?m ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Cardiff Oslo Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Varde Montevideo Søborg Bologna Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Rio de Janeiro Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Atacames Phoenix Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Murano Ascot Bloomington Havana Kazan Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Pskov St. Louis São Paulo Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Brooklyn Bratislava Budapest Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Northern Ireland Munich Jerichow New Orleans Libreville Berlin Santa Cruz Helsinki Manchester Córdoba Taipei Skopje Canary Islands Herning Nantes Tangier Nauplion Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Haifa Ulm Stege Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Jenin Ann Arbor Bergen Passau Brande Baikonur Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
340
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Madrid
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:narrative_location ?g . ?g rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:collectable } UNION { ?g rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:application . ?o property:narrative_location ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:narrative_location resource:Madrid . { ?u rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:application ) } } } } . FILTER ( ?v < ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1861
P840
Q56061 Q2342494 Q166142
USER
And how about Bangkok?
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1861
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?g WHERE { VALUES ( ?s ) { ( ontology:Q166142 ) ( ontology:Q2342494 ) } . ?m rdf:type ?s } GROUP BY ?g } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P840 resource:Q1861 . { { ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q166142 } } } } }
Bangkok
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Bangkok
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?g WHERE { VALUES ( ?s ) { ( ontology:application ) ( ontology:collectable ) } . ?m rdf:type ?s } GROUP BY ?g } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:narrative_location resource:Bangkok . { { ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:application } } } } }
[]
administrative territorial entity collectable application
SYSTEM
247
Q1715 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q331990 Q210292 Q28729 Q25286 Q2280 Q3805 Q501661 Q49233 Q1255278 Q42096 Q18808 Q23725 Q1050826 Q4093 Q3659 Q16563 Q8692 Q585 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1022 Q308891 Q101625 Q48320 Q80985 Q215646 Q80734 Q7880 Q1930 Q1435589 Q597 Q690 Q257536 Q22889 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q1335 Q594807 Q9427 Q48274 Q12340599 Q262483 Q186237 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q11864 Q83387 Q462799 Q8673 Q2861 Q11703 Q2868 Q490 Q48370 Q36036 Q3703 Q208287 Q54212 Q3630 Q17151 Q237 Q6046 Q25416 Q239 Q16558 Q16559 Q753121 Q994 Q35178 Q113546 Q3037 Q723329 Q490737 Q1563 Q900 Q14815 Q169492 Q13670 Q128321 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q25390 Q214178 Q25395 Q78 Q70 Q178168 Q37100 Q2214 Q38022 Q174 Q270 Q37066 Q486439 Q208472 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q41329 Q1555 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q1479 Q387047 Q18419 Q1780 Q1781 Q690052 Q2090 Q2073211 Q1851 Q127856 Q18705 Q3820 Q621549 Q49149 Q676689 Q271411 Q13496 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q430464 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q1659757 Q268873 Q26 Q1726 Q530090 Q3825 Q159232 Q1757 Q18125 Q1867 Q384 Q5813 Q27393 Q12191 Q126148 Q202337 Q837478 Q184345 Q6106 Q49111 Q499196 Q495373 Q10313 Q49255 Q3640 Q647 Q41621 Q3012 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q1449 Q47048 Q1764 Q34932 Q2211 Q41262 Q2704 Q1040 Q6441 Q165972 Q374748 Q485172 Q26793 Q4190 Q897848 Q165413 Q1574020 Q3992 Q3110 Q3114 Q743521 Q630533 Q2751 Q41876 Q41970 Q34647 Q1085
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1861
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?g WHERE { VALUES ( ?s ) { ( ontology:Q166142 ) ( ontology:Q2342494 ) } . ?m rdf:type ?s } GROUP BY ?g } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P840 resource:Q1861 . { { ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q166142 } } } } }
Hanover Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Korean Demilitarized Zone Yozgat Kozhikode Uppsala Minsk Amman Schleswig Orlando Dragør Miryang Pyongyang Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Bilbao Oslo Tijuana Farsø Tombstone Giza Plzeň Stuttgart special wards of Tokyo Marrakesh Kōbe Fes Edo Campagna Toulouse Ottawa Folsom Lisbon Delft Janesville Bath Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Montevideo Søborg Timbuktu Nashua Vedersø Deadwood Joensuu Dybbøl Besançon Mexico City Torquay Onllwyn Junagadh Diyarbakır Evanston Lagos Rostock United States Virgin Islands Lima Milan Manchester Lviv Bamako Kauniainen Barnsley Jakarta Thessaloniki Vatican City Novara Stavanger Brussels Fort Worth Austin Atacames Tbilisi Kuwait City Blackeberg Kathmandu Ascot Bloomington Havana Kazan Weißenfels Neukölln Syracuse Midland Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Leeuwarden Nablus Newark Basel Bern Mitrovica Auckland Pskov St. Louis São Paulo Warsaw Bismarck Cedar Rapids Bingöl Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Linz Guatemala City La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Bordeaux Malibu Brooklyn Bratislava Budapest Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Bajram Curri Beirut Inglewood Nantucket Gravesend Malindi Brindisi Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Dearborn Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Gimli Newport Beach Northern Ireland Munich Jerichow Libreville Santa Cruz Helsinki Manchester Taipei Skopje Canary Islands Herning Nantes Tangier Nauplion Sabinov Viña del Mar Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Tampa Ankara Rennes Haifa Ulm Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Genoa Oulu Reykjavík Brisbane Malmö Nottingham Pescara Karlsruhe Montpellier Fort Lauderdale Jenin Ann Arbor Bergen Passau Brande Baikonur The Hamptons Liège San Salvador Canberra Scarborough Tire Siena Reims Pyatigorsk Johannesburg Prague
247
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Bangkok
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?g WHERE { VALUES ( ?s ) { ( ontology:application ) ( ontology:collectable ) } . ?m rdf:type ?s } GROUP BY ?g } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:narrative_location resource:Bangkok . { { ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:application } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1614704 Q225432
P47 P17
Q1048835
USER
Which political territories do Schloß Holte-Stukenbrock belong to or are bordered by Albillos ?
OR((Q225432,P17,c(Q1048835)), (Q1614704,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q225432
relation P17
action find
entity Q1614704
relation P47
type Q1048835
{'OR': [['Q225432', 'P17', {'concept': 'Q1048835'}], ['Q1614704', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q225432 property:P17 ?o } UNION { resource:Q1614704 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Albillos Schloß Holte-Stukenbrock
action filter_type
action union
action find
entity Schloß Holte-Stukenbrock
relation country
action find
entity Albillos
relation shares border with
type political territorial entity
{'OR': [['Schloß Holte-Stukenbrock', 'country', {'concept': 'political territorial entity'}], ['Albillos', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Schloß_Holte-Stukenbrock property:country ?o } UNION { resource:Albillos property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1645374 Q1990937 Q1650246 Q183 Q526762 Q1614638 Q607811
SYSTEM
Cayuela, Cavia, Estépar, Germany, Villalbilla de Burgos, Buniel, Villagonzalo Pedernales
Q1645374 Q1990937 Q1650246 Q183 Q526762 Q1614638 Q607811
OR((Q225432,P17,c(Q1048835)), (Q1614704,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q225432
relation P17
action find
entity Q1614704
relation P47
type Q1048835
[ANSWERS] Schloß Holte-Stukenbrock belong to or are bordered by Albillos
{'OR': [['Q225432', 'P17', {'concept': 'Q1048835'}], ['Q1614704', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q225432 property:P17 ?o } UNION { resource:Q1614704 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Cayuela Cavia Estépar Germany Villalbilla de Burgos Buniel Villagonzalo Pedernales
Cayuela, Cavia, Estépar, Germany, Villalbilla de Burgos, Buniel and Villagonzalo Pedernales Schloß Holte-Stukenbrock belong to or are bordered by Albillos
Cayuela Cavia Estépar Germany Villalbilla de Burgos Buniel Villagonzalo Pedernales
action filter_type
action union
action find
entity Schloß Holte-Stukenbrock
relation country
action find
entity Albillos
relation shares border with
type political territorial entity
{'OR': [['Schloß Holte-Stukenbrock', 'country', {'concept': 'political territorial entity'}], ['Albillos', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Schloß_Holte-Stukenbrock property:country ?o } UNION { resource:Albillos property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1645374 Q1990937 Q1650246 Q183 Q526762 Q1614638 Q607811
P6
Q502895
USER
Which people are the head of government of those political territories ?
(Q1645374,P6,c(Q502895)) (Q1990937,P6,c(Q502895)) (Q1650246,P6,c(Q502895)) (Q183,P6,c(Q502895)) (Q526762,P6,c(Q502895)) (Q1614638,P6,c(Q502895)) (Q607811,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q1645374', 'P6', {'concept': 'Q502895'}] ['Q1990937', 'P6', {'concept': 'Q502895'}] ['Q1650246', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}] ['Q526762', 'P6', {'concept': 'Q502895'}] ['Q1614638', 'P6', {'concept': 'Q502895'}] ['Q607811', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?p property:P6 ?e . ?e rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q1645374 ) ( resource:Q1990937 ) ( resource:Q1650246 ) } }
Cayuela Cavia Estépar Germany Villalbilla de Burgos Buniel Villagonzalo Pedernales
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Cayuela', 'head of government', {'concept': 'common name'}] ['Cavia', 'head of government', {'concept': 'common name'}] ['Estépar', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}] ['Villalbilla de Burgos', 'head of government', {'concept': 'common name'}] ['Buniel', 'head of government', {'concept': 'common name'}] ['Villagonzalo Pedernales', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?p property:head_of_government ?e . ?e rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Cayuela ) ( resource:Cavia ) ( resource:Estépar ) } }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q14046088 Q14046069 Q14046527 Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567 Q14053381 Q14045516 Q14053284
(Q1645374,P6,c(Q502895)) (Q1990937,P6,c(Q502895)) (Q1650246,P6,c(Q502895)) (Q183,P6,c(Q502895)) (Q526762,P6,c(Q502895)) (Q1614638,P6,c(Q502895)) (Q607811,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS] are the head of government of those political territories
['Q1645374', 'P6', {'concept': 'Q502895'}] ['Q1990937', 'P6', {'concept': 'Q502895'}] ['Q1650246', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}] ['Q526762', 'P6', {'concept': 'Q502895'}] ['Q1614638', 'P6', {'concept': 'Q502895'}] ['Q607811', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?p property:P6 ?e . ?e rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q1645374 ) ( resource:Q1990937 ) ( resource:Q1650246 ) } }
Jose Maria Garcia Andrian Maria Elena Gonzalez Paisan Jaime Martinez Gonzalez Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel Teodulo Revilla Revilla Roberto Roque Garcia Juan Carlos de la Fuente Ruiz
Konrad Adenauer, Willy Brandt and Angela Merkel are the head of government of those political territories
Konrad Adenauer Willy Brandt Angela Merkel
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Cayuela', 'head of government', {'concept': 'common name'}] ['Cavia', 'head of government', {'concept': 'common name'}] ['Estépar', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}] ['Villalbilla de Burgos', 'head of government', {'concept': 'common name'}] ['Buniel', 'head of government', {'concept': 'common name'}] ['Villagonzalo Pedernales', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?p property:head_of_government ?e . ?e rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Cayuela ) ( resource:Cavia ) ( resource:Estépar ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q567
P39
Q12737077
USER
Which occupations were the positions for which Angela Merkel were appointed ?
(Q567,P39,c(Q12737077))
action filter_type
action find
entity Q567
relation P39
type Q12737077
['Q567', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q567 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Angela Merkel
action filter_type
action find
entity Angela Merkel
relation position held
type occupation
['Angela Merkel', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Angela_Merkel property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q4970706 Q1939555 Q248352
SYSTEM
Federal Chancellor of Germany, member of the German Bundestag, Bundesminister
Q4970706 Q1939555 Q248352
(Q567,P39,c(Q12737077))
action filter_type
action find
entity Q567
relation P39
type Q12737077
[ANSWERS] were the positions for which Angela Merkel were appointed
['Q567', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q567 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Federal Chancellor of Germany member of the German Bundestag Bundesminister
Federal Chancellor of Germany, member of the German Bundestag and Bundesminister were the positions for which Angela Merkel were appointed
Federal Chancellor of Germany member of the German Bundestag Bundesminister
action filter_type
action find
entity Angela Merkel
relation position held
type occupation
['Angela Merkel', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Angela_Merkel property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12039193
Q12737077
USER
And what about Mária Štrbová?
(Q12039193,P39,c(Q12737077))
action filter_type
action find
entity Q12039193
relation P39
type Q12737077
['Q12039193', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q12039193 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Mária Štrbová
action filter_type
action find
entity Mária Štrbová
relation position held
type occupation
['Mária Štrbová', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Mária_Štrbová property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q17320547
SYSTEM
member of the Federal Assembly of Czechoslovakia
Q17320547
(Q12039193,P39,c(Q12737077))
action filter_type
action find
entity Q12039193
relation P39
type Q12737077
[ANSWER]
['Q12039193', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q12039193 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
member of the Federal Assembly of Czechoslovakia
member of the Federal Assembly of Czechoslovakia
action filter_type
action find
entity Mária Štrbová
relation position held
type occupation
['Mária Štrbová', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Mária_Štrbová property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q7725634 Q484692 Q1048835
USER
How many political territories have atmost 1 literary works and hymns as their national anthem ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action atmost
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
value 1
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ?c . VALUES ( ?c ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?y } . FILTER ( ?v <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
value 1
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ?c . VALUES ( ?c ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?y } . FILTER ( ?v <= 1 ) }
[]
literary work hymn political territorial entity
SYSTEM
38
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action atmost
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ?c . VALUES ( ?c ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?y } . FILTER ( ?v <= 1 ) }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
38
action count
action atmost
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
value 1
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ?c . VALUES ( ?c ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?y } . FILTER ( ?v <= 1 ) }
[]