Simple Question (Direct)
Simple Question
Q2561166
P734
Q82799
USER
Who has the surname Werner Fischer ?
(Q2561166,P734,c(Q82799))
action filter_type
action find
entity Q2561166
relation P734
type Q82799
['Q2561166', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q82799 . resource:Q2561166 property:P734 ?a }
Werner Fischer
action filter_type
action find
entity Werner Fischer
relation family name
type name
['Werner Fischer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:name . resource:Werner_Fischer property:family_name ?a }
[]
name
Q11231408
SYSTEM
Fischer
Q11231408
(Q2561166,P734,c(Q82799))
action filter_type
action find
entity Q2561166
relation P734
type Q82799
[ANSWER] has the surname Werner [ANSWER]
['Q2561166', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q82799 . resource:Q2561166 property:P734 ?a }
Fischer
Fischer has the surname Werner Fischer
Fischer
action filter_type
action find
entity Werner Fischer
relation family name
type name
['Werner Fischer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:name . resource:Werner_Fischer property:family_name ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2561166
P20
Q515
USER
Where did that person expire ?
(Q11231408,P20,c(Q515))
action filter_type
action find
entity Q2561166
relation P20
type Q515
['Q11231408', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q2561166 property:P20 ?a . ?a rdf:type ontology:Q515 }
Werner Fischer
action filter_type
action find
entity Werner Fischer
relation place of death
type city
['Fischer', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Werner_Fischer property:place_of_death ?a . ?a rdf:type ontology:city }
[]
city
Q2833
SYSTEM
Freiburg im Breisgau
Q2833
(Q11231408,P20,c(Q515))
action filter_type
action find
entity Q2561166
relation P20
type Q515
That person expired in [ANSWER]
['Q11231408', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q2561166 property:P20 ?a . ?a rdf:type ontology:Q515 }
Freiburg im Breisgau
That person expired in Freiburg im Breisgau
Freiburg im Breisgau
action filter_type
action find
entity Werner Fischer
relation place of death
type city
['Fischer', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Werner_Fischer property:place_of_death ?a . ?a rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P840
Q515 Q166142 Q15416
USER
Which cities are more number of applications and television programs set in than that city ?
(c(Q166142)|c(Q15416),P840,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q515
type Q166142
action find_reverse_tuple_counts
relation P840
type Q515
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q2833
relation P840
type Q166142
type Q15416
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P840 resource:Q2833 . { { ?i rdf:type ontology:Q15416 } UNION { ?i rdf:type ontology:Q166142 } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?f WHERE { { ?f rdf:type ontology:Q515 . ?r rdf:type ontology:Q166142 . ?r property:P840 ?f } UNION { ?r property:P840 ?f . ?r rdf:type ontology:Q15416 . ?f rdf:type ontology:Q515 } } GROUP BY ?f } }
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type city
type application
action find_reverse_tuple_counts
relation narrative location
type city
type television program
action count
action filter_multi_types
action find_reverse
entity Freiburg im Breisgau
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:narrative_location resource:Freiburg_im_Breisgau . { { ?i rdf:type ontology:television_program } UNION { ?i rdf:type ontology:application } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?f WHERE { { ?f rdf:type ontology:city . ?r rdf:type ontology:application . ?r property:narrative_location ?f } UNION { ?r property:narrative_location ?f . ?r rdf:type ontology:television_program . ?f rdf:type ontology:city } } GROUP BY ?f } }
[]
city application television program
Q23482 Q19660 Q2999
SYSTEM
Marseille, Bucharest, Würzburg
Q23482 Q1533 Q19660 Q23768 Q3004 Q7473516 Q1761 Q17042 Q8652 Q3014 Q2999
(c(Q166142)|c(Q15416),P840,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q515
type Q166142
action find_reverse_tuple_counts
relation P840
type Q515
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q2833
relation P840
type Q166142
type Q15416
[ANSWERS] are more number of applications and television programs set in than that city
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P840 resource:Q2833 . { { ?i rdf:type ontology:Q15416 } UNION { ?i rdf:type ontology:Q166142 } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?f WHERE { { ?f rdf:type ontology:Q515 . ?r rdf:type ontology:Q166142 . ?r property:P840 ?f } UNION { ?r property:P840 ?f . ?r rdf:type ontology:Q15416 . ?f rdf:type ontology:Q515 } } GROUP BY ?f } }
Marseille Caracas Bucharest Las Vegas Ingolstadt Tokyo Dublin Oakland Miami Wolfsburg Würzburg
Marseille, Bucharest and Würzburg are more number of applications and television programs set in than that city
Marseille Bucharest Würzburg
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type city
type application
action find_reverse_tuple_counts
relation narrative location
type city
type television program
action count
action filter_multi_types
action find_reverse
entity Freiburg im Breisgau
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:narrative_location resource:Freiburg_im_Breisgau . { { ?i rdf:type ontology:television_program } UNION { ?i rdf:type ontology:application } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?f WHERE { { ?f rdf:type ontology:city . ?r rdf:type ontology:application . ?r property:narrative_location ?f } UNION { ?r property:narrative_location ?f . ?r rdf:type ontology:television_program . ?f rdf:type ontology:city } } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q364071 Q2561166
P106
Q12737077
USER
Which occupations have Werner Fischer but not Adolf Schauenstein as his/her as a career ?
AND((Q2561166,P106,c(Q12737077)), NOT((Q364071,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q2561166
relation P106
action find
entity Q364071
relation P106
type Q12737077
{'AND': [['Q2561166', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q364071', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?r WHERE { MINUS { resource:Q364071 property:P106 ?r } . resource:Q2561166 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Adolf Schauenstein Werner Fischer
action filter_type
action difference
action find
entity Werner Fischer
relation occupation
action find
entity Adolf Schauenstein
relation occupation
type occupation
{'AND': [['Werner Fischer', 'occupation', {'concept': 'occupation'}], {'NOT': [['Adolf Schauenstein', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?r WHERE { MINUS { resource:Adolf_Schauenstein property:occupation ?r } . resource:Werner_Fischer property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q593644
SYSTEM
chemist
Q593644
AND((Q2561166,P106,c(Q12737077)), NOT((Q364071,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q2561166
relation P106
action find
entity Q364071
relation P106
type Q12737077
[ANSWER] have Werner Fischer but not Adolf Schauenstein as his/her as a career
{'AND': [['Q2561166', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q364071', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?r WHERE { MINUS { resource:Q364071 property:P106 ?r } . resource:Q2561166 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
chemist
Chemist have Werner Fischer but not Adolf Schauenstein as his/her as a career
chemist
action filter_type
action difference
action find
entity Werner Fischer
relation occupation
action find
entity Adolf Schauenstein
relation occupation
type occupation
{'AND': [['Werner Fischer', 'occupation', {'concept': 'occupation'}], {'NOT': [['Adolf Schauenstein', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?r WHERE { MINUS { resource:Adolf_Schauenstein property:occupation ?r } . resource:Werner_Fischer property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q593644 Q20714918
P106
Q502895
USER
Does Agripa Mwausegha have a job as that occupation ?
(Q20714918,P106,Q593644)
action is_in
entity Q20714918
action find
entity Q593644
relation P106
['Q20714918', 'P106', 'Q593644']
ASK WHERE { resource:Q593644 property:P106 resource:Q20714918 }
chemist Agripa Mwausegha
action is_in
entity Agripa Mwausegha
action find
entity chemist
relation occupation
['Agripa Mwausegha', 'occupation', 'chemist']
ASK WHERE { resource:chemist property:occupation resource:Agripa_Mwausegha }
[]
common name
SYSTEM
NO
(Q20714918,P106,Q593644)
action is_in
entity Q20714918
action find
entity Q593644
relation P106
[ANSWER]
['Q20714918', 'P106', 'Q593644']
ASK WHERE { resource:Q593644 property:P106 resource:Q20714918 }
No
action is_in
entity Agripa Mwausegha
action find
entity chemist
relation occupation
['Agripa Mwausegha', 'occupation', 'chemist']
ASK WHERE { resource:chemist property:occupation resource:Agripa_Mwausegha }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2561166 Q26197286
P106
Q12737077
USER
Does Minister of Infastructure and Environment have Werner Fischer as his/her as a career ?
(Q2561166,P106,Q26197286)
action is_in
entity Q26197286
action find
entity Q2561166
relation P106
['Q2561166', 'P106', 'Q26197286']
ASK WHERE { resource:Q2561166 property:P106 resource:Q26197286 }
Werner Fischer Minister of Infastructure and Environment
action is_in
entity Minister of Infastructure and Environment
action find
entity Werner Fischer
relation occupation
['Werner Fischer', 'occupation', 'Minister of Infastructure and Environment']
ASK WHERE { resource:Werner_Fischer property:occupation resource:Minister_of_Infastructure_and_Environment }
[]
occupation
SYSTEM
NO
(Q2561166,P106,Q26197286)
action is_in
entity Q26197286
action find
entity Q2561166
relation P106
[ANSWER]
['Q2561166', 'P106', 'Q26197286']
ASK WHERE { resource:Q2561166 property:P106 resource:Q26197286 }
No
action is_in
entity Minister of Infastructure and Environment
action find
entity Werner Fischer
relation occupation
['Werner Fischer', 'occupation', 'Minister of Infastructure and Environment']
ASK WHERE { resource:Werner_Fischer property:occupation resource:Minister_of_Infastructure_and_Environment }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2561166
P19
Q486972
USER
Which human settlement is the place of birth of that person ?
action filter_type
action find
entity Q2561166
relation P19
type Q486972
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q486972 . resource:Q2561166 property:P19 ?o }
Werner Fischer
action filter_type
action find
entity Werner Fischer
relation place of birth
type human settlement
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:human_settlement . resource:Werner_Fischer property:place_of_birth ?o }
[]
human settlement
Q702259
SYSTEM
Elberfeld
Q702259
action filter_type
action find
entity Q2561166
relation P19
type Q486972
[ANSWER] is the place of birth of that person
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q486972 . resource:Q2561166 property:P19 ?o }
Elberfeld
Elberfeld is the place of birth of that person
Elberfeld
action filter_type
action find
entity Werner Fischer
relation place of birth
type human settlement
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:human_settlement . resource:Werner_Fischer property:place_of_birth ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q702259
P17
Q183366
USER
Which territory is that human settlement located in ?
(Q702259,P17,c(Q183366))
action filter_type
action find
entity Q702259
relation P17
type Q183366
['Q702259', 'P17', {'concept': 'Q183366'}]
SELECT DISTINCT ?b WHERE { resource:Q702259 property:P17 ?b . ?b rdf:type ontology:Q183366 }
Elberfeld
action filter_type
action find
entity Elberfeld
relation country
type territory
['Elberfeld', 'country', {'concept': 'territory'}]
SELECT DISTINCT ?b WHERE { resource:Elberfeld property:country ?b . ?b rdf:type ontology:territory }
[]
territory
Q151095
SYSTEM
Duchy of Berg
Q151095
(Q702259,P17,c(Q183366))
action filter_type
action find
entity Q702259
relation P17
type Q183366
That human settlement is located in [ANSWER]
['Q702259', 'P17', {'concept': 'Q183366'}]
SELECT DISTINCT ?b WHERE { resource:Q702259 property:P17 ?b . ?b rdf:type ontology:Q183366 }
Duchy of Berg
That human settlement is located in Duchy of Berg
Duchy of Berg
action filter_type
action find
entity Elberfeld
relation country
type territory
['Elberfeld', 'country', {'concept': 'territory'}]
SELECT DISTINCT ?b WHERE { resource:Elberfeld property:country ?b . ?b rdf:type ontology:territory }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q850992
P1376
Q515 Q486972
USER
How many cities have less number of human settlements as their capital than Costești ?
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q850992
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P1376 ?h . ?v rdf:type ontology:Q486972 . ?h rdf:type ontology:Q515 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:Q486972 . ?r property:P1376 resource:Q850992 } } . FILTER ( ?m < ?d ) }
Costești
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Costești
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:capital_of ?h . ?v rdf:type ontology:human_settlement . ?h rdf:type ontology:city } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:human_settlement . ?r property:capital_of resource:Costești } } . FILTER ( ?m < ?d ) }
[]
city human settlement
SYSTEM
3
Q1410 Q235 Q148540
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q850992
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P1376 ?h . ?v rdf:type ontology:Q486972 . ?h rdf:type ontology:Q515 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:Q486972 . ?r property:P1376 resource:Q850992 } } . FILTER ( ?m < ?d ) }
Gibraltar Monaco Republic of Florence
3
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Costești
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:capital_of ?h . ?v rdf:type ontology:human_settlement . ?h rdf:type ontology:city } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { ?r rdf:type ontology:human_settlement . ?r property:capital_of resource:Costești } } . FILTER ( ?m < ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q756593
P1376
Q515 Q486972
USER
And also tell me about Târgu Neamț?
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q756593
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:P1376 ?z . ?z rdf:type ontology:Q515 . ?n rdf:type ontology:Q486972 } GROUP BY ?z } . FILTER ( ?p < ?t ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:Q486972 . ?w property:P1376 resource:Q756593 } } }
Târgu Neamț
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Târgu Neamț
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:capital_of ?z . ?z rdf:type ontology:city . ?n rdf:type ontology:human_settlement } GROUP BY ?z } . FILTER ( ?p < ?t ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:human_settlement . ?w property:capital_of resource:Târgu_Neamț } } }
[]
city human settlement
SYSTEM
3
Q1410 Q235 Q148540
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q756593
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:P1376 ?z . ?z rdf:type ontology:Q515 . ?n rdf:type ontology:Q486972 } GROUP BY ?z } . FILTER ( ?p < ?t ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:Q486972 . ?w property:P1376 resource:Q756593 } } }
Gibraltar Monaco Republic of Florence
3
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Târgu Neamț
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:capital_of ?z . ?z rdf:type ontology:city . ?n rdf:type ontology:human_settlement } GROUP BY ?z } . FILTER ( ?p < ?t ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:human_settlement . ?w property:capital_of resource:Târgu_Neamț } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q515 Q486972
USER
Which cities have approximately 1 human settlement have their center of administration ?
(c(Q486972),P1376,c(Q515))
action approx
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
value 1
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:P1376 ?g . ?g rdf:type ontology:Q515 . ?r rdf:type ontology:Q486972 } GROUP BY ?g } }
action approx
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:capital_of ?g . ?g rdf:type ontology:city . ?r rdf:type ontology:human_settlement } GROUP BY ?g } }
[]
city human settlement
Q19660 Q587746 Q855187
SYSTEM
Bucharest, Siret, Câmpeni
Q280364 Q168921 Q837161 Q253825 Q507846 Q283862 Q850974 Q3846983 Q935834 Q765841 Q851056 Q292769 Q851409 Q775799 Q585548 Q777619 Q508313 Q328647 Q584825 Q248018 Q169127 Q850982 Q835227 Q639520 Q851037 Q331577 Q1018204 Q771191 Q325736 Q275645 Q275642 Q855187 Q325732 Q3573941 Q837167 Q2198771 Q803706 Q850962 Q276156 Q265012 Q850969 Q386945 Q794200 Q276164 Q923254 Q556266 Q666373 Q851042 Q732851 Q207196 Q851048 Q571769 Q276168 Q276152 Q226000 Q591285 Q751352 Q737830 Q169135 Q837968 Q10860283 Q221214 Q789811 Q276120 Q837960 Q778516 Q209782 Q641218 Q276004 Q592480 Q203929 Q930102 Q837170 Q596043 Q250006 Q829051 Q276042 Q521108 Q275810 Q275895 Q423441 Q899427 Q179297 Q737276 Q276119 Q837173 Q225257 Q1018184 Q373707 Q946893 Q518992 Q376233 Q660417 Q666521 Q851007 Q276336 Q325555 Q252061 Q963829 Q739444 Q586387 Q912204 Q750220 Q570113 Q916156 Q610341 Q593157 Q267708 Q899454 Q590443 Q548502 Q568376 Q186719 Q276083 Q75537 Q535516 Q508057 Q754721 Q839796 Q837157 Q837154 Q837152 Q748068 Q743752 Q736276 Q276135 Q276137 Q276132 Q197687 Q383306 Q253872 Q1209 Q217131 Q899448 Q275990 Q248959 Q511951 Q855719 Q576804 Q834101 Q935846 Q75504 Q313689 Q629776 Q899551 Q275981 Q651322 Q906711 Q276128 Q790338 Q186214 Q756585 Q851001 Q292759 Q375371 Q276127 Q912224 Q855721 Q276009 Q305001 Q305182 Q169064 Q772576 Q1017982 Q166829 Q926163 Q247807 Q589880 Q526019 Q167121 Q275997 Q548575 Q275910 Q678884 Q668701 Q584531 Q587746 Q383085 Q756593 Q756590 Q756596 Q851013 Q167792 Q19660 Q602184 Q899467 Q276154 Q423371 Q899461 Q209977 Q650981 Q764806 Q791387 Q756578 Q390156 Q851021 Q592497 Q727421 Q276117 Q533078 Q851029 Q225100 Q423414 Q596609 Q655818 Q386091 Q386888 Q275904 Q275890 Q508670 Q125604 Q1006796 Q679428 Q276145 Q276146 Q213296 Q276141 Q850992
(c(Q486972),P1376,c(Q515))
action approx
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
value 1
[ANSWERS] have approximately 1 human settlement have their center of administration
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:P1376 ?g . ?g rdf:type ontology:Q515 . ?r rdf:type ontology:Q486972 } GROUP BY ?g } }
Titu Bragadiru Sânnicolau Mare Salcea Sebiș Băicoi Segarcea Șimleu Silvaniei Sângeorz-Băi Urlați Cristuru Secuiesc Întorsura Buzăului Budești Baia de Arieș Ocnele Mari Strehaia Nădlac Sulina Scornicești Isaccea Chitila Curtici Ineu Voluntari Comarnic Abrud Slănic Berești Ciacova Fierbinți-Târg Roznov Câmpeni Gătaia Săliște Hațeg Măgurele Baia Sprie Copșa Mică Berbești Bușteni Victoria Babadag Beclean Căzănești Fundulea Târgu Ocna Seini Hârlău Mioveni Zlatna Făget Boldești-Scăeni Pătârlagele Dragomirești Jimbolia Piatra-Olt Plopeni Mizil Pantelimon Băile Tușnad Broșteni Cugir Bălan Ulmeni Năvodari Baia de Aramă Borșa Videle Murgeni Târgu Bujor Zimnicea Tăuții-Măgherăuș Gura Humorului Ovidiu Slănic-Moldova Moldova Nouă Băneasa Dumbrăveni Cajvana Șomcuta Mare Țăndărei Iernut Nehoiu Cehu Silvaniei Liteni Cisnădie Rupea Cavnic Luduș Teiuș Călan Săcueni Jibou Târgu Cărbunești Deta Livada Recaș Valea lui Mihai Mihăilești Topoloveni Eforie Lehliu Gară Huedin Uricani Ghimbav Pogoanele Murfatlar Sovata Panciu Balș Anina Breaza Ocna Sibiului Potcoava Oțelu Roșu Azuga Drăgănești-Olt Corabia Borsec Covasna Simeria Ocna Mureș Hârșova Odobești Cernavodă Dăbuleni Milișăuți Pecica Miercurea Sibiului Tismana Bechet Free Hanseatic City of Bremen Buftea Negrești Răcari Zărnești Predeal Băile Govora Mărășești Bolintin-Vale Vlăhița Bocșa Agnita Vânju Mare Ianca Podu Iloaiei Năsăud Nucet Frasin Râșnov Turceni Buhuși Măcin Însurăței Călimănești Bălcești Techirghiol Băile Olănești Amara Negru Vodă Dărmănești Sângeorgiu de Pădure Negrești-Oaș Geoagiu Miercurea Nirajului Popești-Leordeni Săveni Pucioasa Brezoi Ungheni Ardud Aninoasa Sântana Fieni Tășnad Bumbești-Jiu Siret Oravița Târgu Neamț Comănești Filiași Vașcău Sărmașu Bucharest Solca Darabani Ștefănești Ștei Horezu Ștefănești Băile Herculane Rovinari Avrig Târgu Frumos Petrila Pâncota Vălenii de Munte Otopeni Dolhasca Baraolt Aleșd Bicaz Țicleni Vișeu de Sus Buziaș Novaci Târgu Lăpuș Flămânzi Băbeni Chișineu-Criș Găești Făurei Tălmaciu Vicovu de Sus Bucecea Sinaia Săliștea de Sus Costești
Bucharest, Siret and Câmpeni have approximately 1 human settlement have their center of administration
Bucharest Siret Câmpeni
action approx
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:capital_of ?g . ?g rdf:type ontology:city . ?r rdf:type ontology:human_settlement } GROUP BY ?g } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q182852
P609
Q515 Q83620 Q34442
USER
How many cities serves as the terminus locations of less number of thoroughfares or roads than Kunming ?
(c(Q83620)|c(Q34442),P609,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q182852
relation P609
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?x WHERE { { ?y property:P609 ?x . ?x rdf:type ontology:Q515 . ?y rdf:type ontology:Q83620 } UNION { ?y property:P609 ?x . ?x rdf:type ontology:Q515 . ?y rdf:type ontology:Q34442 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:P609 resource:Q182852 . { { ?m rdf:type ontology:Q83620 } UNION { ?m rdf:type ontology:Q34442 } } } } . FILTER ( ?c < ?n ) }
Kunming
action count
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Kunming
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?x WHERE { { ?y property:terminus_location ?x . ?x rdf:type ontology:city . ?y rdf:type ontology:thoroughfare } UNION { ?y property:terminus_location ?x . ?x rdf:type ontology:city . ?y rdf:type ontology:road } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:terminus_location resource:Kunming . { { ?m rdf:type ontology:thoroughfare } UNION { ?m rdf:type ontology:road } } } } . FILTER ( ?c < ?n ) }
[]
city thoroughfare road
SYSTEM
72
Q8652 Q349982 Q601254 Q425996 Q756581 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q1630623 Q158245 Q2079 Q217698 Q379160 Q18575 Q1000069 Q612646 Q42622 Q71227 Q1641736 Q185684 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q1731 Q360643 Q58401 Q587388
(c(Q83620)|c(Q34442),P609,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q182852
relation P609
type Q83620
type Q34442
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?x WHERE { { ?y property:P609 ?x . ?x rdf:type ontology:Q515 . ?y rdf:type ontology:Q83620 } UNION { ?y property:P609 ?x . ?x rdf:type ontology:Q515 . ?y rdf:type ontology:Q34442 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:P609 resource:Q182852 . { { ?m rdf:type ontology:Q83620 } UNION { ?m rdf:type ontology:Q34442 } } } } . FILTER ( ?c < ?n ) }
Miami Hegang Dubí Deyang Františkovy Lázně Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Hostivice Písek Leipzig Weifang Kunszentmárton Tucson Lovosice Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Dresden Suzhou, Anhui Shijiazhuang Mohelnice
72
action count
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Kunming
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?x WHERE { { ?y property:terminus_location ?x . ?x rdf:type ontology:city . ?y rdf:type ontology:thoroughfare } UNION { ?y property:terminus_location ?x . ?x rdf:type ontology:city . ?y rdf:type ontology:road } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:terminus_location resource:Kunming . { { ?m rdf:type ontology:thoroughfare } UNION { ?m rdf:type ontology:road } } } } . FILTER ( ?c < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q75110
P609
Q515 Q83620 Q34442
USER
And also tell me about Dandong?
(c(Q83620)|c(Q34442),P609,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q75110
relation P609
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:P609 resource:Q75110 . { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } } } . FILTER ( ?q < ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?y . VALUES ( ?y ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?g } }
Dandong
action count
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Dandong
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:terminus_location resource:Dandong . { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:road ) } } } } . FILTER ( ?q < ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?y . VALUES ( ?y ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?g } }
[]
city thoroughfare road
SYSTEM
76
Q8652 Q349982 Q601254 Q425996 Q756581 Q182852 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q58560 Q1630623 Q158245 Q2079 Q217698 Q379160 Q18575 Q1000069 Q211243 Q612646 Q42622 Q71227 Q1641736 Q185684 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q183584 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q1731 Q360643 Q58401 Q587388
(c(Q83620)|c(Q34442),P609,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q75110
relation P609
type Q83620
type Q34442
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:P609 resource:Q75110 . { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } } } . FILTER ( ?q < ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?y . VALUES ( ?y ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?g } }
Miami Hegang Dubí Deyang Františkovy Lázně Kunming Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Qinhuangdao Hostivice Písek Leipzig Weifang Kunszentmárton Tucson Lovosice Yinchuan Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Lanzhou Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Dresden Suzhou, Anhui Shijiazhuang Mohelnice
76
action count
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Dandong
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:terminus_location resource:Dandong . { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:road ) } } } } . FILTER ( ?q < ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?y . VALUES ( ?y ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?g } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q587746 Q465698
P190
Q515
USER
How many cities are twin town of Siret and Sigulda ?
(c(Q515),P190,Q587746) (c(Q515),P190,Q465698)
action count
action intersection
action filter_type
action find_reverse
entity Q587746
relation P190
type Q515
action filter_type
action find_reverse
entity Q465698
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q587746'] [{'concept': 'Q515'}, 'P190', 'Q465698']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { ?e rdf:type ontology:Q515 . ?e property:P190 resource:Q587746 . ?e property:P190 resource:Q465698 . ?e rdf:type ontology:Q515 }
Siret Sigulda
action count
action intersection
action filter_type
action find_reverse
entity Siret
relation sister city
type city
action filter_type
action find_reverse
entity Sigulda
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Siret'] [{'concept': 'city'}, 'sister city', 'Sigulda']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { ?e rdf:type ontology:city . ?e property:sister_city resource:Siret . ?e property:sister_city resource:Sigulda . ?e rdf:type ontology:city }
[]
city
SYSTEM
2
Q613813 Q1000056
(c(Q515),P190,Q587746) (c(Q515),P190,Q465698)
action count
action intersection
action filter_type
action find_reverse
entity Q587746
relation P190
type Q515
action filter_type
action find_reverse
entity Q465698
relation P190
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q587746'] [{'concept': 'Q515'}, 'P190', 'Q465698']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { ?e rdf:type ontology:Q515 . ?e property:P190 resource:Q587746 . ?e property:P190 resource:Q465698 . ?e rdf:type ontology:Q515 }
Kőszeg Sušice
2
action count
action intersection
action filter_type
action find_reverse
entity Siret
relation sister city
type city
action filter_type
action find_reverse
entity Sigulda
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Siret'] [{'concept': 'city'}, 'sister city', 'Sigulda']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { ?e rdf:type ontology:city . ?e property:sister_city resource:Siret . ?e property:sister_city resource:Sigulda . ?e rdf:type ontology:city }
[]