Simple Question (Direct)
Simple Question
Q2338291
P106
Q12737077
USER
What is the profession of Stefanie Strasburger ?
(Q2338291,P106,c(Q12737077))
action filter_type
action find
entity Q2338291
relation P106
type Q12737077
['Q2338291', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q2338291 property:P106 ?i }
Stefanie Strasburger
action filter_type
action find
entity Stefanie Strasburger
relation occupation
type occupation
['Stefanie Strasburger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Stefanie_Strasburger property:occupation ?i }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q2338291,P106,c(Q12737077))
action filter_type
action find
entity Q2338291
relation P106
type Q12737077
The profession of Stefanie Strasburger is a [ANSWER]
['Q2338291', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q2338291 property:P106 ?i }
politician
The profession of Stefanie Strasburger is a politician
politician
action filter_type
action find
entity Stefanie Strasburger
relation occupation
type occupation
['Stefanie Strasburger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Stefanie_Strasburger property:occupation ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2338291
P937
Q486972
USER
What is the location where that person worked ?
(Q82955,P937,c(Q486972))
action filter_type
action find
entity Q2338291
relation P937
type Q486972
['Q82955', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?b WHERE { resource:Q2338291 property:P937 ?b . ?b rdf:type ontology:Q486972 }
Stefanie Strasburger
action filter_type
action find
entity Stefanie Strasburger
relation work location
type human settlement
['politician', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?b WHERE { resource:Stefanie_Strasburger property:work_location ?b . ?b rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q82955,P937,c(Q486972))
action filter_type
action find
entity Q2338291
relation P937
type Q486972
The location that person worked is in [ANSWER]
['Q82955', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?b WHERE { resource:Q2338291 property:P937 ?b . ?b rdf:type ontology:Q486972 }
Hamburg
The location that person worked is in Hamburg
Hamburg
action filter_type
action find
entity Stefanie Strasburger
relation work location
type human settlement
['politician', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?b WHERE { resource:Stefanie_Strasburger property:work_location ?b . ?b rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1055 Q4134808 Q62673
P6
Q502895
USER
Does that human settlement have its government headed by Kamaladdin Heydarov and Klaus von Dohnanyi ?
(Q1055,P6,Q4134808) (Q1055,P6,Q62673)
action is_in
entity Q1055
action intersection
action find_reverse
entity Q4134808
relation P6
action find_reverse
entity Q62673
relation P6
['Q1055', 'P6', 'Q4134808'] ['Q1055', 'P6', 'Q62673']
ASK WHERE { resource:Q1055 property:P6 resource:Q4134808 . resource:Q1055 property:P6 resource:Q62673 }
Hamburg Kamaladdin Heydarov Klaus von Dohnanyi
action is_in
entity Hamburg
action intersection
action find_reverse
entity Kamaladdin Heydarov
relation head of government
action find_reverse
entity Klaus von Dohnanyi
relation head of government
['Hamburg', 'head of government', 'Kamaladdin Heydarov'] ['Hamburg', 'head of government', 'Klaus von Dohnanyi']
ASK WHERE { resource:Hamburg property:head_of_government resource:Kamaladdin_Heydarov . resource:Hamburg property:head_of_government resource:Klaus_von_Dohnanyi }
[]
common name
SYSTEM
NO and YES respectively
(Q1055,P6,Q4134808) (Q1055,P6,Q62673)
action is_in
entity Q1055
action intersection
action find_reverse
entity Q4134808
relation P6
action find_reverse
entity Q62673
relation P6
[ANSWER]
['Q1055', 'P6', 'Q4134808'] ['Q1055', 'P6', 'Q62673']
ASK WHERE { resource:Q1055 property:P6 resource:Q4134808 . resource:Q1055 property:P6 resource:Q62673 }
NO and YES respectively
action is_in
entity Hamburg
action intersection
action find_reverse
entity Kamaladdin Heydarov
relation head of government
action find_reverse
entity Klaus von Dohnanyi
relation head of government
['Hamburg', 'head of government', 'Kamaladdin Heydarov'] ['Hamburg', 'head of government', 'Klaus von Dohnanyi']
ASK WHERE { resource:Hamburg property:head_of_government resource:Kamaladdin_Heydarov . resource:Hamburg property:head_of_government resource:Klaus_von_Dohnanyi }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2338291 Q183
P27
Q1048835
USER
Is Germany the country of citizenship of Stefanie Strasburger ?
(Q2338291,P27,Q183)
action is_in
entity Q183
action find
entity Q2338291
relation P27
['Q2338291', 'P27', 'Q183']
ASK WHERE { resource:Q2338291 property:P27 resource:Q183 }
Stefanie Strasburger Germany
action is_in
entity Germany
action find
entity Stefanie Strasburger
relation country of citizenship
['Stefanie Strasburger', 'country of citizenship', 'Germany']
ASK WHERE { resource:Stefanie_Strasburger property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q2338291,P27,Q183)
action is_in
entity Q183
action find
entity Q2338291
relation P27
[ANSWER]
['Q2338291', 'P27', 'Q183']
ASK WHERE { resource:Q2338291 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Stefanie Strasburger
relation country of citizenship
['Stefanie Strasburger', 'country of citizenship', 'Germany']
ASK WHERE { resource:Stefanie_Strasburger property:country_of_citizenship resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1055 Q8686
P190
Q56061
USER
Is Shanghai twin town of Hamburg ?
(Q1055,P190,Q8686)
action is_in
entity Q8686
action find
entity Q1055
relation P190
['Q1055', 'P190', 'Q8686']
ASK WHERE { resource:Q1055 property:P190 resource:Q8686 }
Hamburg Shanghai
action is_in
entity Shanghai
action find
entity Hamburg
relation sister city
['Hamburg', 'sister city', 'Shanghai']
ASK WHERE { resource:Hamburg property:sister_city resource:Shanghai }
[]
administrative territorial entity
SYSTEM
YES
(Q1055,P190,Q8686)
action is_in
entity Q8686
action find
entity Q1055
relation P190
[ANSWER]
['Q1055', 'P190', 'Q8686']
ASK WHERE { resource:Q1055 property:P190 resource:Q8686 }
Yes
action is_in
entity Shanghai
action find
entity Hamburg
relation sister city
['Hamburg', 'sister city', 'Shanghai']
ASK WHERE { resource:Hamburg property:sister_city resource:Shanghai }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2338291 Q183
P27
Q1048835
USER
Does that person belong to Germany ?
(Q2338291,P27,Q183)
action is_in
entity Q183
action find
entity Q2338291
relation P27
['Q2338291', 'P27', 'Q183']
ASK WHERE { resource:Q2338291 property:P27 resource:Q183 }
Stefanie Strasburger Germany
action is_in
entity Germany
action find
entity Stefanie Strasburger
relation country of citizenship
['Stefanie Strasburger', 'country of citizenship', 'Germany']
ASK WHERE { resource:Stefanie_Strasburger property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q2338291,P27,Q183)
action is_in
entity Q183
action find
entity Q2338291
relation P27
[ANSWER]
['Q2338291', 'P27', 'Q183']
ASK WHERE { resource:Q2338291 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Stefanie Strasburger
relation country of citizenship
['Stefanie Strasburger', 'country of citizenship', 'Germany']
ASK WHERE { resource:Stefanie_Strasburger property:country_of_citizenship resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19502127 Q62673
P19
Q486972
USER
Which human settlements were Klaus von Dohnanyi or Clemens Lessing born at ?
OR((Q62673,P19,c(Q486972)), (Q19502127,P19,c(Q486972)))
action filter_type
action union
action find
entity Q62673
relation P19
action find
entity Q19502127
relation P19
type Q486972
{'OR': [['Q62673', 'P19', {'concept': 'Q486972'}], ['Q19502127', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?l ) { ( resource:Q62673 ) ( resource:Q19502127 ) } . ?l property:P19 ?r } . ?r rdf:type ontology:Q486972 }
Clemens Lessing Klaus von Dohnanyi
action filter_type
action union
action find
entity Klaus von Dohnanyi
relation place of birth
action find
entity Clemens Lessing
relation place of birth
type human settlement
{'OR': [['Klaus von Dohnanyi', 'place of birth', {'concept': 'human settlement'}], ['Clemens Lessing', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?l ) { ( resource:Klaus_von_Dohnanyi ) ( resource:Clemens_Lessing ) } . ?l property:place_of_birth ?r } . ?r rdf:type ontology:human_settlement }
[]
human settlement
Q1766020 Q1055
SYSTEM
Oberlahnstein, Hamburg
Q1766020 Q1055
OR((Q62673,P19,c(Q486972)), (Q19502127,P19,c(Q486972)))
action filter_type
action union
action find
entity Q62673
relation P19
action find
entity Q19502127
relation P19
type Q486972
[ANSWERS] were Klaus von Dohnanyi or Clemens Lessing born at
{'OR': [['Q62673', 'P19', {'concept': 'Q486972'}], ['Q19502127', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?l ) { ( resource:Q62673 ) ( resource:Q19502127 ) } . ?l property:P19 ?r } . ?r rdf:type ontology:Q486972 }
Oberlahnstein Hamburg
Oberlahnstein and Hamburg were Klaus von Dohnanyi or Clemens Lessing born at
Oberlahnstein Hamburg
action filter_type
action union
action find
entity Klaus von Dohnanyi
relation place of birth
action find
entity Clemens Lessing
relation place of birth
type human settlement
{'OR': [['Klaus von Dohnanyi', 'place of birth', {'concept': 'human settlement'}], ['Clemens Lessing', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?l ) { ( resource:Klaus_von_Dohnanyi ) ( resource:Clemens_Lessing ) } . ?l property:place_of_birth ?r } . ?r rdf:type ontology:human_settlement }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q10667344
P138
Q811979 Q56061 Q486972
USER
How many human settlements are named after lesser number of architectural structures and administrative territories than Sickla udde ?
(c(Q486972),P138,c(Q811979)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P138
type Q486972
type Q811979
action find_tuple_counts
relation P138
type Q486972
type Q56061
action count
action filter_multi_types
action find
entity Q10667344
relation P138
type Q811979
type Q56061
[{'concept': 'Q486972'}, 'P138', [{'concept': 'Q811979'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?d WHERE { { ?d property:P138 ?f . ?f rdf:type ontology:Q811979 . ?d rdf:type ontology:Q486972 } UNION { ?d property:P138 ?f . ?d rdf:type ontology:Q486972 . ?f rdf:type ontology:Q56061 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { { ?a rdf:type ontology:Q811979 } UNION { ?a rdf:type ontology:Q56061 } } . resource:Q10667344 property:P138 ?a } } . FILTER ( ?w < ?m ) }
Sickla udde
action count
action less
action union
action find_tuple_counts
relation named after
type human settlement
type architectural structure
action find_tuple_counts
relation named after
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find
entity Sickla udde
relation named after
type architectural structure
type administrative territorial entity
[{'concept': 'human settlement'}, 'named after', [{'concept': 'architectural structure'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?d WHERE { { ?d property:named_after ?f . ?f rdf:type ontology:architectural_structure . ?d rdf:type ontology:human_settlement } UNION { ?d property:named_after ?f . ?d rdf:type ontology:human_settlement . ?f rdf:type ontology:administrative_territorial_entity } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { { ?a rdf:type ontology:architectural_structure } UNION { ?a rdf:type ontology:administrative_territorial_entity } } . resource:Sickla_udde property:named_after ?a } } . FILTER ( ?w < ?m ) }
[]
architectural structure administrative territorial entity human settlement
SYSTEM
145
Q1743366 Q22312661 Q17149400 Q7598636 Q2275291 Q5763347 Q1683228 Q2102176 Q1984648 Q198164 Q1510158 Q1256512 Q50996 Q1777936 Q2792890 Q1870673 Q2640642 Q1033949 Q314439 Q4692573 Q16131638 Q1737863 Q1494698 Q1865919 Q2614306 Q2245467 Q7476191 Q735912 Q519788 Q2194150 Q2685630 Q783854 Q2326184 Q6723261 Q8962067 Q14345064 Q18388510 Q128498 Q7971580 Q21906856 Q2593455 Q6928093 Q7979189 Q815949 Q1616604 Q6504819 Q14935333 Q983650 Q15058273 Q48256 Q2282600 Q2991444 Q1792746 Q290356 Q12024369 Q5468013 Q1139599 Q1757523 Q5042912 Q976539 Q1742210 Q3593074 Q2935221 Q14914641 Q1888614 Q861363 Q5168859 Q628201 Q5055608 Q468073 Q1368614 Q1087169 Q3558487 Q1651127 Q12816129 Q2230782 Q3413044 Q50702 Q6667162 Q3126518 Q7899414 Q7996570 Q4283923 Q967732 Q5438236 Q2416235 Q2015206 Q2918829 Q19904243 Q86768 Q6914022 Q925544 Q981354 Q50699 Q1250708 Q2069816 Q7926541 Q894914 Q3375567 Q4346476 Q1029545 Q2175554 Q2244792 Q3306374 Q3306377 Q3306376 Q2122072 Q387659 Q5049958 Q1299923 Q76937 Q5750556 Q20757832 Q894908 Q519650 Q5487991 Q692511 Q3462814 Q1014421 Q981934 Q2122363 Q9009279 Q2121780 Q1965078 Q4570781 Q2613329 Q27622959 Q2016874 Q24190423 Q1847830 Q7971406 Q2792865 Q27113552 Q6118795 Q2029443 Q1013563 Q12426646 Q5481335 Q1979062 Q308928 Q317056 Q2185534 Q4335 Q3172802 Q50729
(c(Q486972),P138,c(Q811979)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P138
type Q486972
type Q811979
action find_tuple_counts
relation P138
type Q486972
type Q56061
action count
action filter_multi_types
action find
entity Q10667344
relation P138
type Q811979
type Q56061
[ANSWER]
[{'concept': 'Q486972'}, 'P138', [{'concept': 'Q811979'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?d WHERE { { ?d property:P138 ?f . ?f rdf:type ontology:Q811979 . ?d rdf:type ontology:Q486972 } UNION { ?d property:P138 ?f . ?d rdf:type ontology:Q486972 . ?f rdf:type ontology:Q56061 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { { ?a rdf:type ontology:Q811979 } UNION { ?a rdf:type ontology:Q56061 } } . resource:Q10667344 property:P138 ?a } } . FILTER ( ?w < ?m ) }
Kirchrarbach Herchen-Bahnhof Sant'Antonio d'Adda Standish Schildersbuurt Hillman City Röntgental Hoornse Meer Nibelungenviertel Bullewijk Tokeland Stuwerviertel Pudost Koblenz-Asterstein Muir Beach Reitdiep Stadsparkwijk Cantwell Hohenlimburg Agincourt, Toronto Givat Olga Nierbachtal Garden city Crengeldanz Rivierenbuurt Ilissia Ulgersmaborg Hortusbuurt Nellis Air Force Base Leningradskaya (rural locality) Hilversumse Meent Federal Hill Fort Hood Stadionbuurt Maces Bay Fort Knox Sint-Anna Ramat Elchanan Bijlmermeer Washington's Landing National Park Oosterpoortwijk Mościce Wedgwood Belleville Papenholz Lawrenceville Amiens Fort Knox Oderbrück Dnipro Siedlung Auhofer Trennstück Abasolo Maxhafen San Pedro Jedlina Emmerschans Crengeldanz Vincent Carlson Park Fort Davis Kinkerbuurt île Feydeau Camp Lemonnier Mahatma Gandhi District Roeterseiland Christianshavn Copperton Coney Island Cagaloglu Amerika, Saxony Burgaltendorf Fort Dix Villa Castelli Kohlfurtherbrücke béguinage Schambach Quartier Concordia Verevskoe rural settlement Logan Square Hammarby Sjöstad Uptown Whitley Heights Ataliva Roca Belltown Fauntleroy Quintino Bocaiúva Oese Nuseirat Camp Dumontwijk Bel Air Morrison Hill Kungens Kurva Bigfoot Bol'shekolpanskoe rural settlement Syburg Per-Albin-Hansson-Siedlung Victoria Vonderort Perrache Klara Lacu Roșu Logan Circle Schloß Holte Mercier Mercier-Est Mercier-Ouest Oranjewijk Afrikanisches Viertel Castle, Bedford Ehrenberg Willemstad, North Brabant Hiawatha Logelbach Boy Buer Frank Lloyd Wright-Prairie School of Architecture Historic District Rathaus Kalininskaya, Krasnodar Krai Burg Volperhausen Gail Quartier Belvedere Ireneo Portela Sint-Anna Boron Lincoln University Herewegbuurt Davy Brown Campground Oildale Lamington Pacaltsdorp Waser De Held Reeserschanz San Francisco de Olivenza Ordzhonikidzevskaya Torekov Chirag Delhi Lentokenttä Neu-Berich Kreuzberg Friedrichshain Willemspark Pointe-au-Père, Quebec Jean Jaurès-Petit-Banque Vojskovitskoe rural settlement
145
action count
action less
action union
action find_tuple_counts
relation named after
type human settlement
type architectural structure
action find_tuple_counts
relation named after
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find
entity Sickla udde
relation named after
type architectural structure
type administrative territorial entity
[{'concept': 'human settlement'}, 'named after', [{'concept': 'architectural structure'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?d WHERE { { ?d property:named_after ?f . ?f rdf:type ontology:architectural_structure . ?d rdf:type ontology:human_settlement } UNION { ?d property:named_after ?f . ?d rdf:type ontology:human_settlement . ?f rdf:type ontology:administrative_territorial_entity } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { { ?a rdf:type ontology:architectural_structure } UNION { ?a rdf:type ontology:administrative_territorial_entity } } . resource:Sickla_udde property:named_after ?a } } . FILTER ( ?w < ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q189074
P138
Q811979 Q56061 Q486972
USER
And also tell me about Harlem?
(c(Q486972),P138,c(Q811979)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P138
type Q486972
type Q811979
action find_tuple_counts
relation P138
type Q486972
type Q56061
action count
action filter_multi_types
action find
entity Q189074
relation P138
type Q811979
type Q56061
[{'concept': 'Q486972'}, 'P138', [{'concept': 'Q811979'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?m WHERE { { ?m property:P138 ?a . ?m rdf:type ontology:Q486972 . ?a rdf:type ontology:Q811979 } UNION { ?m property:P138 ?a . ?m rdf:type ontology:Q486972 . ?a rdf:type ontology:Q56061 } } GROUP BY ?m } . FILTER ( ?r < ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q189074 property:P138 ?k . { VALUES ( ?u ) { ( ontology:Q811979 ) ( ontology:Q56061 ) } . ?k rdf:type ?u } } } }
Harlem
action count
action less
action union
action find_tuple_counts
relation named after
type human settlement
type architectural structure
action find_tuple_counts
relation named after
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find
entity Harlem
relation named after
type architectural structure
type administrative territorial entity
[{'concept': 'human settlement'}, 'named after', [{'concept': 'architectural structure'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?m WHERE { { ?m property:named_after ?a . ?m rdf:type ontology:human_settlement . ?a rdf:type ontology:architectural_structure } UNION { ?m property:named_after ?a . ?m rdf:type ontology:human_settlement . ?a rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . FILTER ( ?r < ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Harlem property:named_after ?k . { VALUES ( ?u ) { ( ontology:architectural_structure ) ( ontology:administrative_territorial_entity ) } . ?k rdf:type ?u } } } }
[]
architectural structure administrative territorial entity human settlement
SYSTEM
145
Q1743366 Q22312661 Q17149400 Q7598636 Q2275291 Q5763347 Q1683228 Q2102176 Q1984648 Q198164 Q1510158 Q1256512 Q50996 Q1777936 Q2792890 Q1870673 Q2640642 Q1033949 Q314439 Q4692573 Q16131638 Q1737863 Q1494698 Q1865919 Q2614306 Q2245467 Q7476191 Q735912 Q519788 Q2194150 Q2685630 Q783854 Q2326184 Q6723261 Q8962067 Q14345064 Q18388510 Q128498 Q7971580 Q21906856 Q2593455 Q6928093 Q7979189 Q815949 Q1616604 Q6504819 Q14935333 Q983650 Q15058273 Q48256 Q2282600 Q2991444 Q1792746 Q290356 Q12024369 Q5468013 Q1139599 Q1757523 Q5042912 Q976539 Q1742210 Q3593074 Q2935221 Q14914641 Q1888614 Q861363 Q5168859 Q628201 Q5055608 Q468073 Q1368614 Q1087169 Q3558487 Q1651127 Q12816129 Q2230782 Q3413044 Q50702 Q6667162 Q3126518 Q7899414 Q7996570 Q4283923 Q967732 Q5438236 Q2416235 Q2015206 Q2918829 Q19904243 Q86768 Q6914022 Q925544 Q981354 Q50699 Q1250708 Q2069816 Q7926541 Q894914 Q3375567 Q4346476 Q1029545 Q2175554 Q2244792 Q3306374 Q3306377 Q3306376 Q2122072 Q387659 Q5049958 Q1299923 Q76937 Q5750556 Q20757832 Q894908 Q519650 Q5487991 Q692511 Q3462814 Q1014421 Q981934 Q2122363 Q9009279 Q2121780 Q1965078 Q4570781 Q2613329 Q27622959 Q2016874 Q24190423 Q1847830 Q7971406 Q2792865 Q27113552 Q6118795 Q2029443 Q1013563 Q12426646 Q5481335 Q1979062 Q308928 Q317056 Q2185534 Q4335 Q3172802 Q50729
(c(Q486972),P138,c(Q811979)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P138
type Q486972
type Q811979
action find_tuple_counts
relation P138
type Q486972
type Q56061
action count
action filter_multi_types
action find
entity Q189074
relation P138
type Q811979
type Q56061
[ANSWER]
[{'concept': 'Q486972'}, 'P138', [{'concept': 'Q811979'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?m WHERE { { ?m property:P138 ?a . ?m rdf:type ontology:Q486972 . ?a rdf:type ontology:Q811979 } UNION { ?m property:P138 ?a . ?m rdf:type ontology:Q486972 . ?a rdf:type ontology:Q56061 } } GROUP BY ?m } . FILTER ( ?r < ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q189074 property:P138 ?k . { VALUES ( ?u ) { ( ontology:Q811979 ) ( ontology:Q56061 ) } . ?k rdf:type ?u } } } }
Kirchrarbach Herchen-Bahnhof Sant'Antonio d'Adda Standish Schildersbuurt Hillman City Röntgental Hoornse Meer Nibelungenviertel Bullewijk Tokeland Stuwerviertel Pudost Koblenz-Asterstein Muir Beach Reitdiep Stadsparkwijk Cantwell Hohenlimburg Agincourt, Toronto Givat Olga Nierbachtal Garden city Crengeldanz Rivierenbuurt Ilissia Ulgersmaborg Hortusbuurt Nellis Air Force Base Leningradskaya (rural locality) Hilversumse Meent Federal Hill Fort Hood Stadionbuurt Maces Bay Fort Knox Sint-Anna Ramat Elchanan Bijlmermeer Washington's Landing National Park Oosterpoortwijk Mościce Wedgwood Belleville Papenholz Lawrenceville Amiens Fort Knox Oderbrück Dnipro Siedlung Auhofer Trennstück Abasolo Maxhafen San Pedro Jedlina Emmerschans Crengeldanz Vincent Carlson Park Fort Davis Kinkerbuurt île Feydeau Camp Lemonnier Mahatma Gandhi District Roeterseiland Christianshavn Copperton Coney Island Cagaloglu Amerika, Saxony Burgaltendorf Fort Dix Villa Castelli Kohlfurtherbrücke béguinage Schambach Quartier Concordia Verevskoe rural settlement Logan Square Hammarby Sjöstad Uptown Whitley Heights Ataliva Roca Belltown Fauntleroy Quintino Bocaiúva Oese Nuseirat Camp Dumontwijk Bel Air Morrison Hill Kungens Kurva Bigfoot Bol'shekolpanskoe rural settlement Syburg Per-Albin-Hansson-Siedlung Victoria Vonderort Perrache Klara Lacu Roșu Logan Circle Schloß Holte Mercier Mercier-Est Mercier-Ouest Oranjewijk Afrikanisches Viertel Castle, Bedford Ehrenberg Willemstad, North Brabant Hiawatha Logelbach Boy Buer Frank Lloyd Wright-Prairie School of Architecture Historic District Rathaus Kalininskaya, Krasnodar Krai Burg Volperhausen Gail Quartier Belvedere Ireneo Portela Sint-Anna Boron Lincoln University Herewegbuurt Davy Brown Campground Oildale Lamington Pacaltsdorp Waser De Held Reeserschanz San Francisco de Olivenza Ordzhonikidzevskaya Torekov Chirag Delhi Lentokenttä Neu-Berich Kreuzberg Friedrichshain Willemspark Pointe-au-Père, Quebec Jean Jaurès-Petit-Banque Vojskovitskoe rural settlement
145
action count
action less
action union
action find_tuple_counts
relation named after
type human settlement
type architectural structure
action find_tuple_counts
relation named after
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find
entity Harlem
relation named after
type architectural structure
type administrative territorial entity
[{'concept': 'human settlement'}, 'named after', [{'concept': 'architectural structure'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?m WHERE { { ?m property:named_after ?a . ?m rdf:type ontology:human_settlement . ?a rdf:type ontology:architectural_structure } UNION { ?m property:named_after ?a . ?m rdf:type ontology:human_settlement . ?a rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . FILTER ( ?r < ?x ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Harlem property:named_after ?k . { VALUES ( ?u ) { ( ontology:architectural_structure ) ( ontology:administrative_territorial_entity ) } . ?k rdf:type ?u } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q486972 Q2031291 Q151885
USER
How many human settlements are the origin of around 1 releases or concepts ?
(c(Q2031291)|c(Q151885),P138,c(Q486972))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q486972
type Q2031291
action find_reverse_tuple_counts
relation P138
type Q486972
type Q151885
value 1
[[{'concept': 'Q2031291'}, {'concept': 'Q151885'}], 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?h WHERE { { ?a rdf:type ontology:Q2031291 . ?h rdf:type ontology:Q486972 . ?a property:P138 ?h } UNION { ?a property:P138 ?h . ?h rdf:type ontology:Q486972 . ?a rdf:type ontology:Q151885 } } GROUP BY ?h } . FILTER ( ?p = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type human settlement
type release
action find_reverse_tuple_counts
relation named after
type human settlement
type concept
value 1
[[{'concept': 'release'}, {'concept': 'concept'}], 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?h WHERE { { ?a rdf:type ontology:release . ?h rdf:type ontology:human_settlement . ?a property:named_after ?h } UNION { ?a property:named_after ?h . ?h rdf:type ontology:human_settlement . ?a rdf:type ontology:concept } } GROUP BY ?h } . FILTER ( ?p = 1 ) }
[]
human settlement release concept
SYSTEM
8
Q699133 Q688288 Q193638 Q628274 Q371876 Q999482 Q486450 Q2146375
(c(Q2031291)|c(Q151885),P138,c(Q486972))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q486972
type Q2031291
action find_reverse_tuple_counts
relation P138
type Q486972
type Q151885
value 1
[ANSWER]
[[{'concept': 'Q2031291'}, {'concept': 'Q151885'}], 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?h WHERE { { ?a rdf:type ontology:Q2031291 . ?h rdf:type ontology:Q486972 . ?a property:P138 ?h } UNION { ?a property:P138 ?h . ?h rdf:type ontology:Q486972 . ?a rdf:type ontology:Q151885 } } GROUP BY ?h } . FILTER ( ?p = 1 ) }
Salzmünde Walternienburg Shibuya-ku Harpstedt Noailles Wielbark, Warmian-Masurian Voivodeship Baden bei Wien Rzucewo
8
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type human settlement
type release
action find_reverse_tuple_counts
relation named after
type human settlement
type concept
value 1
[[{'concept': 'release'}, {'concept': 'concept'}], 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?h WHERE { { ?a rdf:type ontology:release . ?h rdf:type ontology:human_settlement . ?a property:named_after ?h } UNION { ?a property:named_after ?h . ?h rdf:type ontology:human_settlement . ?a rdf:type ontology:concept } } GROUP BY ?h } . FILTER ( ?p = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1055
P1001
Q1752346 Q4164871
USER
How many assemblies or positions have jurisdiction over Hamburg ?
(c(Q1752346),P1001,Q1055) (c(Q4164871),P1001,Q1055)
action count
action union
action filter_type
action find_reverse
entity Q1055
relation P1001
type Q1752346
action filter_type
action find_reverse
entity Q1055
relation P1001
type Q4164871
[{'concept': 'Q1752346'}, 'P1001', 'Q1055'] [{'concept': 'Q4164871'}, 'P1001', 'Q1055']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:P1001 resource:Q1055 . ?i rdf:type ontology:Q1752346 } UNION { ?i property:P1001 resource:Q1055 . ?i rdf:type ontology:Q4164871 } }
Hamburg
action count
action union
action filter_type
action find_reverse
entity Hamburg
relation applies to jurisdiction
type assembly
action filter_type
action find_reverse
entity Hamburg
relation applies to jurisdiction
type position
[{'concept': 'assembly'}, 'applies to jurisdiction', 'Hamburg'] [{'concept': 'position'}, 'applies to jurisdiction', 'Hamburg']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:applies_to_jurisdiction resource:Hamburg . ?i rdf:type ontology:assembly } UNION { ?i property:applies_to_jurisdiction resource:Hamburg . ?i rdf:type ontology:position } }
[]
assembly position
SYSTEM
2
Q636377 Q21012703
(c(Q1752346),P1001,Q1055) (c(Q4164871),P1001,Q1055)
action count
action union
action filter_type
action find_reverse
entity Q1055
relation P1001
type Q1752346
action filter_type
action find_reverse
entity Q1055
relation P1001
type Q4164871
[ANSWER]
[{'concept': 'Q1752346'}, 'P1001', 'Q1055'] [{'concept': 'Q4164871'}, 'P1001', 'Q1055']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:P1001 resource:Q1055 . ?i rdf:type ontology:Q1752346 } UNION { ?i property:P1001 resource:Q1055 . ?i rdf:type ontology:Q4164871 } }
Hamburg Parliament President of the Hamburg Parliament
2
action count
action union
action filter_type
action find_reverse
entity Hamburg
relation applies to jurisdiction
type assembly
action filter_type
action find_reverse
entity Hamburg
relation applies to jurisdiction
type position
[{'concept': 'assembly'}, 'applies to jurisdiction', 'Hamburg'] [{'concept': 'position'}, 'applies to jurisdiction', 'Hamburg']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:applies_to_jurisdiction resource:Hamburg . ?i rdf:type ontology:assembly } UNION { ?i property:applies_to_jurisdiction resource:Hamburg . ?i rdf:type ontology:position } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P276
Q486972 Q34442 Q1190554
USER
Which human settlements are max number of roads or events situated ?
(c(Q34442)|c(Q1190554),P276,c(Q486972))
action argmax
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q34442
action find_reverse_tuple_counts
relation P276
type Q486972
type Q1190554
[[{'concept': 'Q34442'}, {'concept': 'Q1190554'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?x WHERE { VALUES ( ?f ) { ( ontology:Q34442 ) ( ontology:Q1190554 ) } . ?p rdf:type ?f } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?q WHERE { VALUES ( ?g ) { ( ontology:Q34442 ) ( ontology:Q1190554 ) } . ?m rdf:type ?g } GROUP BY ?q } . FILTER ( ?k = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation location
type human settlement
type road
action find_reverse_tuple_counts
relation location
type human settlement
type event
[[{'concept': 'road'}, {'concept': 'event'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?x WHERE { VALUES ( ?f ) { ( ontology:road ) ( ontology:event ) } . ?p rdf:type ?f } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?q WHERE { VALUES ( ?g ) { ( ontology:road ) ( ontology:event ) } . ?m rdf:type ?g } GROUP BY ?q } . FILTER ( ?k = ?y ) }
[]
human settlement road event
Q12344051
SYSTEM
Weert
Q12344051
(c(Q34442)|c(Q1190554),P276,c(Q486972))
action argmax
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q34442
action find_reverse_tuple_counts
relation P276
type Q486972
type Q1190554
[ANSWER] is max number of roads or events situated
[[{'concept': 'Q34442'}, {'concept': 'Q1190554'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?x WHERE { VALUES ( ?f ) { ( ontology:Q34442 ) ( ontology:Q1190554 ) } . ?p rdf:type ?f } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?q WHERE { VALUES ( ?g ) { ( ontology:Q34442 ) ( ontology:Q1190554 ) } . ?m rdf:type ?g } GROUP BY ?q } . FILTER ( ?k = ?y ) }
Weert
Weert is max number of roads or events situated
Weert
action argmax
action union
action find_reverse_tuple_counts
relation location
type human settlement
type road
action find_reverse_tuple_counts
relation location
type human settlement
type event
[[{'concept': 'road'}, {'concept': 'event'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?x WHERE { VALUES ( ?f ) { ( ontology:road ) ( ontology:event ) } . ?p rdf:type ?f } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?q WHERE { VALUES ( ?g ) { ( ontology:road ) ( ontology:event ) } . ?m rdf:type ?g } GROUP BY ?q } . FILTER ( ?k = ?y ) }
[]