Simple Question (Direct)
Simple Question
Q19665905
P39
Q12737077
USER
What were the positions for which Manuel Reyes were appointed ?
(Q19665905,P39,c(Q12737077))
action filter_type
action find
entity Q19665905
relation P39
type Q12737077
['Q19665905', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q19665905 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Manuel Reyes
action filter_type
action find
entity Manuel Reyes
relation position held
type occupation
['Manuel Reyes', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Manuel_Reyes property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q30185 Q18714088 Q708492
SYSTEM
mayor, Member of the Catalan Parliament, councillor
Q30185 Q18714088 Q708492
(Q19665905,P39,c(Q12737077))
action filter_type
action find
entity Q19665905
relation P39
type Q12737077
[ANSWERS]
['Q19665905', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q19665905 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
mayor Member of the Catalan Parliament councillor
Mayor, Member of the Catalan Parliament and councillor
mayor Member of the Catalan Parliament councillor
action filter_type
action find
entity Manuel Reyes
relation position held
type occupation
['Manuel Reyes', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Manuel_Reyes property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19665905
P937
Q56061
USER
What is the work location of Manuel Reyes ?
(Q19665905,P937,c(Q56061))
action filter_type
action find
entity Q19665905
relation P937
type Q56061
['Q19665905', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q19665905 property:P937 ?z . ?z rdf:type ontology:Q56061 }
Manuel Reyes
action filter_type
action find
entity Manuel Reyes
relation work location
type administrative territorial entity
['Manuel Reyes', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Manuel_Reyes property:work_location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q19665905,P937,c(Q56061))
action filter_type
action find
entity Q19665905
relation P937
type Q56061
The work location of Manuel Reyes is in [ANSWER]
['Q19665905', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q19665905 property:P937 ?z . ?z rdf:type ontology:Q56061 }
Barcelona
The work location of Manuel Reyes is in Barcelona
Barcelona
action filter_type
action find
entity Manuel Reyes
relation work location
type administrative territorial entity
['Manuel Reyes', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Manuel_Reyes property:work_location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19665905
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q1492,P19,c(Q56061))
action filter_type
action find
entity Q19665905
relation P19
type Q56061
['Q1492', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q19665905 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Manuel Reyes
action filter_type
action find
entity Manuel Reyes
relation place of birth
type administrative territorial entity
['Barcelona', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Manuel_Reyes property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q1492,P19,c(Q56061))
action filter_type
action find
entity Q19665905
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q1492', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q19665905 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Barcelona
Barcelona is the place of birth of that person
Barcelona
action filter_type
action find
entity Manuel Reyes
relation place of birth
type administrative territorial entity
['Barcelona', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Manuel_Reyes property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19665905
P1412
Q34770
USER
Which language can Manuel Reyes read ?
(Q19665905,P1412,c(Q34770))
action filter_type
action find
entity Q19665905
relation P1412
type Q34770
['Q19665905', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q19665905 property:P1412 ?h }
Manuel Reyes
action filter_type
action find
entity Manuel Reyes
relation languages spoken, written or signed
type language
['Manuel Reyes', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Manuel_Reyes property:languages_spoken,_written_or_signed ?h }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q19665905,P1412,c(Q34770))
action filter_type
action find
entity Q19665905
relation P1412
type Q34770
Manuel Reyes can read in [ANSWER]
['Q19665905', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q19665905 property:P1412 ?h }
Spanish
Manuel Reyes can read in Spanish
Spanish
action filter_type
action find
entity Manuel Reyes
relation languages spoken, written or signed
type language
['Manuel Reyes', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Manuel_Reyes property:languages_spoken,_written_or_signed ?h }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3618895 Q19665905
P1412
Q34770
USER
Or Antonangelo Casula?
OR((Q19665905,P1412,c(Q34770)), (Q3618895,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q19665905
relation P1412
action find
entity Q3618895
relation P1412
type Q34770
{'OR': [['Q19665905', 'P1412', {'concept': 'Q34770'}], ['Q3618895', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q19665905 property:P1412 ?f } UNION { resource:Q3618895 property:P1412 ?f } } . ?f rdf:type ontology:Q34770 }
Antonangelo Casula Manuel Reyes
action filter_type
action union
action find
entity Manuel Reyes
relation languages spoken, written or signed
action find
entity Antonangelo Casula
relation languages spoken, written or signed
type language
{'OR': [['Manuel Reyes', 'languages spoken, written or signed', {'concept': 'language'}], ['Antonangelo Casula', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Manuel_Reyes property:languages_spoken,_written_or_signed ?f } UNION { resource:Antonangelo_Casula property:languages_spoken,_written_or_signed ?f } } . ?f rdf:type ontology:language }
[]
language
Q652 Q1321
SYSTEM
Italian, Spanish
Q652 Q1321
OR((Q19665905,P1412,c(Q34770)), (Q3618895,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q19665905
relation P1412
action find
entity Q3618895
relation P1412
type Q34770
[ANSWERS]
{'OR': [['Q19665905', 'P1412', {'concept': 'Q34770'}], ['Q3618895', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q19665905 property:P1412 ?f } UNION { resource:Q3618895 property:P1412 ?f } } . ?f rdf:type ontology:Q34770 }
Italian Spanish
Italian Spanish
action filter_type
action union
action find
entity Manuel Reyes
relation languages spoken, written or signed
action find
entity Antonangelo Casula
relation languages spoken, written or signed
type language
{'OR': [['Manuel Reyes', 'languages spoken, written or signed', {'concept': 'language'}], ['Antonangelo Casula', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Manuel_Reyes property:languages_spoken,_written_or_signed ?f } UNION { resource:Antonangelo_Casula property:languages_spoken,_written_or_signed ?f } } . ?f rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q940741
P37
Q34770 Q7275
USER
How many states have their official language as greater number of languages than Republic of Hungary ?
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q940741
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?b ) WHERE { ?u rdf:type ontology:Q7275 . ?g rdf:type ontology:Q34770 . ?u property:P37 ?g } GROUP BY ?u } . FILTER ( ?b > ?m ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Q940741 property:P37 ?w . ?w rdf:type ontology:Q7275 } } }
Republic of Hungary
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Republic of Hungary
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?b ) WHERE { ?u rdf:type ontology:state . ?g rdf:type ontology:language . ?u property:official_language ?g } GROUP BY ?u } . FILTER ( ?b > ?m ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Republic_of_Hungary property:official_language ?w . ?w rdf:type ontology:state } } }
[]
language state
SYSTEM
29
Q105092 Q6083755 Q33946 Q1194329 Q947153 Q172107 Q1152445 Q1617495 Q185488 Q25279 Q4948 Q1322229 Q953432 Q2353425 Q1709185 Q7251405 Q746443 Q1123960 Q1423680 Q1083009 Q26988 Q26273 Q551798 Q19801186 Q188586 Q204920 Q25227 Q744042 Q49683
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q940741
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?b ) WHERE { ?u rdf:type ontology:Q7275 . ?g rdf:type ontology:Q34770 . ?u property:P37 ?g } GROUP BY ?u } . FILTER ( ?b > ?m ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Q940741 property:P37 ?w . ?w rdf:type ontology:Q7275 } } }
Kingdom of Mercia Islands of Refreshment Czechoslovakia Nova Roma Kingdom of Tavolara Polish–Lithuanian Commonwealth Aerican Empire Kingdom of Jaén Volga Bulgaria Curaçao Republic of Venice Enlightenment in Spain Couto Misto Talossa Kingdom of Spain under Joseph Bonaparte Protectorate of Peru Golden Ambrosian Republic Conch Republic Gay and Lesbian Kingdom of the Coral Sea Islands Principality of Wy Cook Islands Sint Maarten Grand Duchy of Flandrensis Liberland Kingdom of Sicily Crown of Aragon Netherlands Antilles Grand Duchy of Avram Grand Duchy of Lithuania
29
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Republic of Hungary
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?b ) WHERE { ?u rdf:type ontology:state . ?g rdf:type ontology:language . ?u property:official_language ?g } GROUP BY ?u } . FILTER ( ?b > ?m ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { resource:Republic_of_Hungary property:official_language ?w . ?w rdf:type ontology:state } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1483430
P37
Q34770 Q7275
USER
And also tell me about Principality of Kiev?
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q1483430
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { FILTER ( ?m > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q1483430 property:P37 ?v . ?v rdf:type ontology:Q7275 } } . { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?m ) WHERE { ?a rdf:type ontology:Q7275 . ?q rdf:type ontology:Q34770 . ?a property:P37 ?q } GROUP BY ?a } }
Principality of Kiev
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Principality of Kiev
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { FILTER ( ?m > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Principality_of_Kiev property:official_language ?v . ?v rdf:type ontology:state } } . { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?m ) WHERE { ?a rdf:type ontology:state . ?q rdf:type ontology:language . ?a property:official_language ?q } GROUP BY ?a } }
[]
language state
SYSTEM
29
Q105092 Q6083755 Q33946 Q1194329 Q947153 Q172107 Q1152445 Q1617495 Q185488 Q25279 Q4948 Q1322229 Q953432 Q2353425 Q1709185 Q7251405 Q746443 Q1123960 Q1423680 Q1083009 Q26988 Q26273 Q551798 Q19801186 Q188586 Q204920 Q25227 Q744042 Q49683
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q1483430
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { FILTER ( ?m > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q1483430 property:P37 ?v . ?v rdf:type ontology:Q7275 } } . { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?m ) WHERE { ?a rdf:type ontology:Q7275 . ?q rdf:type ontology:Q34770 . ?a property:P37 ?q } GROUP BY ?a } }
Kingdom of Mercia Islands of Refreshment Czechoslovakia Nova Roma Kingdom of Tavolara Polish–Lithuanian Commonwealth Aerican Empire Kingdom of Jaén Volga Bulgaria Curaçao Republic of Venice Enlightenment in Spain Couto Misto Talossa Kingdom of Spain under Joseph Bonaparte Protectorate of Peru Golden Ambrosian Republic Conch Republic Gay and Lesbian Kingdom of the Coral Sea Islands Principality of Wy Cook Islands Sint Maarten Grand Duchy of Flandrensis Liberland Kingdom of Sicily Crown of Aragon Netherlands Antilles Grand Duchy of Avram Grand Duchy of Lithuania
29
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Principality of Kiev
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { FILTER ( ?m > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Principality_of_Kiev property:official_language ?v . ?v rdf:type ontology:state } } . { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?m ) WHERE { ?a rdf:type ontology:state . ?q rdf:type ontology:language . ?a property:official_language ?q } GROUP BY ?a } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q56061 Q838948 Q11060274
USER
Which administrative territories are expressed in approximately 2 works of art and prints ?
(c(Q838948)|c(Q11060274),P180,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P180
type Q56061
type Q11060274
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?j WHERE { { ?c property:P180 ?j . ?c rdf:type ontology:Q838948 . ?j rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q56061 . ?c rdf:type ontology:Q11060274 . ?c property:P180 ?j } } GROUP BY ?j } . FILTER ( ?q = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type print
value 2
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?j WHERE { { ?c property:depicts ?j . ?c rdf:type ontology:work_of_art . ?j rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:print . ?c property:depicts ?j } } GROUP BY ?j } . FILTER ( ?q = 2 ) }
[]
administrative territorial entity work of art print
Q1085 Q8818 Q340
SYSTEM
Prague, Valencia, Montreal
Q179815 Q8818 Q515 Q1563 Q372324 Q1479 Q340 Q165887 Q1085
(c(Q838948)|c(Q11060274),P180,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P180
type Q56061
type Q11060274
value 2
[ANSWERS] are expressed in approximately 2 works of art and prints
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?j WHERE { { ?c property:P180 ?j . ?c rdf:type ontology:Q838948 . ?j rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q56061 . ?c rdf:type ontology:Q11060274 . ?c property:P180 ?j } } GROUP BY ?j } . FILTER ( ?q = 2 ) }
Durham Valencia city Havana Dawson City Bordeaux Montreal Emmaus Prague
Prague, Valencia and Montreal are expressed in approximately 2 works of art and prints
Prague Valencia Montreal
action approx
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type print
value 2
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?j WHERE { { ?c property:depicts ?j . ?c rdf:type ontology:work_of_art . ?j rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:print . ?c property:depicts ?j } } GROUP BY ?j } . FILTER ( ?q = 2 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P127
Q362482 Q83620
USER
How many operations or thoroughfares are owned by that administrative territory ?
(c(Q362482),P127,Q1085) (c(Q83620),P127,Q1085) (c(Q362482),P127,Q1085) (c(Q83620),P127,Q1085) (c(Q362482),P127,Q8818) (c(Q83620),P127,Q8818) (c(Q362482),P127,Q340) (c(Q83620),P127,Q340)
[{'concept': 'Q362482'}, 'P127', 'Q1085'] [{'concept': 'Q83620'}, 'P127', 'Q1085'] [{'concept': 'Q362482'}, 'P127', 'Q1085'] [{'concept': 'Q83620'}, 'P127', 'Q1085'] [{'concept': 'Q362482'}, 'P127', 'Q8818'] [{'concept': 'Q83620'}, 'P127', 'Q8818'] [{'concept': 'Q362482'}, 'P127', 'Q340'] [{'concept': 'Q83620'}, 'P127', 'Q340']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q2084234 } UNION { ?y property:P127 resource:Q2084234 } UNION { ?z property:P127 resource:Q2084234 } UNION { ?y property:P127 resource:Q2084234 } UNION { ?z property:P127 resource:Q8818 } UNION { ?y property:P127 resource:Q8818 } UNION { ?z property:P127 resource:Q1529343 } UNION { ?y property:P127 resource:Q1529343 } } . ?z rdf:type ontology:Q362482 . ?y rdf:type ontology:Q83620 }
[{'concept': 'operation'}, 'owned by', 'Prague'] [{'concept': 'thoroughfare'}, 'owned by', 'Prague'] [{'concept': 'operation'}, 'owned by', 'Prague'] [{'concept': 'thoroughfare'}, 'owned by', 'Prague'] [{'concept': 'operation'}, 'owned by', 'Valencia'] [{'concept': 'thoroughfare'}, 'owned by', 'Valencia'] [{'concept': 'operation'}, 'owned by', 'Montreal'] [{'concept': 'thoroughfare'}, 'owned by', 'Montreal']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:Prague } UNION { ?y property:owned_by resource:Prague } UNION { ?z property:owned_by resource:Prague } UNION { ?y property:owned_by resource:Prague } UNION { ?z property:owned_by resource:Valencia } UNION { ?y property:owned_by resource:Valencia } UNION { ?z property:owned_by resource:Montreal } UNION { ?y property:owned_by resource:Montreal } } . ?z rdf:type ontology:operation . ?y rdf:type ontology:thoroughfare }
[]
operation thoroughfare
Quantitative|Count|Mult. entity type|Clarification
Q8818
SYSTEM
Did you mean Valencia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q2084234 } UNION { ?y property:P127 resource:Q2084234 } UNION { ?z property:P127 resource:Q2084234 } UNION { ?y property:P127 resource:Q2084234 } UNION { ?z property:P127 resource:Q8818 } UNION { ?y property:P127 resource:Q8818 } UNION { ?z property:P127 resource:Q1529343 } UNION { ?y property:P127 resource:Q1529343 } } . ?z rdf:type ontology:Q362482 . ?y rdf:type ontology:Q83620 }
Did you mean Valencia ?
Valencia
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:Prague } UNION { ?y property:owned_by resource:Prague } UNION { ?z property:owned_by resource:Prague } UNION { ?y property:owned_by resource:Prague } UNION { ?z property:owned_by resource:Valencia } UNION { ?y property:owned_by resource:Valencia } UNION { ?z property:owned_by resource:Montreal } UNION { ?y property:owned_by resource:Montreal } } . ?z rdf:type ontology:operation . ?y rdf:type ontology:thoroughfare }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Prague. Could you tell me the answer for that?
(c(Q362482),P127,Q1085) (c(Q83620),P127,Q1085) (c(Q362482),P127,Q1085) (c(Q83620),P127,Q1085) (c(Q362482),P127,Q8818) (c(Q83620),P127,Q8818) (c(Q362482),P127,Q340) (c(Q83620),P127,Q340)
Q1085
[{'concept': 'Q362482'}, 'P127', 'Q1085'] [{'concept': 'Q83620'}, 'P127', 'Q1085'] [{'concept': 'Q362482'}, 'P127', 'Q1085'] [{'concept': 'Q83620'}, 'P127', 'Q1085'] [{'concept': 'Q362482'}, 'P127', 'Q8818'] [{'concept': 'Q83620'}, 'P127', 'Q8818'] [{'concept': 'Q362482'}, 'P127', 'Q340'] [{'concept': 'Q83620'}, 'P127', 'Q340']
[{'concept': 'operation'}, 'owned by', 'Prague'] [{'concept': 'thoroughfare'}, 'owned by', 'Prague'] [{'concept': 'operation'}, 'owned by', 'Prague'] [{'concept': 'thoroughfare'}, 'owned by', 'Prague'] [{'concept': 'operation'}, 'owned by', 'Valencia'] [{'concept': 'thoroughfare'}, 'owned by', 'Valencia'] [{'concept': 'operation'}, 'owned by', 'Montreal'] [{'concept': 'thoroughfare'}, 'owned by', 'Montreal']
[]
SYSTEM
3
Q10616425 Q16164520 Q3935927
(c(Q362482),P127,Q1085) (c(Q83620),P127,Q1085) (c(Q362482),P127,Q1085) (c(Q83620),P127,Q1085) (c(Q362482),P127,Q8818) (c(Q83620),P127,Q8818) (c(Q362482),P127,Q340) (c(Q83620),P127,Q340)
[ANSWER]
[{'concept': 'Q362482'}, 'P127', 'Q1085'] [{'concept': 'Q83620'}, 'P127', 'Q1085'] [{'concept': 'Q362482'}, 'P127', 'Q1085'] [{'concept': 'Q83620'}, 'P127', 'Q1085'] [{'concept': 'Q362482'}, 'P127', 'Q8818'] [{'concept': 'Q83620'}, 'P127', 'Q8818'] [{'concept': 'Q362482'}, 'P127', 'Q340'] [{'concept': 'Q83620'}, 'P127', 'Q340']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q2084234 } UNION { ?y property:P127 resource:Q2084234 } UNION { ?z property:P127 resource:Q2084234 } UNION { ?y property:P127 resource:Q2084234 } UNION { ?z property:P127 resource:Q8818 } UNION { ?y property:P127 resource:Q8818 } UNION { ?z property:P127 resource:Q1529343 } UNION { ?y property:P127 resource:Q1529343 } } . ?z rdf:type ontology:Q362482 . ?y rdf:type ontology:Q83620 }
II/102 road II/115 road Vršovice Castle
3
[{'concept': 'operation'}, 'owned by', 'Prague'] [{'concept': 'thoroughfare'}, 'owned by', 'Prague'] [{'concept': 'operation'}, 'owned by', 'Prague'] [{'concept': 'thoroughfare'}, 'owned by', 'Prague'] [{'concept': 'operation'}, 'owned by', 'Valencia'] [{'concept': 'thoroughfare'}, 'owned by', 'Valencia'] [{'concept': 'operation'}, 'owned by', 'Montreal'] [{'concept': 'thoroughfare'}, 'owned by', 'Montreal']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:Prague } UNION { ?y property:owned_by resource:Prague } UNION { ?z property:owned_by resource:Prague } UNION { ?y property:owned_by resource:Prague } UNION { ?z property:owned_by resource:Valencia } UNION { ?y property:owned_by resource:Valencia } UNION { ?z property:owned_by resource:Montreal } UNION { ?y property:owned_by resource:Montreal } } . ?z rdf:type ontology:operation . ?y rdf:type ontology:thoroughfare }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16079 Q1492
P190
Q56061
USER
Which administrative territories are twin towns of Barcelona or Nienburg/Weser ?
OR((Q1492,P190,c(Q56061)), (Q16079,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q16079
relation P190
type Q56061
{'OR': [['Q1492', 'P190', {'concept': 'Q56061'}], ['Q16079', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . { { resource:Q16079 property:P190 ?c } UNION { resource:Q1492 property:P190 ?c } } }
Nienburg/Weser Barcelona
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity Nienburg/Weser
relation sister city
type administrative territorial entity
{'OR': [['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}], ['Nienburg/Weser', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . { { resource:Nienburg/Weser property:sister_city ?c } UNION { resource:Barcelona property:sister_city ?c } } }
[]
administrative territorial entity
Q174 Q1563 Q8686 Q52535 Q6441 Q3561 Q33935 Q33986 Q365 Q12892
SYSTEM
Some of them are São Paulo, Havana, Shanghai, Rosario, Montpellier, Algiers, Tel Aviv, Valparaíso, Cologne, Antwerp
Q8717 Q8686 Q12892 Q365 Q100 Q52535 Q42053 Q340 Q6506 Q34820 Q1524 Q551940 Q1563 Q48320 Q33935 Q3561 Q102217 Q85 Q47492 Q13122 Q174 Q8678 Q33986 Q6441 Q33264
OR((Q1492,P190,c(Q56061)), (Q16079,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q16079
relation P190
type Q56061
[ANSWERS] are twin towns of Barcelona or Nienburg/Weser
{'OR': [['Q1492', 'P190', {'concept': 'Q56061'}], ['Q16079', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . { { resource:Q16079 property:P190 ?c } UNION { resource:Q1492 property:P190 ?c } } }
Seville Shanghai Antwerp Cologne Boston Rosario Isfahan Montreal Varna Santo Domingo Athens Nienburg (Saale) Havana Kōbe Tel Aviv Algiers Vitebsk Cairo Gaza City Dendermonde São Paulo Rio de Janeiro Valparaíso Montpellier Las Cruces
São Paulo, Havana, Shanghai, Rosario, Montpellier, Algiers, Tel Aviv, Valparaíso, Cologne and Antwerp are twin towns of Barcelona or Nienburg/Weser
São Paulo Havana Shanghai Rosario Montpellier Algiers Tel Aviv Valparaíso Cologne Antwerp
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity Nienburg/Weser
relation sister city
type administrative territorial entity
{'OR': [['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}], ['Nienburg/Weser', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . { { resource:Nienburg/Weser property:sister_city ?c } UNION { resource:Barcelona property:sister_city ?c } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027276
P532
Q56061 Q2235308
USER
How many ship types have greater number of administrative territories as their base harbour than J.W. ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027276
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?i ) WHERE { ?n property:P532 ?m . ?n rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:Q24027276 property:P532 ?g . ?g rdf:type ontology:Q2235308 } } . FILTER ( ?i > ?a ) }
J.W.
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity J.W.
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?i ) WHERE { ?n property:port_of_registry ?m . ?n rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:J.W. property:port_of_registry ?g . ?g rdf:type ontology:ship_type } } . FILTER ( ?i > ?a ) }
[]
administrative territorial entity ship type
SYSTEM
70
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027276
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?i ) WHERE { ?n property:P532 ?m . ?n rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:Q24027276 property:P532 ?g . ?g rdf:type ontology:Q2235308 } } . FILTER ( ?i > ?a ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
70
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity J.W.
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?i ) WHERE { ?n property:port_of_registry ?m . ?n rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:J.W. property:port_of_registry ?g . ?g rdf:type ontology:ship_type } } . FILTER ( ?i > ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q340
P1001
Q17335294 Q12737077
USER
How many coats of arms and occupations have jurisdiction over Montreal ?
(c(Q17335294),P1001,Q340) (c(Q12737077),P1001,Q340)
action count
action union
action filter_type
action find_reverse
entity Q340
relation P1001
type Q17335294
action filter_type
action find_reverse
entity Q340
relation P1001
type Q12737077
[{'concept': 'Q17335294'}, 'P1001', 'Q340'] [{'concept': 'Q12737077'}, 'P1001', 'Q340']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:P1001 resource:Q340 . ?f rdf:type ontology:Q17335294 } UNION { ?f rdf:type ontology:Q12737077 . ?f property:P1001 resource:Q340 } }
Montreal
action count
action union
action filter_type
action find_reverse
entity Montreal
relation applies to jurisdiction
type flag or coat of arms
action filter_type
action find_reverse
entity Montreal
relation applies to jurisdiction
type occupation
[{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Montreal'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Montreal']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:applies_to_jurisdiction resource:Montreal . ?f rdf:type ontology:flag_or_coat_of_arms } UNION { ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction resource:Montreal } }
[]
flag or coat of arms occupation
SYSTEM
1 coats of arms and 1 occupations
Q177645 Q1426620
(c(Q17335294),P1001,Q340) (c(Q12737077),P1001,Q340)
action count
action union
action filter_type
action find_reverse
entity Q340
relation P1001
type Q17335294
action filter_type
action find_reverse
entity Q340
relation P1001
type Q12737077
[ANSWER]
[{'concept': 'Q17335294'}, 'P1001', 'Q340'] [{'concept': 'Q12737077'}, 'P1001', 'Q340']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:P1001 resource:Q340 . ?f rdf:type ontology:Q17335294 } UNION { ?f rdf:type ontology:Q12737077 . ?f property:P1001 resource:Q340 } }
Mayor of Montreal Flag of Montreal
1 coats of arms and 1 occupations
action count
action union
action filter_type
action find_reverse
entity Montreal
relation applies to jurisdiction
type flag or coat of arms
action filter_type
action find_reverse
entity Montreal
relation applies to jurisdiction
type occupation
[{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Montreal'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Montreal']
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:applies_to_jurisdiction resource:Montreal . ?f rdf:type ontology:flag_or_coat_of_arms } UNION { ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction resource:Montreal } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19660 Q33986
P190
Q56061
USER
Which administrative territories are partner towns of Valparaíso and Bucharest ?
AND((Q33986,P190,c(Q56061)), (Q19660,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q33986
relation P190
action find
entity Q19660
relation P190
type Q56061
{'AND': [['Q33986', 'P190', {'concept': 'Q56061'}], ['Q19660', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { resource:Q33986 property:P190 ?p . resource:Q19660 property:P190 ?p . ?p rdf:type ontology:Q56061 }
Bucharest Valparaíso
action filter_type
action intersection
action find
entity Valparaíso
relation sister city
action find
entity Bucharest
relation sister city
type administrative territorial entity
{'AND': [['Valparaíso', 'sister city', {'concept': 'administrative territorial entity'}], ['Bucharest', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Valparaíso property:sister_city ?p . resource:Bucharest property:sister_city ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q62
SYSTEM
San Francisco
Q62
AND((Q33986,P190,c(Q56061)), (Q19660,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q33986
relation P190
action find
entity Q19660
relation P190
type Q56061
[ANSWER] is partner towns of Valparaíso and Bucharest
{'AND': [['Q33986', 'P190', {'concept': 'Q56061'}], ['Q19660', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { resource:Q33986 property:P190 ?p . resource:Q19660 property:P190 ?p . ?p rdf:type ontology:Q56061 }
San Francisco
San Francisco is partner towns of Valparaíso and Bucharest
San Francisco
action filter_type
action intersection
action find
entity Valparaíso
relation sister city
action find
entity Bucharest
relation sister city
type administrative territorial entity
{'AND': [['Valparaíso', 'sister city', {'concept': 'administrative territorial entity'}], ['Bucharest', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Valparaíso property:sister_city ?p . resource:Bucharest property:sister_city ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62
P119
Q502895
USER
Which person was burried at that administrative territory ?
(c(Q502895),P119,Q62)
action filter_type
action find_reverse
entity Q62
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q62']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P119 resource:Q62 }
San Francisco
action filter_type
action find_reverse
entity San Francisco
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'San Francisco']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_burial resource:San_Francisco }
[]
common name
Q24090678
SYSTEM
James Irvine
Q24090678
(c(Q502895),P119,Q62)
action filter_type
action find_reverse
entity Q62
relation P119
type Q502895
[ANSWER] was burried at that administrative territory
[{'concept': 'Q502895'}, 'P119', 'Q62']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P119 resource:Q62 }
James Irvine
James Irvine was burried at that administrative territory
James Irvine
action filter_type
action find_reverse
entity San Francisco
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'San Francisco']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_burial resource:San_Francisco }
[]