Simple Question (Direct)
Simple Question
Q108833
P937
Q56061
USER
What is the location where Hermann von Mittnacht worked ?
(Q108833,P937,c(Q56061))
action filter_type
action find
entity Q108833
relation P937
type Q56061
['Q108833', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q108833 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Hermann von Mittnacht
action filter_type
action find
entity Hermann von Mittnacht
relation work location
type administrative territorial entity
['Hermann von Mittnacht', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hermann_von_Mittnacht property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q108833,P937,c(Q56061))
action filter_type
action find
entity Q108833
relation P937
type Q56061
The location Hermann von Mittnacht worked is in [ANSWER]
['Q108833', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q108833 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Stuttgart
The location Hermann von Mittnacht worked is in Stuttgart
Stuttgart
action filter_type
action find
entity Hermann von Mittnacht
relation work location
type administrative territorial entity
['Hermann von Mittnacht', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hermann_von_Mittnacht property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q108833
P27
Q3024240
USER
Which former country does that person belong to ?
(Q1022,P27,c(Q3024240))
action filter_type
action find
entity Q108833
relation P27
type Q3024240
['Q1022', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?a WHERE { resource:Q108833 property:P27 ?a . ?a rdf:type ontology:Q3024240 }
Hermann von Mittnacht
action filter_type
action find
entity Hermann von Mittnacht
relation country of citizenship
type former country
['Stuttgart', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?a WHERE { resource:Hermann_von_Mittnacht property:country_of_citizenship ?a . ?a rdf:type ontology:former_country }
[]
former country
Q43287
SYSTEM
German Empire
Q43287
(Q1022,P27,c(Q3024240))
action filter_type
action find
entity Q108833
relation P27
type Q3024240
That person belongs to the [ANSWER]
['Q1022', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?a WHERE { resource:Q108833 property:P27 ?a . ?a rdf:type ontology:Q3024240 }
German Empire
That person belongs to the German Empire
German Empire
action filter_type
action find
entity Hermann von Mittnacht
relation country of citizenship
type former country
['Stuttgart', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?a WHERE { resource:Hermann_von_Mittnacht property:country_of_citizenship ?a . ?a rdf:type ontology:former_country }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1022
P740
Q334453 Q43229
USER
How many divisions or organizations were formed at Stuttgart ?
(c(Q334453),P740,Q1022) (c(Q43229),P740,Q1022)
action count
action union
action filter_type
action find_reverse
entity Q1022
relation P740
type Q334453
action filter_type
action find_reverse
entity Q1022
relation P740
type Q43229
[{'concept': 'Q334453'}, 'P740', 'Q1022'] [{'concept': 'Q43229'}, 'P740', 'Q1022']
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { ?m property:P740 resource:Q1022 . ?m rdf:type ontology:Q334453 } UNION { ?m property:P740 resource:Q1022 . ?m rdf:type ontology:Q43229 } }
Stuttgart
action count
action union
action filter_type
action find_reverse
entity Stuttgart
relation location of formation
type division
action filter_type
action find_reverse
entity Stuttgart
relation location of formation
type organization
[{'concept': 'division'}, 'location of formation', 'Stuttgart'] [{'concept': 'organization'}, 'location of formation', 'Stuttgart']
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { ?m property:location_of_formation resource:Stuttgart . ?m rdf:type ontology:division } UNION { ?m property:location_of_formation resource:Stuttgart . ?m rdf:type ontology:organization } }
[]
division organization
SYSTEM
8
Q112244 Q234021 Q314543 Q173778 Q1022384 Q1780170 Q368535 Q7276761
(c(Q334453),P740,Q1022) (c(Q43229),P740,Q1022)
action count
action union
action filter_type
action find_reverse
entity Q1022
relation P740
type Q334453
action filter_type
action find_reverse
entity Q1022
relation P740
type Q43229
[ANSWER]
[{'concept': 'Q334453'}, 'P740', 'Q1022'] [{'concept': 'Q43229'}, 'P740', 'Q1022']
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { ?m property:P740 resource:Q1022 . ?m rdf:type ontology:Q334453 } UNION { ?m property:P740 resource:Q1022 . ?m rdf:type ontology:Q43229 } }
TRADOS Robert Bosch GmbH Maschinenfabrik Esslingen Bölkow Fein Esselte Leitz GmbH & Co KG Four Music RIB Software AG
8
action count
action union
action filter_type
action find_reverse
entity Stuttgart
relation location of formation
type division
action filter_type
action find_reverse
entity Stuttgart
relation location of formation
type organization
[{'concept': 'division'}, 'location of formation', 'Stuttgart'] [{'concept': 'organization'}, 'location of formation', 'Stuttgart']
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { ?m property:location_of_formation resource:Stuttgart . ?m rdf:type ontology:division } UNION { ?m property:location_of_formation resource:Stuttgart . ?m rdf:type ontology:organization } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P122
Q28108 Q3024240
USER
How many political systems describes the types of government of atmost 1 former country ?
(c(Q3024240),P122,c(Q28108))
action count
action atmost
action find_reverse_tuple_counts
relation P122
type Q28108
type Q3024240
value 1
[{'concept': 'Q3024240'}, 'P122', {'concept': 'Q28108'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P122 ?h . ?h rdf:type ontology:Q28108 . ?r rdf:type ontology:Q3024240 } GROUP BY ?h } . FILTER ( ?x <= 1 ) }
action count
action atmost
action find_reverse_tuple_counts
relation basic form of government
type political system
type former country
value 1
[{'concept': 'former country'}, 'basic form of government', {'concept': 'political system'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:basic_form_of_government ?h . ?h rdf:type ontology:political_system . ?r rdf:type ontology:former_country } GROUP BY ?h } . FILTER ( ?x <= 1 ) }
[]
political system former country
SYSTEM
2
Q79751 Q3446302
(c(Q3024240),P122,c(Q28108))
action count
action atmost
action find_reverse_tuple_counts
relation P122
type Q28108
type Q3024240
value 1
[ANSWER]
[{'concept': 'Q3024240'}, 'P122', {'concept': 'Q28108'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P122 ?h . ?h rdf:type ontology:Q28108 . ?r rdf:type ontology:Q3024240 } GROUP BY ?h } . FILTER ( ?x <= 1 ) }
oligarchy royalty
2
action count
action atmost
action find_reverse_tuple_counts
relation basic form of government
type political system
type former country
value 1
[{'concept': 'former country'}, 'basic form of government', {'concept': 'political system'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:basic_form_of_government ?h . ?h rdf:type ontology:political_system . ?r rdf:type ontology:former_country } GROUP BY ?h } . FILTER ( ?x <= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6441
P291
Q56061 Q1002697 Q571
USER
How many administrative territories were more number of periodical literatures or books issued than Montpellier ?
(c(Q1002697)|c(Q571),P291,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q6441
relation P291
type Q1002697
type Q571
[[{'concept': 'Q1002697'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?t ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?p rdf:type ?t } GROUP BY ?w } . FILTER ( ?u > ?i ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P291 resource:Q6441 . { VALUES ( ?r ) { ( ontology:Q1002697 ) ( ontology:Q571 ) } . ?s rdf:type ?r } } } }
Montpellier
action count
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Montpellier
relation place of publication
type periodical literature
type book
[[{'concept': 'periodical literature'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?t ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?p rdf:type ?t } GROUP BY ?w } . FILTER ( ?u > ?i ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:place_of_publication resource:Montpellier . { VALUES ( ?r ) { ( ontology:periodical_literature ) ( ontology:book ) } . ?s rdf:type ?r } } } }
[]
administrative territorial entity periodical literature book
SYSTEM
89
Q982367 Q10305 Q23337 Q33959 Q8692 Q586 Q8851 Q1757 Q1754 Q1022 Q99151 Q90 Q48329 Q7880 Q597 Q365 Q5836 Q12411 Q8818 Q11125 Q8810 Q1155 Q1489 Q40347 Q8678 Q490 Q495 Q2044 Q23436 Q2280 Q3141 Q72 Q239 Q3130 Q1297 Q936183 Q45412 Q84 Q5112 Q2103 Q49111 Q71 Q36405 Q270 Q60 Q15678 Q14318 Q14314 Q5092 Q15090 Q1492 Q8745 Q1479 Q2807 Q12225 Q220 Q10282 Q472 Q761 Q9580 Q1726 Q11967 Q8717 Q64 Q61 Q62 Q18125 Q12439 Q10313 Q647 Q641 Q193367 Q727 Q649 Q24826 Q15699 Q485329 Q15696 Q8757 Q34370 Q207639 Q125080 Q100 Q3834 Q648 Q12233 Q350 Q8826 Q1085
(c(Q1002697)|c(Q571),P291,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q6441
relation P291
type Q1002697
type Q571
[ANSWER]
[[{'concept': 'Q1002697'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?t ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?p rdf:type ?t } GROUP BY ?w } . FILTER ( ?u > ?i ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P291 resource:Q6441 . { VALUES ( ?r ) { ( ontology:Q1002697 ) ( ontology:Q571 ) } . ?s rdf:type ?r } } } }
Mineola Zaragoza Salt Lake City Nice Bilbao Bonn Málaga Helsinki Stockholm Stuttgart Ourense Paris Mariehamn Toulouse Lisbon Cologne Toledo Pontevedra Valencia Lugo Granada Busto Arsizio Mexico City Norman Rio de Janeiro Milan Turin Florence Edinburgh Minsk Melbourne Zürich Brussels Sydney Chicago Tonbridge Coimbra London Adelaide Bochum Cambridge Geneva Aberdeen Warsaw New York City Cáceres Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Barcelona Vigo Bordeaux Madrid Murcia Rome Pamplona Sofia Białystok Burgos Munich Huesca Seville Berlin Washington, D.C. San Francisco Manchester Detroit Donostia/San Sebastián Rennes Venice Porvoo Amsterdam Moscow Liverpool León Ferrol Zamora A Coruña Rotterdam Chichester Vaasa Boston Konstanz Lille Santander Cambridge Palma Prague
89
action count
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Montpellier
relation place of publication
type periodical literature
type book
[[{'concept': 'periodical literature'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?t ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?p rdf:type ?t } GROUP BY ?w } . FILTER ( ?u > ?i ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:place_of_publication resource:Montpellier . { VALUES ( ?r ) { ( ontology:periodical_literature ) ( ontology:book ) } . ?s rdf:type ?r } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1679567
P291
Q56061 Q1002697 Q571
USER
And how about Jakobstad?
(c(Q1002697)|c(Q571),P291,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1679567
relation P291
type Q1002697
type Q571
[[{'concept': 'Q1002697'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?v WHERE { { ?w property:P291 ?v . ?v rdf:type ontology:Q56061 . ?w rdf:type ontology:Q1002697 } UNION { ?w property:P291 ?v . ?v rdf:type ontology:Q56061 . ?w rdf:type ontology:Q571 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:P291 resource:Q1679567 . { { ?q rdf:type ontology:Q1002697 } UNION { ?q rdf:type ontology:Q571 } } } } . FILTER ( ?k > ?a ) }
Jakobstad
action count
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Jakobstad
relation place of publication
type periodical literature
type book
[[{'concept': 'periodical literature'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?v WHERE { { ?w property:place_of_publication ?v . ?v rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:periodical_literature } UNION { ?w property:place_of_publication ?v . ?v rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:book } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:place_of_publication resource:Jakobstad . { { ?q rdf:type ontology:periodical_literature } UNION { ?q rdf:type ontology:book } } } } . FILTER ( ?k > ?a ) }
[]
administrative territorial entity periodical literature book
SYSTEM
196
Q909146 Q2512312 Q38511 Q203619 Q1544563 Q501661 Q982367 Q11974 Q10305 Q23337 Q33959 Q8692 Q586 Q2656 Q4581188 Q8851 Q9920 Q15682 Q1757 Q1754 Q1022 Q99151 Q90 Q48329 Q3992 Q7880 Q949651 Q3846 Q597 Q5831 Q365 Q5836 Q132572 Q12411 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q1155 Q14323 Q14325 Q484799 Q576110 Q1489 Q209055 Q3561 Q40347 Q739452 Q8678 Q490 Q495 Q2044 Q576165 Q54217 Q23436 Q15093 Q2280 Q162279 Q3141 Q671288 Q72 Q17151 Q334 Q239 Q16559 Q486306 Q621 Q8686 Q3130 Q192517 Q1297 Q3033 Q936183 Q1563 Q1748 Q45412 Q84 Q5112 Q2103 Q178093 Q49111 Q71 Q2617448 Q36405 Q270 Q60 Q15678 Q1931927 Q3183 Q1781 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q956 Q15095 Q15098 Q1492 Q8745 Q1479 Q2766547 Q2941325 Q12258 Q202158 Q1017331 Q2807 Q42735 Q242478 Q12225 Q220 Q342 Q10282 Q26421 Q188304 Q617 Q472 Q37995 Q6576 Q6761 Q761 Q9580 Q2634 Q8356 Q3584 Q1726 Q11967 Q8717 Q3519 Q64 Q65 Q159232 Q207891 Q2028 Q61 Q62 Q18125 Q5818 Q204382 Q12439 Q27393 Q470445 Q1352 Q79990 Q8385 Q6537 Q10313 Q72259 Q19785 Q647 Q641 Q193367 Q727 Q649 Q59169 Q204720 Q24826 Q15699 Q485329 Q15696 Q985271 Q128306 Q3366952 Q997170 Q580 Q213898 Q585 Q8757 Q34370 Q207639 Q6441 Q125080 Q2066 Q12303 Q100 Q3834 Q40840 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q12233 Q216 Q646620 Q350 Q215277 Q8826 Q1348 Q14336 Q34647 Q1085
(c(Q1002697)|c(Q571),P291,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1679567
relation P291
type Q1002697
type Q571
[ANSWER]
[[{'concept': 'Q1002697'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?v WHERE { { ?w property:P291 ?v . ?v rdf:type ontology:Q56061 . ?w rdf:type ontology:Q1002697 } UNION { ?w property:P291 ?v . ?v rdf:type ontology:Q56061 . ?w rdf:type ontology:Q571 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:P291 resource:Q1679567 . { { ?q rdf:type ontology:Q1002697 } UNION { ?q rdf:type ontology:Q571 } } } } . FILTER ( ?k > ?a ) }
Godalming Eppegem Turku Kemi Hellerup Schleswig Mineola Las Palmas de Gran Canaria Zaragoza Salt Lake City Nice Bilbao Bonn Palermo Straume Málaga Haarlem Cádiz Helsinki Stockholm Stuttgart Ourense Paris Mariehamn Liège Toulouse Wilmington Minden Lisbon Melilla Cologne Toledo Tiraspol Pontevedra Valencia Lugo Granada Elverum Alcones Busto Arsizio Mérida Logroño Marbella Nauvoo Mexico City Torquay Algiers Norman Garden City Rio de Janeiro Milan Turin Florence Warsaw Norwalk Edinburgh Ciudad Real Minsk Kuopio Melbourne Bend Zürich Thessaloniki Singapore Brussels Austin Pensacola Versailles Shanghai Sydney Boulder Chicago Göttingen Tonbridge Havana Copenhagen Coimbra London Adelaide Bochum Poughkeepsie Cambridge Geneva Edinburgh Aberdeen Warsaw New York City Cáceres Bracon Ash Perth Budapest Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Beijing Albacete Cuenca Barcelona Vigo Bordeaux 's-Hertogenbosch Corbin Sabadell Hämeenlinna Westport, County Mayo Madrid Olympia Levoča Murcia Rome Quimper Pamplona Dordrecht Sunderland Padua Sofia Yangon Irkutsk Livorno Białystok Burgos Naples Valladolid Nový Jičín Munich Huesca Seville Bari Berlin Los Angeles Santa Cruz Kokkola Verona Washington, D.C. San Francisco Manchester Córdoba Kouvola Detroit Herning Prostějov Chennai Christchurch Ostrava Vicenza Donostia/San Sebastián Portsmouth Harpenden Rennes Venice Porvoo Amsterdam Moscow Mo i Rana Hereford Liverpool León Ferrol Zamora The Dalles Denton Alta Waterville Łódź Preveza Oslo A Coruña Rotterdam Chichester Montpellier Vaasa Essen Jerez de la Frontera Boston Konstanz Tampere Bergen Voronezh Belfast Imatra Lappeenranta Lille Santander Vilnius Estella-Lizarra Cambridge Jaffna Palma Kolkata Teruel Johannesburg Prague
196
action count
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Jakobstad
relation place of publication
type periodical literature
type book
[[{'concept': 'periodical literature'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?v WHERE { { ?w property:place_of_publication ?v . ?v rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:periodical_literature } UNION { ?w property:place_of_publication ?v . ?v rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:book } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:place_of_publication resource:Jakobstad . { { ?q rdf:type ontology:periodical_literature } UNION { ?q rdf:type ontology:book } } } } . FILTER ( ?k > ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q497695
P36
Q56061
USER
Which administrative territory is known as the capital of Genesee County ?
(Q497695,P36,c(Q56061))
action filter_type
action find
entity Q497695
relation P36
type Q56061
['Q497695', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q497695 property:P36 ?h . ?h rdf:type ontology:Q56061 }
Genesee County
action filter_type
action find
entity Genesee County
relation capital
type administrative territorial entity
['Genesee County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Genesee_County property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490584
SYSTEM
Flint
Q490584
(Q497695,P36,c(Q56061))
action filter_type
action find
entity Q497695
relation P36
type Q56061
[ANSWER] is known as the capital of Genesee County
['Q497695', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q497695 property:P36 ?h . ?h rdf:type ontology:Q56061 }
Flint
Flint is known as the capital of Genesee County
Flint
action filter_type
action find
entity Genesee County
relation capital
type administrative territorial entity
['Genesee County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Genesee_County property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43287
P710
Q1190554
USER
Which events did German Empire participate in ?
(c(Q1190554),P710,Q43287)
action filter_type
action find_reverse
entity Q43287
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q43287']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1190554 . ?c property:P710 resource:Q43287 }
German Empire
action filter_type
action find_reverse
entity German Empire
relation participant
type event
[{'concept': 'event'}, 'participant', 'German Empire']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:event . ?c property:participant resource:German_Empire }
[]
event
Q1694094 Q750567 Q1130507
SYSTEM
Second Battle of the Aisne, Spring Offensive, Hundred Days Offensive
Q1999020 Q620215 Q2665626 Q4873010 Q1320675 Q233219 Q130847 Q1130507 Q239255 Q4870258 Q2890541 Q1694094 Q1063735 Q853976 Q1096151 Q911448 Q989093 Q654374 Q3636355 Q2221800 Q1780536 Q750567
(c(Q1190554),P710,Q43287)
action filter_type
action find_reverse
entity Q43287
relation P710
type Q1190554
German Empire participated in [ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q43287']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1190554 . ?c property:P710 resource:Q43287 }
Battle of the Hills Battle of Mont Saint-Quentin Battle of Beersheba Battle of the Scarpe Battle of Havrincourt Second Battle of Ypres Battle of Verdun Hundred Days Offensive Battle of Arras Battle of Aleppo (1918) Battle of La Malmaison Second Battle of the Aisne Second Battle of the Somme First Battle of Ypres Battle of Delville Wood Battle of Amiens First Battle of Champagne Battle of Cambrai Battle of Broodseinde First Battle of Artois Battle of Hill 60 Spring Offensive
German Empire participated in Second Battle of the Aisne, Spring Offensive and Hundred Days Offensive
Second Battle of the Aisne Spring Offensive Hundred Days Offensive
action filter_type
action find_reverse
entity German Empire
relation participant
type event
[{'concept': 'event'}, 'participant', 'German Empire']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:event . ?c property:participant resource:German_Empire }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q490584
P159
Q43229
USER
Which organizations have the principal seat at Flint ?
(c(Q43229),P159,Q490584)
action filter_type
action find_reverse
entity Q490584
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q490584']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q490584 . ?m rdf:type ontology:Q43229 }
Flint
action filter_type
action find_reverse
entity Flint
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Flint']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Flint . ?m rdf:type ontology:organization }
[]
organization
Q8048781 Q19481260 Q5122725
SYSTEM
Yankee Stores, W.F. Stewart Company, Citizens Republic Bancorp
Q8048781 Q5122725 Q7563430 Q6802057 Q19481260 Q7886369 Q5643990
(c(Q43229),P159,Q490584)
action filter_type
action find_reverse
entity Q490584
relation P159
type Q43229
[ANSWERS] have the principal seat at Flint
[{'concept': 'Q43229'}, 'P159', 'Q490584']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q490584 . ?m rdf:type ontology:Q43229 }
Yankee Stores Citizens Republic Bancorp Sorensen Gross Construction Company McLaren Health Care Corporation W.F. Stewart Company Union Trust and Savings Bank Hamady Brothers
Yankee Stores, W.F. Stewart Company and Citizens Republic Bancorp have the principal seat at Flint
Yankee Stores W.F. Stewart Company Citizens Republic Bancorp
action filter_type
action find_reverse
entity Flint
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Flint']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Flint . ?m rdf:type ontology:organization }
[]